| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 // Informs the plugin that its containing content view has gained or lost | 81 // Informs the plugin that its containing content view has gained or lost |
| 82 // first responder status. | 82 // first responder status. |
| 83 virtual void SetContentAreaFocus(bool has_focus); | 83 virtual void SetContentAreaFocus(bool has_focus); |
| 84 #if defined(OS_MACOSX) | 84 #if defined(OS_MACOSX) |
| 85 // Informs the plugin that its enclosing window has gained or lost focus. | 85 // Informs the plugin that its enclosing window has gained or lost focus. |
| 86 virtual void SetWindowFocus(bool window_has_focus); | 86 virtual void SetWindowFocus(bool window_has_focus); |
| 87 // Informs the plugin that its container (window/tab) has changed visibility. | 87 // Informs the plugin that its container (window/tab) has changed visibility. |
| 88 virtual void SetContainerVisibility(bool is_visible); | 88 virtual void SetContainerVisibility(bool is_visible); |
| 89 // Informs the plugin that its enclosing window's frame has changed. | 89 // Informs the plugin that its enclosing window's frame has changed. |
| 90 virtual void WindowFrameChanged(gfx::Rect window_frame, gfx::Rect view_frame); | 90 virtual void WindowFrameChanged(gfx::Rect window_frame, gfx::Rect view_frame); |
| 91 // Informs the plugin that text is avaiable from plugin IME. |
| 92 virtual void ImeCompositionConfirmed(const string16& text, int plugin_id); |
| 91 #endif | 93 #endif |
| 92 | 94 |
| 93 // IPC::Channel::Listener implementation: | 95 // IPC::Channel::Listener implementation: |
| 94 virtual void OnMessageReceived(const IPC::Message& msg); | 96 virtual void OnMessageReceived(const IPC::Message& msg); |
| 95 void OnChannelError(); | 97 void OnChannelError(); |
| 96 | 98 |
| 97 // IPC::Message::Sender implementation: | 99 // IPC::Message::Sender implementation: |
| 98 virtual bool Send(IPC::Message* msg); | 100 virtual bool Send(IPC::Message* msg); |
| 99 | 101 |
| 100 virtual void SendJavaScriptStream(const GURL& url, | 102 virtual void SendJavaScriptStream(const GURL& url, |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 bool* success); | 155 bool* success); |
| 154 void OnMissingPluginStatus(int status); | 156 void OnMissingPluginStatus(int status); |
| 155 void OnGetCPBrowsingContext(uint32* context); | 157 void OnGetCPBrowsingContext(uint32* context); |
| 156 void OnCancelDocumentLoad(); | 158 void OnCancelDocumentLoad(); |
| 157 void OnInitiateHTTPRangeRequest(const std::string& url, | 159 void OnInitiateHTTPRangeRequest(const std::string& url, |
| 158 const std::string& range_info, | 160 const std::string& range_info, |
| 159 int range_request_id); | 161 int range_request_id); |
| 160 void OnDeferResourceLoading(unsigned long resource_id, bool defer); | 162 void OnDeferResourceLoading(unsigned long resource_id, bool defer); |
| 161 | 163 |
| 162 #if defined(OS_MACOSX) | 164 #if defined(OS_MACOSX) |
| 165 void OnSetImeEnabled(bool enabled); |
| 163 void OnBindFakePluginWindowHandle(bool opaque); | 166 void OnBindFakePluginWindowHandle(bool opaque); |
| 164 void OnUpdateGeometry_ACK(int ack_key); | 167 void OnUpdateGeometry_ACK(int ack_key); |
| 165 void OnAcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, | 168 void OnAcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, |
| 166 int32 width, | 169 int32 width, |
| 167 int32 height, | 170 int32 height, |
| 168 uint64 io_surface_identifier); | 171 uint64 io_surface_identifier); |
| 169 void OnAcceleratedSurfaceSetTransportDIB(gfx::PluginWindowHandle window, | 172 void OnAcceleratedSurfaceSetTransportDIB(gfx::PluginWindowHandle window, |
| 170 int32 width, | 173 int32 width, |
| 171 int32 height, | 174 int32 height, |
| 172 TransportDIB::Handle transport_dib); | 175 TransportDIB::Handle transport_dib); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 // This lets us know which portion of the backing store has been painted into. | 270 // This lets us know which portion of the backing store has been painted into. |
| 268 gfx::Rect backing_store_painted_; | 271 gfx::Rect backing_store_painted_; |
| 269 | 272 |
| 270 // The url of the main frame hosting the plugin. | 273 // The url of the main frame hosting the plugin. |
| 271 GURL page_url_; | 274 GURL page_url_; |
| 272 | 275 |
| 273 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); | 276 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); |
| 274 }; | 277 }; |
| 275 | 278 |
| 276 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 279 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
| OLD | NEW |