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

Side by Side Diff: chrome/renderer/webplugin_delegate_pepper.h

Issue 2827047: Make RenderView call the plugin through WebKit::WebPlugin (instead of casting... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: compile until webkit is rolled Created 10 years, 5 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
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | chrome/renderer/webplugin_delegate_pepper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ 5 #ifndef CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_
6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ 6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include <map> 10 #include <map>
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 uint32 last_modified); 74 uint32 last_modified);
75 virtual void DidReceiveManualData(const char* buffer, int length); 75 virtual void DidReceiveManualData(const char* buffer, int length);
76 virtual void DidFinishManualLoading(); 76 virtual void DidFinishManualLoading();
77 virtual void DidManualLoadFail(); 77 virtual void DidManualLoadFail();
78 virtual void InstallMissingPlugin(); 78 virtual void InstallMissingPlugin();
79 virtual webkit_glue::WebPluginResourceClient* CreateResourceClient( 79 virtual webkit_glue::WebPluginResourceClient* CreateResourceClient(
80 unsigned long resource_id, const GURL& url, int notify_id); 80 unsigned long resource_id, const GURL& url, int notify_id);
81 virtual webkit_glue::WebPluginResourceClient* CreateSeekableResourceClient( 81 virtual webkit_glue::WebPluginResourceClient* CreateSeekableResourceClient(
82 unsigned long resource_id, int range_request_id); 82 unsigned long resource_id, int range_request_id);
83 virtual bool SupportsFind(); 83 virtual bool SupportsFind();
84 virtual void StartFind(const std::string& search_text, 84 virtual void StartFind(const string16& search_text,
85 bool case_sensitive, 85 bool case_sensitive,
86 int identifier); 86 int identifier);
87 virtual void SelectFindResult(bool forward); 87 virtual void SelectFindResult(bool forward);
88 virtual void StopFind(); 88 virtual void StopFind();
89 virtual void NumberOfFindResultsChanged(int total, bool final_result); 89 virtual void NumberOfFindResultsChanged(int total, bool final_result);
90 virtual void SelectedFindResultChanged(int index); 90 virtual void SelectedFindResultChanged(int index);
91 virtual bool ChooseFile(const char* mime_types, 91 virtual bool ChooseFile(const char* mime_types,
92 int mode, 92 int mode,
93 NPChooseFileCallback callback, 93 NPChooseFileCallback callback,
94 void* user_data); 94 void* user_data);
95 virtual NPWidgetExtensions* GetWidgetExtensions(); 95 virtual NPWidgetExtensions* GetWidgetExtensions();
96 virtual bool SetCursor(NPCursorType type); 96 virtual bool SetCursor(NPCursorType type);
97 virtual NPFontExtensions* GetFontExtensions(); 97 virtual NPFontExtensions* GetFontExtensions();
98 virtual void Zoom(int factor); 98 virtual void SetZoomFactor(float scale, bool text_only);
99 virtual void Copy(); 99 virtual bool HasSelection() const;
100 virtual string16 GetSelectedText(); 100 virtual string16 GetSelectionAsText() const;
101 virtual string16 GetSelectionAsMarkup() const;
101 102
102 // WebPlugin2DDeviceDelegate implementation. 103 // WebPlugin2DDeviceDelegate implementation.
103 virtual NPError Device2DQueryCapability(int32 capability, int32* value); 104 virtual NPError Device2DQueryCapability(int32 capability, int32* value);
104 virtual NPError Device2DQueryConfig(const NPDeviceContext2DConfig* request, 105 virtual NPError Device2DQueryConfig(const NPDeviceContext2DConfig* request,
105 NPDeviceContext2DConfig* obtain); 106 NPDeviceContext2DConfig* obtain);
106 virtual NPError Device2DInitializeContext( 107 virtual NPError Device2DInitializeContext(
107 const NPDeviceContext2DConfig* config, 108 const NPDeviceContext2DConfig* config,
108 NPDeviceContext2D* context); 109 NPDeviceContext2D* context);
109 virtual NPError Device2DSetStateContext(NPDeviceContext2D* context, 110 virtual NPError Device2DSetStateContext(NPDeviceContext2D* context,
110 int32 state, 111 int32 state,
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 void* user_data); 262 void* user_data);
262 #endif 263 #endif
263 264
264 // Tells the browser out-of-band where the nested delegate lives on 265 // Tells the browser out-of-band where the nested delegate lives on
265 // the page. 266 // the page.
266 void SendNestedDelegateGeometryToBrowser(const gfx::Rect& window_rect, 267 void SendNestedDelegateGeometryToBrowser(const gfx::Rect& window_rect,
267 const gfx::Rect& clip_rect); 268 const gfx::Rect& clip_rect);
268 269
269 // Returns the selection. If nothing is selected, returns an empty string. 270 // Returns the selection. If nothing is selected, returns an empty string.
270 // If html is true, it will return a string only if html data is available. 271 // If html is true, it will return a string only if html data is available.
271 string16 GetSelectedText(bool html); 272 string16 GetSelectedText(bool html) const;
272 273
273 base::WeakPtr<RenderView> render_view_; 274 base::WeakPtr<RenderView> render_view_;
274 275
275 webkit_glue::WebPlugin* plugin_; 276 webkit_glue::WebPlugin* plugin_;
276 scoped_refptr<NPAPI::PluginInstance> instance_; 277 scoped_refptr<NPAPI::PluginInstance> instance_;
277 278
278 NPWindow window_; 279 NPWindow window_;
279 gfx::Rect window_rect_; 280 gfx::Rect window_rect_;
280 gfx::Rect clip_rect_; 281 gfx::Rect clip_rect_;
281 std::vector<gfx::Rect> cutout_rects_; 282 std::vector<gfx::Rect> cutout_rects_;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 // pointer to the callback specified by the plugin. Will be NULL otherwise. 334 // pointer to the callback specified by the plugin. Will be NULL otherwise.
334 NPChooseFileCallback current_choose_file_callback_; 335 NPChooseFileCallback current_choose_file_callback_;
335 void* current_choose_file_user_data_; 336 void* current_choose_file_user_data_;
336 337
337 scoped_ptr<WebKit::WebCursorInfo> cursor_; 338 scoped_ptr<WebKit::WebCursorInfo> cursor_;
338 339
339 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegatePepper); 340 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegatePepper);
340 }; 341 };
341 342
342 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ 343 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | chrome/renderer/webplugin_delegate_pepper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698