Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Unified Diff: chromecast/port/content/child/npapi/webplugin_delegate_impl_cast.cc

Issue 223143003: Initial checkin of chromecast content embedder (cast_shell) and related build scripts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add an additional function in gl_surface_cast.cc Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698