| 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/WebInputEvent.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| 11 | 11 |
| 12 class WebCursor; | 12 class WebCursor; |
| 13 struct ViewHostMsg_UpdateRect_Params; | 13 struct ViewHostMsg_UpdateRect_Params; |
| 14 struct ViewMsg_PostMessage_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 { |
| 20 class BrowserPluginGuest; | 21 class BrowserPluginGuest; |
| 21 class RenderViewHost; | 22 class RenderViewHost; |
| 22 | 23 |
| 23 // Helper for browser plugin guest. | 24 // Helper for browser plugin guest. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 42 | 43 |
| 43 private: | 44 private: |
| 44 // Message handlers | 45 // Message handlers |
| 45 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); | 46 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); |
| 46 void OnHandleInputEventAck(WebKit::WebInputEvent::Type event_type, | 47 void OnHandleInputEventAck(WebKit::WebInputEvent::Type event_type, |
| 47 bool processed); | 48 bool processed); |
| 48 void OnTakeFocus(bool reverse); | 49 void OnTakeFocus(bool reverse); |
| 49 void OnShowWidget(int route_id, const gfx::Rect& initial_pos); | 50 void OnShowWidget(int route_id, const gfx::Rect& initial_pos); |
| 50 void OnMsgHasTouchEventHandlers(bool has_handlers); | 51 void OnMsgHasTouchEventHandlers(bool has_handlers); |
| 51 void OnSetCursor(const WebCursor& cursor); | 52 void OnSetCursor(const WebCursor& cursor); |
| 53 void OnRouteMessageEvent(const ViewMsg_PostMessage_Params& params); |
| 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 |