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_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ | 5 #ifndef CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ |
6 #define CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ | 6 #define CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 // WebPluginDelegate implementation: | 62 // WebPluginDelegate implementation: |
63 void PluginDestroyed() override; | 63 void PluginDestroyed() override; |
64 bool Initialize(const GURL& url, | 64 bool Initialize(const GURL& url, |
65 const std::vector<std::string>& arg_names, | 65 const std::vector<std::string>& arg_names, |
66 const std::vector<std::string>& arg_values, | 66 const std::vector<std::string>& arg_values, |
67 bool load_manually) override; | 67 bool load_manually) override; |
68 void UpdateGeometry(const gfx::Rect& window_rect, | 68 void UpdateGeometry(const gfx::Rect& window_rect, |
69 const gfx::Rect& clip_rect) override; | 69 const gfx::Rect& clip_rect) override; |
70 void Paint(SkCanvas* canvas, const gfx::Rect& rect) override; | 70 void Paint(SkCanvas* canvas, const gfx::Rect& rect) override; |
71 bool GetFormValue(base::string16* value) override; | |
72 void SetFocus(bool focused) override; | 71 void SetFocus(bool focused) override; |
73 bool HandleInputEvent(const blink::WebInputEvent& event, | 72 bool HandleInputEvent(const blink::WebInputEvent& event, |
74 WebCursor::CursorInfo* cursor) override; | 73 WebCursor::CursorInfo* cursor) override; |
75 int GetProcessId() override; | 74 int GetProcessId() override; |
76 | 75 |
77 // Informs the plugin that its containing content view has gained or lost | 76 // Informs the plugin that its containing content view has gained or lost |
78 // first responder status. | 77 // first responder status. |
79 virtual void SetContentAreaFocus(bool has_focus); | 78 virtual void SetContentAreaFocus(bool has_focus); |
80 #if defined(OS_MACOSX) | 79 #if defined(OS_MACOSX) |
81 // Informs the plugin that its enclosing window has gained or lost focus. | 80 // Informs the plugin that its enclosing window has gained or lost focus. |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 | 234 |
236 // The url of the main frame hosting the plugin. | 235 // The url of the main frame hosting the plugin. |
237 GURL page_url_; | 236 GURL page_url_; |
238 | 237 |
239 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); | 238 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); |
240 }; | 239 }; |
241 | 240 |
242 } // namespace content | 241 } // namespace content |
243 | 242 |
244 #endif // CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ | 243 #endif // CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ |
OLD | NEW |