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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 const std::vector<std::string>& arg_names, | 85 const std::vector<std::string>& arg_names, |
86 const std::vector<std::string>& arg_values, | 86 const std::vector<std::string>& arg_values, |
87 bool load_manually) override; | 87 bool load_manually) override; |
88 void PluginDestroyed() override; | 88 void PluginDestroyed() override; |
89 void UpdateGeometry(const gfx::Rect& window_rect, | 89 void UpdateGeometry(const gfx::Rect& window_rect, |
90 const gfx::Rect& clip_rect) override; | 90 const gfx::Rect& clip_rect) override; |
91 void Paint(SkCanvas* canvas, const gfx::Rect& rect) override; | 91 void Paint(SkCanvas* canvas, const gfx::Rect& rect) override; |
92 void SetFocus(bool focused) override; | 92 void SetFocus(bool focused) override; |
93 bool HandleInputEvent(const blink::WebInputEvent& event, | 93 bool HandleInputEvent(const blink::WebInputEvent& event, |
94 WebCursor::CursorInfo* cursor_info) override; | 94 WebCursor::CursorInfo* cursor_info) override; |
95 NPObject* GetPluginScriptableObject() override; | |
96 NPP GetPluginNPP() override; | |
97 bool GetFormValue(base::string16* value) override; | 95 bool GetFormValue(base::string16* value) override; |
98 int GetProcessId() override; | 96 int GetProcessId() override; |
99 // End of WebPluginDelegate implementation. | 97 // End of WebPluginDelegate implementation. |
100 | 98 |
101 PluginInstance* instance() { return instance_.get(); } | 99 PluginInstance* instance() { return instance_.get(); } |
102 gfx::Rect GetRect() const { return window_rect_; } | 100 gfx::Rect GetRect() const { return window_rect_; } |
103 gfx::Rect GetClipRect() const { return clip_rect_; } | 101 gfx::Rect GetClipRect() const { return clip_rect_; } |
104 | 102 |
105 // Returns the path for the library implementing this plugin. | 103 // Returns the path for the library implementing this plugin. |
106 base::FilePath GetPluginPath(); | 104 base::FilePath GetPluginPath(); |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 // asynchronously. | 376 // asynchronously. |
379 base::WeakPtrFactory<WebPluginDelegateImpl> user_gesture_msg_factory_; | 377 base::WeakPtrFactory<WebPluginDelegateImpl> user_gesture_msg_factory_; |
380 #endif | 378 #endif |
381 | 379 |
382 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); | 380 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); |
383 }; | 381 }; |
384 | 382 |
385 } // namespace content | 383 } // namespace content |
386 | 384 |
387 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 385 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
OLD | NEW |