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

Side by Side Diff: content/renderer/browser_plugin/browser_plugin.h

Issue 729333002: Add PostMessage support for MimeHandlerView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
7 7
8 #include "third_party/WebKit/public/web/WebPlugin.h" 8 #include "third_party/WebKit/public/web/WebPlugin.h"
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // sent, if needed. 71 // sent, if needed.
72 void DidCommitCompositorFrame(); 72 void DidCommitCompositorFrame();
73 73
74 // Returns whether a message should be forwarded to BrowserPlugin. 74 // Returns whether a message should be forwarded to BrowserPlugin.
75 static bool ShouldForwardToBrowserPlugin(const IPC::Message& message); 75 static bool ShouldForwardToBrowserPlugin(const IPC::Message& message);
76 76
77 // blink::WebPlugin implementation. 77 // blink::WebPlugin implementation.
78 virtual blink::WebPluginContainer* container() const override; 78 virtual blink::WebPluginContainer* container() const override;
79 virtual bool initialize(blink::WebPluginContainer* container) override; 79 virtual bool initialize(blink::WebPluginContainer* container) override;
80 virtual void destroy() override; 80 virtual void destroy() override;
81 virtual v8::Local<v8::Object> v8ScriptableObject(
82 v8::Isolate* isolate) override;
81 virtual bool supportsKeyboardFocus() const override; 83 virtual bool supportsKeyboardFocus() const override;
82 virtual bool supportsEditCommands() const override; 84 virtual bool supportsEditCommands() const override;
83 virtual bool supportsInputMethod() const override; 85 virtual bool supportsInputMethod() const override;
84 virtual bool canProcessDrag() const override; 86 virtual bool canProcessDrag() const override;
85 virtual void paint( 87 virtual void paint(
86 blink::WebCanvas* canvas, 88 blink::WebCanvas* canvas,
87 const blink::WebRect& rect) override; 89 const blink::WebRect& rect) override;
88 virtual void updateGeometry( 90 virtual void updateGeometry(
89 const blink::WebRect& frame_rect, 91 const blink::WebRect& frame_rect,
90 const blink::WebRect& clip_rect, 92 const blink::WebRect& clip_rect,
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might 216 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might
215 // get called after BrowserPlugin has been destroyed. 217 // get called after BrowserPlugin has been destroyed.
216 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; 218 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_;
217 219
218 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); 220 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin);
219 }; 221 };
220 222
221 } // namespace content 223 } // namespace content
222 224
223 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 225 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698