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

Side by Side Diff: webkit/glue/plugins/webplugin_delegate.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 | « webkit/glue/plugins/pepper_webplugin_impl.cc ('k') | webkit/glue/plugins/webplugin_impl.h » ('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 WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_ 5 #ifndef WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_
6 #define WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_ 6 #define WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 const GURL& url, 136 const GURL& url,
137 int notify_id) = 0; 137 int notify_id) = 0;
138 138
139 // Creates a WebPluginResourceClient instance for an existing stream that is 139 // Creates a WebPluginResourceClient instance for an existing stream that is
140 // has become seekable. 140 // has become seekable.
141 virtual WebPluginResourceClient* CreateSeekableResourceClient( 141 virtual WebPluginResourceClient* CreateSeekableResourceClient(
142 unsigned long resource_id, int range_request_id) = 0; 142 unsigned long resource_id, int range_request_id) = 0;
143 143
144 // See WebPluginContainerImpl's description of the interface. 144 // See WebPluginContainerImpl's description of the interface.
145 virtual bool SupportsFind() { return false; } 145 virtual bool SupportsFind() { return false; }
146 virtual void StartFind(const std::string& search_text, 146 virtual void StartFind(const string16& search_text,
147 bool case_sensitive, 147 bool case_sensitive,
148 int identifier) {} 148 int identifier) {}
149 virtual void SelectFindResult(bool forward) {} 149 virtual void SelectFindResult(bool forward) {}
150 virtual void StopFind() {} 150 virtual void StopFind() {}
151 virtual void NumberOfFindResultsChanged(int total, bool final_result) {} 151 virtual void NumberOfFindResultsChanged(int total, bool final_result) {}
152 virtual void SelectedFindResultChanged(int index) {} 152 virtual void SelectedFindResultChanged(int index) {}
153 virtual NPWidgetExtensions* GetWidgetExtensions() { return NULL; } 153 virtual NPWidgetExtensions* GetWidgetExtensions() { return NULL; }
154 virtual bool SetCursor(NPCursorType type) { return false; } 154 virtual bool SetCursor(NPCursorType type) { return false; }
155 virtual NPFontExtensions* GetFontExtensions() { return NULL; } 155 virtual NPFontExtensions* GetFontExtensions() { return NULL; }
156 156
157 // Used for zooming of full page plugins. 0 means reset, while -1 means zoom 157 // Used for zooming of full page plugins. 0 means reset, while -1 means zoom
158 // out and +1 means zoom in. 158 // out and +1 means zoom in.
159 virtual void Zoom(int factor) {} 159 virtual void SetZoomFactor(float scale, bool text_only) {}
160 // Copy the selected text. 160 // Gets the selected text, if any.
161 virtual void Copy() {} 161 virtual bool HasSelection() const { return false; }
162 // Gets the selected UTF8 text, if any. 162 virtual string16 GetSelectionAsText() const { return string16(); }
163 virtual string16 GetSelectedText() { return string16(); } 163 virtual string16 GetSelectionAsMarkup() const { return string16(); }
164 }; 164 };
165 165
166 } // namespace webkit_glue 166 } // namespace webkit_glue
167 167
168 #endif // WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_ 168 #endif // WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/glue/plugins/pepper_webplugin_impl.cc ('k') | webkit/glue/plugins/webplugin_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698