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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 virtual void PluginDestroyed() OVERRIDE; | 57 virtual void PluginDestroyed() OVERRIDE; |
58 virtual bool Initialize(const GURL& url, | 58 virtual bool Initialize(const GURL& url, |
59 const std::vector<std::string>& arg_names, | 59 const std::vector<std::string>& arg_names, |
60 const std::vector<std::string>& arg_values, | 60 const std::vector<std::string>& arg_values, |
61 bool load_manually) OVERRIDE; | 61 bool load_manually) OVERRIDE; |
62 virtual void UpdateGeometry(const gfx::Rect& window_rect, | 62 virtual void UpdateGeometry(const gfx::Rect& window_rect, |
63 const gfx::Rect& clip_rect) OVERRIDE; | 63 const gfx::Rect& clip_rect) OVERRIDE; |
64 virtual void Paint(SkCanvas* canvas, const gfx::Rect& rect) OVERRIDE; | 64 virtual void Paint(SkCanvas* canvas, const gfx::Rect& rect) OVERRIDE; |
65 virtual NPObject* GetPluginScriptableObject() OVERRIDE; | 65 virtual NPObject* GetPluginScriptableObject() OVERRIDE; |
66 virtual struct _NPP* GetPluginNPP() OVERRIDE; | 66 virtual struct _NPP* GetPluginNPP() OVERRIDE; |
67 virtual bool GetFormValue(string16* value) OVERRIDE; | 67 virtual bool GetFormValue(base::string16* value) OVERRIDE; |
68 virtual void DidFinishLoadWithReason(const GURL& url, NPReason reason, | 68 virtual void DidFinishLoadWithReason(const GURL& url, NPReason reason, |
69 int notify_id) OVERRIDE; | 69 int notify_id) OVERRIDE; |
70 virtual void SetFocus(bool focused) OVERRIDE; | 70 virtual void SetFocus(bool focused) OVERRIDE; |
71 virtual bool HandleInputEvent(const blink::WebInputEvent& event, | 71 virtual bool HandleInputEvent(const blink::WebInputEvent& event, |
72 WebCursor::CursorInfo* cursor) OVERRIDE; | 72 WebCursor::CursorInfo* cursor) OVERRIDE; |
73 virtual int GetProcessId() OVERRIDE; | 73 virtual int GetProcessId() OVERRIDE; |
74 | 74 |
75 // Informs the plugin that its containing content view has gained or lost | 75 // Informs the plugin that its containing content view has gained or lost |
76 // first responder status. | 76 // first responder status. |
77 virtual void SetContentAreaFocus(bool has_focus); | 77 virtual void SetContentAreaFocus(bool has_focus); |
78 #if defined(OS_WIN) | 78 #if defined(OS_WIN) |
79 // Informs the plugin that plugin IME has updated its status. | 79 // Informs the plugin that plugin IME has updated its status. |
80 virtual void ImeCompositionUpdated( | 80 virtual void ImeCompositionUpdated( |
81 const string16& text, | 81 const base::string16& text, |
82 const std::vector<int>& clauses, | 82 const std::vector<int>& clauses, |
83 const std::vector<int>& target, | 83 const std::vector<int>& target, |
84 int cursor_position, | 84 int cursor_position, |
85 int plugin_id); | 85 int plugin_id); |
86 // Informs the plugin that plugin IME has completed. | 86 // Informs the plugin that plugin IME has completed. |
87 // If |text| is empty, composition was cancelled. | 87 // If |text| is empty, composition was cancelled. |
88 virtual void ImeCompositionCompleted(const string16& text, int plugin_id); | 88 virtual void ImeCompositionCompleted(const base::string16& text, |
| 89 int plugin_id); |
89 #endif | 90 #endif |
90 #if defined(OS_MACOSX) | 91 #if defined(OS_MACOSX) |
91 // Informs the plugin that its enclosing window has gained or lost focus. | 92 // Informs the plugin that its enclosing window has gained or lost focus. |
92 virtual void SetWindowFocus(bool window_has_focus); | 93 virtual void SetWindowFocus(bool window_has_focus); |
93 // Informs the plugin that its container (window/tab) has changed visibility. | 94 // Informs the plugin that its container (window/tab) has changed visibility. |
94 virtual void SetContainerVisibility(bool is_visible); | 95 virtual void SetContainerVisibility(bool is_visible); |
95 // Informs the plugin that its enclosing window's frame has changed. | 96 // Informs the plugin that its enclosing window's frame has changed. |
96 virtual void WindowFrameChanged(gfx::Rect window_frame, gfx::Rect view_frame); | 97 virtual void WindowFrameChanged(gfx::Rect window_frame, gfx::Rect view_frame); |
97 // Informs the plugin that plugin IME has completed. | 98 // Informs the plugin that plugin IME has completed. |
98 // If |text| is empty, composition was cancelled. | 99 // If |text| is empty, composition was cancelled. |
99 virtual void ImeCompositionCompleted(const string16& text, int plugin_id); | 100 virtual void ImeCompositionCompleted(const base::string16& text, |
| 101 int plugin_id); |
100 #endif | 102 #endif |
101 | 103 |
102 // IPC::Listener implementation: | 104 // IPC::Listener implementation: |
103 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 105 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
104 virtual void OnChannelError() OVERRIDE; | 106 virtual void OnChannelError() OVERRIDE; |
105 | 107 |
106 // IPC::Sender implementation: | 108 // IPC::Sender implementation: |
107 virtual bool Send(IPC::Message* msg) OVERRIDE; | 109 virtual bool Send(IPC::Message* msg) OVERRIDE; |
108 | 110 |
109 virtual void SendJavaScriptStream(const GURL& url, | 111 virtual void SendJavaScriptStream(const GURL& url, |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 | 302 |
301 // The url of the main frame hosting the plugin. | 303 // The url of the main frame hosting the plugin. |
302 GURL page_url_; | 304 GURL page_url_; |
303 | 305 |
304 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); | 306 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); |
305 }; | 307 }; |
306 | 308 |
307 } // namespace content | 309 } // namespace content |
308 | 310 |
309 #endif // CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ | 311 #endif // CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ |
OLD | NEW |