| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |