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

Unified Diff: content/renderer/plugin_delegate_helper.cc

Issue 11414180: Add a gyp flag to allow removing dependency on ppapi. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Jay's comments and rebase Created 8 years, 1 month 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: content/renderer/plugin_delegate_helper.cc
diff --git a/content/renderer/plugin_delegate_helper.cc b/content/renderer/plugin_delegate_helper.cc
new file mode 100644
index 0000000000000000000000000000000000000000..53bca311cd894033ea31f1730a506155b288975d
--- /dev/null
+++ b/content/renderer/plugin_delegate_helper.cc
@@ -0,0 +1,50 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/renderer/plugin_delegate_helper.h"
+
+#include "ui/gfx/rect.h"
+#include "webkit/plugins/ppapi/plugin_module.h"
brettw 2012/11/30 23:18:12 Why is this include necessary?
nilesh 2012/12/01 00:41:35 Removed.
+
+namespace content {
+
+PluginDelegateHelper::~PluginDelegateHelper() {
+}
+
+WebKit::WebPlugin* PluginDelegateHelper::CreatePepperWebPlugin(
+ const webkit::WebPluginInfo& webplugin_info,
+ const WebKit::WebPluginParams& params) {
+ return NULL;
+}
+
+webkit::ppapi::PluginInstance*
+PluginDelegateHelper::GetBitmapForOptimizedPluginPaint(
+ const gfx::Rect& paint_bounds,
+ TransportDIB** dib,
+ gfx::Rect* location,
+ gfx::Rect* clip,
+ float* scale_factor) {
+ return NULL;
+}
+
+bool PluginDelegateHelper::IsPluginFocused() const {
+ return false;
+}
+
+gfx::Rect PluginDelegateHelper::GetCaretBounds() const {
+ return gfx::Rect(0, 0, 0, 0);
+}
+
+ui::TextInputType PluginDelegateHelper::GetTextInputType() const {
+ return ui::TEXT_INPUT_TYPE_NONE;
+}
+
+bool PluginDelegateHelper::IsPluginAcceptingCompositionEvents() const {
+ return false;
+}
+
+bool PluginDelegateHelper::CanComposeInline() const {
+ return false;
+}
+} // namespace content
brettw 2012/11/30 23:18:12 Need blank before this.
nilesh 2012/12/01 00:41:35 Done.

Powered by Google App Engine
This is Rietveld 408576698