OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 5 #ifndef CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 const std::vector<std::string>& arg_names, | 81 const std::vector<std::string>& arg_names, |
82 const std::vector<std::string>& arg_values, | 82 const std::vector<std::string>& arg_values, |
83 bool load_manually) override; | 83 bool load_manually) override; |
84 void PluginDestroyed() override; | 84 void PluginDestroyed() override; |
85 void UpdateGeometry(const gfx::Rect& window_rect, | 85 void UpdateGeometry(const gfx::Rect& window_rect, |
86 const gfx::Rect& clip_rect) override; | 86 const gfx::Rect& clip_rect) override; |
87 void Paint(SkCanvas* canvas, const gfx::Rect& rect) override; | 87 void Paint(SkCanvas* canvas, const gfx::Rect& rect) override; |
88 void SetFocus(bool focused) override; | 88 void SetFocus(bool focused) override; |
89 bool HandleInputEvent(const blink::WebInputEvent& event, | 89 bool HandleInputEvent(const blink::WebInputEvent& event, |
90 WebCursor::CursorInfo* cursor_info) override; | 90 WebCursor::CursorInfo* cursor_info) override; |
91 NPObject* GetPluginScriptableObject() override; | |
92 NPP GetPluginNPP() override; | |
93 bool GetFormValue(base::string16* value) override; | 91 bool GetFormValue(base::string16* value) override; |
94 int GetProcessId() override; | 92 int GetProcessId() override; |
95 // End of WebPluginDelegate implementation. | 93 // End of WebPluginDelegate implementation. |
96 | 94 |
97 PluginInstance* instance() { return instance_.get(); } | 95 PluginInstance* instance() { return instance_.get(); } |
98 gfx::Rect GetRect() const { return window_rect_; } | 96 gfx::Rect GetRect() const { return window_rect_; } |
99 gfx::Rect GetClipRect() const { return clip_rect_; } | 97 gfx::Rect GetClipRect() const { return clip_rect_; } |
100 | 98 |
101 // Returns the path for the library implementing this plugin. | 99 // Returns the path for the library implementing this plugin. |
102 base::FilePath GetPluginPath(); | 100 base::FilePath GetPluginPath(); |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 // asynchronously. | 279 // asynchronously. |
282 base::WeakPtrFactory<WebPluginDelegateImpl> user_gesture_msg_factory_; | 280 base::WeakPtrFactory<WebPluginDelegateImpl> user_gesture_msg_factory_; |
283 #endif | 281 #endif |
284 | 282 |
285 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); | 283 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); |
286 }; | 284 }; |
287 | 285 |
288 } // namespace content | 286 } // namespace content |
289 | 287 |
290 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 288 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
OLD | NEW |