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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 std::string& 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 | 156 |
156 // 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 |
157 // out and +1 means zoom in. | 158 // out and +1 means zoom in. |
158 virtual void Zoom(int factor) {} | 159 virtual void Zoom(int factor) {} |
159 // Copy the selected text. | 160 // Copy the selected text. |
160 virtual void Copy() {} | 161 virtual void Copy() {} |
161 }; | 162 }; |
162 | 163 |
163 } // namespace webkit_glue | 164 } // namespace webkit_glue |
164 | 165 |
165 #endif // WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_ | 166 #endif // WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_ |
OLD | NEW |