OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <list> | 9 #include <list> |
10 | 10 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
94 // WebPluginDelegate implementation | 94 // WebPluginDelegate implementation |
95 virtual bool Initialize(const GURL& url, | 95 virtual bool Initialize(const GURL& url, |
96 const std::vector<std::string>& arg_names, | 96 const std::vector<std::string>& arg_names, |
97 const std::vector<std::string>& arg_values, | 97 const std::vector<std::string>& arg_values, |
98 WebPlugin* plugin, | 98 WebPlugin* plugin, |
99 bool load_manually); | 99 bool load_manually); |
100 virtual void PluginDestroyed(); | 100 virtual void PluginDestroyed(); |
101 virtual void UpdateGeometry(const gfx::Rect& window_rect, | 101 virtual void UpdateGeometry(const gfx::Rect& window_rect, |
102 const gfx::Rect& clip_rect); | 102 const gfx::Rect& clip_rect); |
103 virtual void Paint(WebKit::WebCanvas* canvas, const gfx::Rect& rect); | 103 virtual void Paint(WebKit::WebCanvas* canvas, const gfx::Rect& rect); |
104 #if defined(OS_MACOSX) | |
105 void CGPaint(CGContextRef context, const gfx::Rect& rect); | |
stuartmorgan
2011/04/12 21:15:37
This shouldn't be in the WebPluginDelegate impleme
_cary
2011/04/13 11:58:18
Done.
| |
106 #endif | |
104 virtual void Print(gfx::NativeDrawingContext context); | 107 virtual void Print(gfx::NativeDrawingContext context); |
105 virtual void SetFocus(bool focused); | 108 virtual void SetFocus(bool focused); |
106 virtual bool HandleInputEvent(const WebKit::WebInputEvent& event, | 109 virtual bool HandleInputEvent(const WebKit::WebInputEvent& event, |
107 WebKit::WebCursorInfo* cursor_info); | 110 WebKit::WebCursorInfo* cursor_info); |
108 virtual NPObject* GetPluginScriptableObject(); | 111 virtual NPObject* GetPluginScriptableObject(); |
109 virtual void DidFinishLoadWithReason( | 112 virtual void DidFinishLoadWithReason( |
110 const GURL& url, NPReason reason, int notify_id); | 113 const GURL& url, NPReason reason, int notify_id); |
111 virtual int GetProcessId(); | 114 virtual int GetProcessId(); |
112 virtual void SendJavaScriptStream(const GURL& url, | 115 virtual void SendJavaScriptStream(const GURL& url, |
113 const std::string& result, | 116 const std::string& result, |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
513 // True if NPP_New did not return an error. | 516 // True if NPP_New did not return an error. |
514 bool creation_succeeded_; | 517 bool creation_succeeded_; |
515 | 518 |
516 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); | 519 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); |
517 }; | 520 }; |
518 | 521 |
519 } // namespace npapi | 522 } // namespace npapi |
520 } // namespace webkit | 523 } // namespace webkit |
521 | 524 |
522 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 525 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
OLD | NEW |