summaryrefslogtreecommitdiffstats
path: root/WebCore/plugins
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2010-03-02 09:50:27 -0500
committerDerek Sollenberger <djsollen@google.com>2010-03-02 09:50:27 -0500
commita506357ecbae5e506e0c3e46b6ebac632fd22328 (patch)
tree50501771262b97567d062bcfd6e451a3d737167f /WebCore/plugins
parentda8d052d7e1bf81587412213cf6680538d0bf687 (diff)
downloadexternal_webkit-a506357ecbae5e506e0c3e46b6ebac632fd22328.zip
external_webkit-a506357ecbae5e506e0c3e46b6ebac632fd22328.tar.gz
external_webkit-a506357ecbae5e506e0c3e46b6ebac632fd22328.tar.bz2
Adding logging to android's plugin view.
Diffstat (limited to 'WebCore/plugins')
-rw-r--r--WebCore/plugins/android/PluginViewAndroid.cpp23
1 files changed, 17 insertions, 6 deletions
diff --git a/WebCore/plugins/android/PluginViewAndroid.cpp b/WebCore/plugins/android/PluginViewAndroid.cpp
index 0317ed6..f3d0e9d 100644
--- a/WebCore/plugins/android/PluginViewAndroid.cpp
+++ b/WebCore/plugins/android/PluginViewAndroid.cpp
@@ -69,6 +69,12 @@
// #include "runtime.h"
#include "WebViewCore.h"
+/* Controls the printing of log messages in this file. This must be defined
+ before PluginDebugAndroid.h is included.
+ */
+#define PLUGIN_DEBUG_LOCAL 0
+#define TRACE_KEY_EVENTS 0
+
#include "PluginDebug.h"
#include "PluginDebugAndroid.h"
#include "PluginViewBridgeAndroid.h"
@@ -306,8 +312,8 @@ void PluginView::handleKeyboardEvent(KeyboardEvent* event)
switch (pke->type()) {
case PlatformKeyboardEvent::KeyDown:
-#ifdef TRACE_KEY_EVENTS
- SkDebugf("--------- KeyDown, ignore\n");
+#if TRACE_KEY_EVENTS
+ PLUGIN_LOG("--------- KeyDown, ignore\n");
#endif
ignoreEvent = true;
break;
@@ -315,8 +321,8 @@ void PluginView::handleKeyboardEvent(KeyboardEvent* event)
evt.data.key.action = kDown_ANPKeyAction;
break;
case PlatformKeyboardEvent::Char:
-#ifdef TRACE_KEY_EVENTS
- SkDebugf("--------- Char, ignore\n");
+#if TRACE_KEY_EVENTS
+ PLUGIN_LOG("--------- Char, ignore\n");
#endif
ignoreEvent = true;
break;
@@ -324,8 +330,8 @@ void PluginView::handleKeyboardEvent(KeyboardEvent* event)
evt.data.key.action = kUp_ANPKeyAction;
break;
default:
-#ifdef TRACE_KEY_EVENTS
- SkDebugf("------ unexpected keyevent type %d\n", pke->type());
+#if TRACE_KEY_EVENTS
+ PLUGIN_LOG("------ unexpected keyevent type %d\n", pke->type());
#endif
ignoreEvent = true;
break;
@@ -381,6 +387,8 @@ NPError PluginView::getValueStatic(NPNVariable variable, void* value)
void PluginView::setParent(ScrollView* parent)
{
+ PLUGIN_LOG("--%p SetParent old=[%p], new=[%p] \n", instance(), this->parent(), parent);
+
Widget::setParent(parent);
if (parent) {
@@ -401,6 +409,8 @@ void PluginView::setNPWindowRect(const IntRect&)
void PluginView::setNPWindowIfNeeded()
{
+ PLUGIN_LOG("--%p SetWindow isStarted=[%d] \n", instance(), m_isStarted);
+
if (!m_isStarted || !parent())
return;
@@ -609,6 +619,7 @@ void PluginView::paint(GraphicsContext* context, const IntRect& rect)
void PluginView::updatePluginWidget()
{
FrameView* frameView = static_cast<FrameView*>(parent());
+ PLUGIN_LOG("--%p UpdatePluginWidget frame=[%p] \n", instance(), frameView);
if (frameView) {
IntRect oldWindowRect = m_windowRect;