OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 5 #ifndef CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 virtual void SetWindowFocus(bool window_has_focus); | 88 virtual void SetWindowFocus(bool window_has_focus); |
89 // Informs the plugin that its container (window/tab) has changed visibility. | 89 // Informs the plugin that its container (window/tab) has changed visibility. |
90 virtual void SetContainerVisibility(bool is_visible); | 90 virtual void SetContainerVisibility(bool is_visible); |
91 // Informs the plugin that its enclosing window's frame has changed. | 91 // Informs the plugin that its enclosing window's frame has changed. |
92 virtual void WindowFrameChanged(gfx::Rect window_frame, gfx::Rect view_frame); | 92 virtual void WindowFrameChanged(gfx::Rect window_frame, gfx::Rect view_frame); |
93 // Informs the plugin that text is avaiable from plugin IME. | 93 // Informs the plugin that text is avaiable from plugin IME. |
94 virtual void ImeCompositionConfirmed(const string16& text, int plugin_id); | 94 virtual void ImeCompositionConfirmed(const string16& text, int plugin_id); |
95 #endif | 95 #endif |
96 | 96 |
97 // IPC::Channel::Listener implementation: | 97 // IPC::Channel::Listener implementation: |
98 virtual void OnMessageReceived(const IPC::Message& msg); | 98 virtual bool OnMessageReceived(const IPC::Message& msg); |
99 virtual void OnChannelError(); | 99 virtual void OnChannelError(); |
100 | 100 |
101 // IPC::Message::Sender implementation: | 101 // IPC::Message::Sender implementation: |
102 virtual bool Send(IPC::Message* msg); | 102 virtual bool Send(IPC::Message* msg); |
103 | 103 |
104 virtual void SendJavaScriptStream(const GURL& url, | 104 virtual void SendJavaScriptStream(const GURL& url, |
105 const std::string& result, | 105 const std::string& result, |
106 bool success, | 106 bool success, |
107 int notify_id); | 107 int notify_id); |
108 | 108 |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 // This lets us know which portion of the backing store has been painted into. | 276 // This lets us know which portion of the backing store has been painted into. |
277 gfx::Rect backing_store_painted_; | 277 gfx::Rect backing_store_painted_; |
278 | 278 |
279 // The url of the main frame hosting the plugin. | 279 // The url of the main frame hosting the plugin. |
280 GURL page_url_; | 280 GURL page_url_; |
281 | 281 |
282 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); | 282 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); |
283 }; | 283 }; |
284 | 284 |
285 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 285 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
OLD | NEW |