Index: chromecast/port/content/child/npapi/webplugin_delegate_impl_cast.cc |
diff --git a/content/child/npapi/webplugin_delegate_impl_aura.cc b/chromecast/port/content/child/npapi/webplugin_delegate_impl_cast.cc |
similarity index 82% |
copy from content/child/npapi/webplugin_delegate_impl_aura.cc |
copy to chromecast/port/content/child/npapi/webplugin_delegate_impl_cast.cc |
index a700e7c44cab1f348ec051c001896c4c8db162e0..a25b6809ea932a2ed8df24ef79a43c77c4107789 100644 |
--- a/content/child/npapi/webplugin_delegate_impl_aura.cc |
+++ b/chromecast/port/content/child/npapi/webplugin_delegate_impl_cast.cc |
@@ -1,10 +1,13 @@ |
-// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2014 The Chromium Authors. All rights reserved. |
jam
2014/04/04 01:01:24
why does this file exist? are you using plugins? i
lcwu1
2014/04/05 01:17:13
No, we don't use plugin. I think we encounter some
jam
2014/04/07 17:32:01
I see, ok please fix the enable_plugins=0 case the
|
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
#include "content/child/npapi/webplugin_delegate_impl.h" |
+#include "base/basictypes.h" |
+#include "base/logging.h" |
#include "content/child/npapi/plugin_instance.h" |
+#include "content/child/npapi/webplugin.h" |
#include "content/common/cursors/webcursor.h" |
using blink::WebInputEvent; |
@@ -26,11 +29,12 @@ void WebPluginDelegateImpl::PlatformDestroyInstance() { |
// Nothing to do here. |
} |
-void WebPluginDelegateImpl::Paint(SkCanvas* canvas, const gfx::Rect& rect) { |
+void WebPluginDelegateImpl::Paint(SkCanvas* canvas, |
+ const gfx::Rect& rect) { |
} |
bool WebPluginDelegateImpl::WindowedCreatePlugin() { |
- return true; |
+ return false; |
} |
void WebPluginDelegateImpl::WindowedDestroyWindow() { |
@@ -39,7 +43,7 @@ void WebPluginDelegateImpl::WindowedDestroyWindow() { |
bool WebPluginDelegateImpl::WindowedReposition( |
const gfx::Rect& window_rect, |
const gfx::Rect& clip_rect) { |
- return true; |
+ return false; |
} |
void WebPluginDelegateImpl::WindowedSetWindow() { |
@@ -55,7 +59,7 @@ void WebPluginDelegateImpl::WindowlessPaint(gfx::NativeDrawingContext context, |
} |
bool WebPluginDelegateImpl::PlatformSetPluginHasFocus(bool focused) { |
- return true; |
+ return false; |
} |
bool WebPluginDelegateImpl::PlatformHandleInputEvent( |