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 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 void Zoom(int factor); | 98 virtual void Zoom(int factor); |
98 virtual void Copy(); | 99 virtual void Copy(); |
99 | 100 |
100 // WebPlugin2DDeviceDelegate implementation. | 101 // WebPlugin2DDeviceDelegate implementation. |
101 virtual NPError Device2DQueryCapability(int32 capability, int32* value); | 102 virtual NPError Device2DQueryCapability(int32 capability, int32* value); |
102 virtual NPError Device2DQueryConfig(const NPDeviceContext2DConfig* request, | 103 virtual NPError Device2DQueryConfig(const NPDeviceContext2DConfig* request, |
103 NPDeviceContext2DConfig* obtain); | 104 NPDeviceContext2DConfig* obtain); |
104 virtual NPError Device2DInitializeContext( | 105 virtual NPError Device2DInitializeContext( |
105 const NPDeviceContext2DConfig* config, | 106 const NPDeviceContext2DConfig* config, |
106 NPDeviceContext2D* context); | 107 NPDeviceContext2D* context); |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 // pointer to the callback specified by the plugin. Will be NULL otherwise. | 314 // pointer to the callback specified by the plugin. Will be NULL otherwise. |
314 NPChooseFileCallback current_choose_file_callback_; | 315 NPChooseFileCallback current_choose_file_callback_; |
315 void* current_choose_file_user_data_; | 316 void* current_choose_file_user_data_; |
316 | 317 |
317 scoped_ptr<WebKit::WebCursorInfo> cursor_; | 318 scoped_ptr<WebKit::WebCursorInfo> cursor_; |
318 | 319 |
319 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegatePepper); | 320 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegatePepper); |
320 }; | 321 }; |
321 | 322 |
322 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ | 323 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ |
OLD | NEW |