| 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 int notify_id) = 0; | 136 int notify_id) = 0; |
| 137 | 137 |
| 138 // Creates a WebPluginResourceClient instance for an existing stream that is | 138 // Creates a WebPluginResourceClient instance for an existing stream that is |
| 139 // has become seekable. | 139 // has become seekable. |
| 140 virtual WebPluginResourceClient* CreateSeekableResourceClient( | 140 virtual WebPluginResourceClient* CreateSeekableResourceClient( |
| 141 unsigned long resource_id, int range_request_id) = 0; | 141 unsigned long resource_id, int range_request_id) = 0; |
| 142 | 142 |
| 143 // See WebPluginContainerImpl's description of the interface. | 143 // See WebPluginContainerImpl's description of the interface. |
| 144 virtual bool StartFind(const string16& search_text, | 144 virtual bool StartFind(const string16& search_text, |
| 145 bool case_sensitive, | 145 bool case_sensitive, |
| 146 int identifier) { return false; } | 146 int identifier); |
| 147 virtual void SelectFindResult(bool forward) {} | 147 virtual void SelectFindResult(bool forward) {} |
| 148 virtual void StopFind() {} | 148 virtual void StopFind() {} |
| 149 virtual void NumberOfFindResultsChanged(int total, bool final_result) {} | 149 virtual void NumberOfFindResultsChanged(int total, bool final_result) {} |
| 150 virtual void SelectedFindResultChanged(int index) {} | 150 virtual void SelectedFindResultChanged(int index) {} |
| 151 virtual NPWidgetExtensions* GetWidgetExtensions() { return NULL; } | 151 virtual NPWidgetExtensions* GetWidgetExtensions(); |
| 152 virtual bool SetCursor(NPCursorType type) { return false; } | 152 virtual bool SetCursor(NPCursorType type); |
| 153 virtual NPFontExtensions* GetFontExtensions() { return NULL; } | 153 virtual NPFontExtensions* GetFontExtensions(); |
| 154 | 154 |
| 155 // Used for zooming of full page plugins. 0 means reset, while -1 means zoom | 155 // Used for zooming of full page plugins. 0 means reset, while -1 means zoom |
| 156 // out and +1 means zoom in. | 156 // out and +1 means zoom in. |
| 157 virtual void SetZoomFactor(float scale, bool text_only) {} | 157 virtual void SetZoomFactor(float scale, bool text_only) {} |
| 158 // Gets the selected text, if any. | 158 // Gets the selected text, if any. |
| 159 virtual bool HasSelection() const { return false; } | 159 virtual bool HasSelection() const; |
| 160 virtual string16 GetSelectionAsText() const { return string16(); } | 160 virtual string16 GetSelectionAsText() const; |
| 161 virtual string16 GetSelectionAsMarkup() const { return string16(); } | 161 virtual string16 GetSelectionAsMarkup() const; |
| 162 }; | 162 }; |
| 163 | 163 |
| 164 } // namespace webkit_glue | 164 } // namespace webkit_glue |
| 165 | 165 |
| 166 #endif // WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_ | 166 #endif // WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_ |
| OLD | NEW |