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

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

Issue 15149006: <webview>: Plumb edit commands (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed fprintf Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/Source/WebKit/chromium/public/WebPlugin.h" 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h"
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 // Returns whether a message should be forwarded to BrowserPlugin. 173 // Returns whether a message should be forwarded to BrowserPlugin.
174 static bool ShouldForwardToBrowserPlugin(const IPC::Message& message); 174 static bool ShouldForwardToBrowserPlugin(const IPC::Message& message);
175 175
176 // WebKit::WebPlugin implementation. 176 // WebKit::WebPlugin implementation.
177 virtual WebKit::WebPluginContainer* container() const OVERRIDE; 177 virtual WebKit::WebPluginContainer* container() const OVERRIDE;
178 virtual bool initialize(WebKit::WebPluginContainer* container) OVERRIDE; 178 virtual bool initialize(WebKit::WebPluginContainer* container) OVERRIDE;
179 virtual void destroy() OVERRIDE; 179 virtual void destroy() OVERRIDE;
180 virtual NPObject* scriptableObject() OVERRIDE; 180 virtual NPObject* scriptableObject() OVERRIDE;
181 virtual struct _NPP* pluginNPP() OVERRIDE; 181 virtual struct _NPP* pluginNPP() OVERRIDE;
182 virtual bool supportsKeyboardFocus() const OVERRIDE; 182 virtual bool supportsKeyboardFocus() const OVERRIDE;
183 virtual bool supportsEditCommands() const OVERRIDE;
183 virtual bool canProcessDrag() const OVERRIDE; 184 virtual bool canProcessDrag() const OVERRIDE;
184 virtual void paint( 185 virtual void paint(
185 WebKit::WebCanvas* canvas, 186 WebKit::WebCanvas* canvas,
186 const WebKit::WebRect& rect) OVERRIDE; 187 const WebKit::WebRect& rect) OVERRIDE;
187 virtual void updateGeometry( 188 virtual void updateGeometry(
188 const WebKit::WebRect& frame_rect, 189 const WebKit::WebRect& frame_rect,
189 const WebKit::WebRect& clip_rect, 190 const WebKit::WebRect& clip_rect,
190 const WebKit::WebVector<WebKit::WebRect>& cut_outs_rects, 191 const WebKit::WebVector<WebKit::WebRect>& cut_outs_rects,
191 bool is_visible) OVERRIDE; 192 bool is_visible) OVERRIDE;
192 virtual void updateFocus(bool focused) OVERRIDE; 193 virtual void updateFocus(bool focused) OVERRIDE;
(...skipping 13 matching lines...) Expand all
206 virtual void didFinishLoading() OVERRIDE; 207 virtual void didFinishLoading() OVERRIDE;
207 virtual void didFailLoading(const WebKit::WebURLError& error) OVERRIDE; 208 virtual void didFailLoading(const WebKit::WebURLError& error) OVERRIDE;
208 virtual void didFinishLoadingFrameRequest( 209 virtual void didFinishLoadingFrameRequest(
209 const WebKit::WebURL& url, 210 const WebKit::WebURL& url,
210 void* notify_data) OVERRIDE; 211 void* notify_data) OVERRIDE;
211 virtual void didFailLoadingFrameRequest( 212 virtual void didFailLoadingFrameRequest(
212 const WebKit::WebURL& url, 213 const WebKit::WebURL& url,
213 void* notify_data, 214 void* notify_data,
214 const WebKit::WebURLError& error) OVERRIDE; 215 const WebKit::WebURLError& error) OVERRIDE;
215 virtual bool executeEditCommand(const WebKit::WebString& name) OVERRIDE; 216 virtual bool executeEditCommand(const WebKit::WebString& name) OVERRIDE;
217 virtual bool executeEditCommand(const WebKit::WebString& name,
218 const WebKit::WebString& value) OVERRIDE;
216 219
217 // MouseLockDispatcher::LockTarget implementation. 220 // MouseLockDispatcher::LockTarget implementation.
218 virtual void OnLockMouseACK(bool succeeded) OVERRIDE; 221 virtual void OnLockMouseACK(bool succeeded) OVERRIDE;
219 virtual void OnMouseLockLost() OVERRIDE; 222 virtual void OnMouseLockLost() OVERRIDE;
220 virtual bool HandleMouseLockedInputEvent( 223 virtual bool HandleMouseLockedInputEvent(
221 const WebKit::WebMouseEvent& event) OVERRIDE; 224 const WebKit::WebMouseEvent& event) OVERRIDE;
222 225
223 private: 226 private:
224 friend class base::DeleteHelper<BrowserPlugin>; 227 friend class base::DeleteHelper<BrowserPlugin>;
225 // Only the manager is allowed to create a BrowserPlugin. 228 // Only the manager is allowed to create a BrowserPlugin.
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 bool compositing_enabled_; 456 bool compositing_enabled_;
454 scoped_refptr<BrowserPluginCompositingHelper> compositing_helper_; 457 scoped_refptr<BrowserPluginCompositingHelper> compositing_helper_;
455 458
456 // Used to identify the plugin to WebBindings. 459 // Used to identify the plugin to WebBindings.
457 scoped_ptr<struct _NPP> npp_; 460 scoped_ptr<struct _NPP> npp_;
458 461
459 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might 462 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might
460 // get called after BrowserPlugin has been destroyed. 463 // get called after BrowserPlugin has been destroyed.
461 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; 464 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_;
462 465
466 std::vector<EditCommand> edit_commands_;
467
463 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); 468 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin);
464 }; 469 };
465 470
466 } // namespace content 471 } // namespace content
467 472
468 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 473 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
OLDNEW
« no previous file with comments | « content/common/browser_plugin/browser_plugin_messages.h ('k') | content/renderer/browser_plugin/browser_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698