| 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_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_HELPER_H_ | 5 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_HELPER_H_ |
| 6 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_HELPER_H_ | 6 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_HELPER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "content/public/browser/render_view_host_observer.h" | 11 #include "content/public/browser/render_view_host_observer.h" |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragStatus.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
| 12 | 14 |
| 13 namespace IPC { | 15 namespace IPC { |
| 14 class Message; | 16 class Message; |
| 15 class SyncMessage; | 17 class SyncMessage; |
| 16 } | 18 } |
| 17 | 19 |
| 18 namespace gfx { | 20 namespace gfx { |
| 21 class Point; |
| 19 class Size; | 22 class Size; |
| 20 } | 23 } |
| 21 | 24 |
| 22 struct BrowserPluginHostMsg_ResizeGuest_Params; | 25 struct BrowserPluginHostMsg_ResizeGuest_Params; |
| 26 struct WebDropData; |
| 23 | 27 |
| 24 namespace content { | 28 namespace content { |
| 25 | 29 |
| 26 class BrowserPluginEmbedder; | 30 class BrowserPluginEmbedder; |
| 27 class RenderViewHost; | 31 class RenderViewHost; |
| 28 | 32 |
| 29 // Helper for browser plugin embedder. | 33 // Helper for browser plugin embedder. |
| 30 // | 34 // |
| 31 // A lot of messages coming from guests need to know the guest's RenderViewHost. | 35 // A lot of messages coming from guests need to know the guest's RenderViewHost. |
| 32 // BrowserPluginEmbedderHelper handles BrowserPluginHostMsg messages and | 36 // BrowserPluginEmbedderHelper handles BrowserPluginHostMsg messages and |
| (...skipping 28 matching lines...) Expand all Loading... |
| 61 const BrowserPluginHostMsg_ResizeGuest_Params& params); | 65 const BrowserPluginHostMsg_ResizeGuest_Params& params); |
| 62 void OnUpdateRectACK(int instance_id, int message_id, const gfx::Size& size); | 66 void OnUpdateRectACK(int instance_id, int message_id, const gfx::Size& size); |
| 63 void OnHandleInputEvent(const IPC::SyncMessage& message, bool* handled); | 67 void OnHandleInputEvent(const IPC::SyncMessage& message, bool* handled); |
| 64 void OnSetFocus(int instance_id, bool focused); | 68 void OnSetFocus(int instance_id, bool focused); |
| 65 void OnPluginDestroyed(int instance_id); | 69 void OnPluginDestroyed(int instance_id); |
| 66 void OnGo(int instance_id, int relative_index); | 70 void OnGo(int instance_id, int relative_index); |
| 67 void OnStop(int instance_id); | 71 void OnStop(int instance_id); |
| 68 void OnReload(int instance_id); | 72 void OnReload(int instance_id); |
| 69 void OnTerminateGuest(int instance_id); | 73 void OnTerminateGuest(int instance_id); |
| 70 void OnSetGuestVisibility(int instance_id, bool visible); | 74 void OnSetGuestVisibility(int instance_id, bool visible); |
| 75 void OnDragStatusUpdate(int instance_id, |
| 76 WebKit::WebDragStatus drag_status, |
| 77 const WebDropData& drop_data, |
| 78 WebKit::WebDragOperationsMask drag_mask, |
| 79 const gfx::Point& location); |
| 71 | 80 |
| 72 BrowserPluginEmbedder* embedder_; | 81 BrowserPluginEmbedder* embedder_; |
| 73 | 82 |
| 74 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedderHelper); | 83 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedderHelper); |
| 75 }; | 84 }; |
| 76 | 85 |
| 77 } // namespace content | 86 } // namespace content |
| 78 | 87 |
| 79 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_HELPER_H_ | 88 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_HELPER_H_ |
| OLD | NEW |