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

Side by Side Diff: components/plugins/renderer/plugin_placeholder.cc

Issue 1124343002: Plugin Power Saver: Enable JS access to throttled plugins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/plugins/renderer/plugin_placeholder.h" 5 #include "components/plugins/renderer/plugin_placeholder.h"
6 6
7 #include "content/public/renderer/render_frame.h" 7 #include "content/public/renderer/render_frame.h"
8 8
9 namespace plugins { 9 namespace plugins {
10 10
(...skipping 24 matching lines...) Expand all
35 void PluginPlaceholder::ShowContextMenu(const blink::WebMouseEvent& event) { 35 void PluginPlaceholder::ShowContextMenu(const blink::WebMouseEvent& event) {
36 // Does nothing by default. Will be overridden if a specific browser wants 36 // Does nothing by default. Will be overridden if a specific browser wants
37 // a context menu. 37 // a context menu.
38 return; 38 return;
39 } 39 }
40 40
41 void PluginPlaceholder::PluginDestroyed() { 41 void PluginPlaceholder::PluginDestroyed() {
42 plugin_ = NULL; 42 plugin_ = NULL;
43 } 43 }
44 44
45 v8::Local<v8::Object> PluginPlaceholder::GetV8ScriptableObject(
46 v8::Isolate* isolate) const {
47 return v8::Local<v8::Object>();
48 }
49
45 void PluginPlaceholder::OnDestruct() { 50 void PluginPlaceholder::OnDestruct() {
46 frame_ = NULL; 51 frame_ = NULL;
47 } 52 }
48 53
49 blink::WebLocalFrame* PluginPlaceholder::GetFrame() { return frame_; } 54 blink::WebLocalFrame* PluginPlaceholder::GetFrame() { return frame_; }
50 55
51 } // namespace plugins 56 } // namespace plugins
OLDNEW
« no previous file with comments | « components/plugins/renderer/plugin_placeholder.h ('k') | components/plugins/renderer/webview_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698