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

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

Issue 19744007: Create a public API around webkit::ppapi::PluginInstance and use it in chrome. After this, webkit/p… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 4 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_RENDER_VIEW_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 struct ViewMsg_PostMessage_Params; 80 struct ViewMsg_PostMessage_Params;
81 struct ViewMsg_StopFinding_Params; 81 struct ViewMsg_StopFinding_Params;
82 82
83 namespace ui { 83 namespace ui {
84 struct SelectedFileInfo; 84 struct SelectedFileInfo;
85 } // namespace ui 85 } // namespace ui
86 86
87 namespace webkit { 87 namespace webkit {
88 88
89 namespace ppapi { 89 namespace ppapi {
90 class PluginInstance; 90 class PluginInstanceImpl;
91 } // namespace ppapi 91 } // namespace ppapi
92 92
93 } // namespace webkit 93 } // namespace webkit
94 94
95 namespace WebKit { 95 namespace WebKit {
96 class WebApplicationCacheHost; 96 class WebApplicationCacheHost;
97 class WebApplicationCacheHostClient; 97 class WebApplicationCacheHostClient;
98 class WebDOMMessageEvent; 98 class WebDOMMessageEvent;
99 class WebDataSource; 99 class WebDataSource;
100 class WebDateTimeChooserCompletion; 100 class WebDateTimeChooserCompletion;
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 bool replace); 289 bool replace);
290 290
291 // Plugin-related functions -------------------------------------------------- 291 // Plugin-related functions --------------------------------------------------
292 292
293 // Notification that the given plugin has crashed. 293 // Notification that the given plugin has crashed.
294 void PluginCrashed(const base::FilePath& plugin_path, 294 void PluginCrashed(const base::FilePath& plugin_path,
295 base::ProcessId plugin_pid); 295 base::ProcessId plugin_pid);
296 296
297 // Creates a fullscreen container for a pepper plugin instance. 297 // Creates a fullscreen container for a pepper plugin instance.
298 RenderWidgetFullscreenPepper* CreatePepperFullscreenContainer( 298 RenderWidgetFullscreenPepper* CreatePepperFullscreenContainer(
299 webkit::ppapi::PluginInstance* plugin); 299 webkit::ppapi::PluginInstanceImpl* plugin);
300 300
301 // Informs the render view that a PPAPI plugin has gained or lost focus. 301 // Informs the render view that a PPAPI plugin has gained or lost focus.
302 void PpapiPluginFocusChanged(); 302 void PpapiPluginFocusChanged();
303 303
304 // Informs the render view that a PPAPI plugin has changed text input status. 304 // Informs the render view that a PPAPI plugin has changed text input status.
305 void PpapiPluginTextInputTypeChanged(); 305 void PpapiPluginTextInputTypeChanged();
306 void PpapiPluginCaretPositionChanged(); 306 void PpapiPluginCaretPositionChanged();
307 307
308 // Cancels current composition. 308 // Cancels current composition.
309 void PpapiPluginCancelComposition(); 309 void PpapiPluginCancelComposition();
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 typedef std::vector<linked_ptr<ImageResourceFetcher> > 761 typedef std::vector<linked_ptr<ImageResourceFetcher> >
762 ImageResourceFetcherList; 762 ImageResourceFetcherList;
763 763
764 protected: 764 protected:
765 // RenderWidget overrides: 765 // RenderWidget overrides:
766 virtual void Close() OVERRIDE; 766 virtual void Close() OVERRIDE;
767 virtual void OnResize(const ViewMsg_Resize_Params& params) OVERRIDE; 767 virtual void OnResize(const ViewMsg_Resize_Params& params) OVERRIDE;
768 virtual void WillInitiatePaint() OVERRIDE; 768 virtual void WillInitiatePaint() OVERRIDE;
769 virtual void DidInitiatePaint() OVERRIDE; 769 virtual void DidInitiatePaint() OVERRIDE;
770 virtual void DidFlushPaint() OVERRIDE; 770 virtual void DidFlushPaint() OVERRIDE;
771 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( 771 virtual webkit::ppapi::PluginInstanceImpl* GetBitmapForOptimizedPluginPaint(
772 const gfx::Rect& paint_bounds, 772 const gfx::Rect& paint_bounds,
773 TransportDIB** dib, 773 TransportDIB** dib,
774 gfx::Rect* location, 774 gfx::Rect* location,
775 gfx::Rect* clip, 775 gfx::Rect* clip,
776 float* scale_factor) OVERRIDE; 776 float* scale_factor) OVERRIDE;
777 virtual gfx::Vector2d GetScrollOffset() OVERRIDE; 777 virtual gfx::Vector2d GetScrollOffset() OVERRIDE;
778 virtual void DidHandleKeyEvent() OVERRIDE; 778 virtual void DidHandleKeyEvent() OVERRIDE;
779 virtual bool WillHandleMouseEvent( 779 virtual bool WillHandleMouseEvent(
780 const WebKit::WebMouseEvent& event) OVERRIDE; 780 const WebKit::WebMouseEvent& event) OVERRIDE;
781 virtual bool WillHandleKeyEvent( 781 virtual bool WillHandleKeyEvent(
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
1558 // use the Observer interface to filter IPC messages and receive frame change 1558 // use the Observer interface to filter IPC messages and receive frame change
1559 // notifications. 1559 // notifications.
1560 // --------------------------------------------------------------------------- 1560 // ---------------------------------------------------------------------------
1561 1561
1562 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1562 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1563 }; 1563 };
1564 1564
1565 } // namespace content 1565 } // namespace content
1566 1566
1567 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1567 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698