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_GUEST_HELPER_H_ | 5 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_HELPER_H_ |
6 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_HELPER_H_ | 6 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_HELPER_H_ |
7 | 7 |
8 #include "content/public/browser/render_view_host_observer.h" | 8 #include "content/public/browser/render_view_host_observer.h" |
9 #include "content/public/browser/notification_registrar.h" | 9 #include "content/public/browser/notification_registrar.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
11 | 12 |
12 class WebCursor; | 13 class WebCursor; |
13 struct ViewHostMsg_UpdateRect_Params; | 14 struct ViewHostMsg_UpdateRect_Params; |
14 | 15 |
15 namespace gfx { | 16 namespace gfx { |
16 class Size; | 17 class Size; |
17 } | 18 } |
18 | 19 |
19 namespace content { | 20 namespace content { |
(...skipping 15 matching lines...) Expand all Loading... |
35 BrowserPluginGuestHelper(BrowserPluginGuest* guest, | 36 BrowserPluginGuestHelper(BrowserPluginGuest* guest, |
36 RenderViewHost* render_view_host); | 37 RenderViewHost* render_view_host); |
37 virtual ~BrowserPluginGuestHelper(); | 38 virtual ~BrowserPluginGuestHelper(); |
38 | 39 |
39 protected: | 40 protected: |
40 // RenderViewHostObserver implementation. | 41 // RenderViewHostObserver implementation. |
41 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 42 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
42 | 43 |
43 private: | 44 private: |
44 // Message handlers | 45 // Message handlers |
| 46 void OnUpdateDragCursor(WebKit::WebDragOperation current_op); |
45 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); | 47 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); |
46 void OnHandleInputEventAck(WebKit::WebInputEvent::Type event_type, | 48 void OnHandleInputEventAck(WebKit::WebInputEvent::Type event_type, |
47 bool processed); | 49 bool processed); |
48 void OnTakeFocus(bool reverse); | 50 void OnTakeFocus(bool reverse); |
49 void OnShowWidget(int route_id, const gfx::Rect& initial_pos); | 51 void OnShowWidget(int route_id, const gfx::Rect& initial_pos); |
50 void OnMsgHasTouchEventHandlers(bool has_handlers); | 52 void OnMsgHasTouchEventHandlers(bool has_handlers); |
51 void OnSetCursor(const WebCursor& cursor); | 53 void OnSetCursor(const WebCursor& cursor); |
52 | 54 |
53 BrowserPluginGuest* guest_; | 55 BrowserPluginGuest* guest_; |
54 // A scoped container for notification registries. | 56 // A scoped container for notification registries. |
55 NotificationRegistrar registrar_; | 57 NotificationRegistrar registrar_; |
56 | 58 |
57 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuestHelper); | 59 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuestHelper); |
58 }; | 60 }; |
59 | 61 |
60 } // namespace content | 62 } // namespace content |
61 | 63 |
62 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_HELPER_H_ | 64 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_HELPER_H_ |
OLD | NEW |