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_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 // renderer. Returns true if the client wants to stop event propagation. | 124 // renderer. Returns true if the client wants to stop event propagation. |
125 virtual bool HandleInputEvent(const ui::Event* event) = 0; | 125 virtual bool HandleInputEvent(const ui::Event* event) = 0; |
126 | 126 |
127 // Notifies the client that a gesture event ack was received. | 127 // Notifies the client that a gesture event ack was received. |
128 virtual void GestureEventAck(int gesture_event_type) = 0; | 128 virtual void GestureEventAck(int gesture_event_type) = 0; |
129 | 129 |
130 // This is called when the view is destroyed, so that the client can | 130 // This is called when the view is destroyed, so that the client can |
131 // perform any necessary clean-up. | 131 // perform any necessary clean-up. |
132 virtual void OnViewDestroyed() = 0; | 132 virtual void OnViewDestroyed() = 0; |
133 | 133 |
| 134 // Sets the render frame ID of the frame that the context menu is over. |
| 135 virtual void SetContextMenuRenderFrameID(int render_process_id, |
| 136 int render_frame_id) = 0; |
| 137 |
134 protected: | 138 protected: |
135 virtual ~TouchEditingClient() {} | 139 virtual ~TouchEditingClient() {} |
136 }; | 140 }; |
137 | 141 |
138 void set_touch_editing_client(TouchEditingClient* client) { | 142 void set_touch_editing_client(TouchEditingClient* client) { |
139 touch_editing_client_ = client; | 143 touch_editing_client_ = client; |
140 } | 144 } |
141 | 145 |
142 // RenderWidgetHostView implementation. | 146 // RenderWidgetHostView implementation. |
143 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 147 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
791 // etc. | 795 // etc. |
792 scoped_ptr<content::LegacyRenderWidgetHostHWND> | 796 scoped_ptr<content::LegacyRenderWidgetHostHWND> |
793 legacy_render_widget_host_HWND_; | 797 legacy_render_widget_host_HWND_; |
794 #endif | 798 #endif |
795 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 799 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
796 }; | 800 }; |
797 | 801 |
798 } // namespace content | 802 } // namespace content |
799 | 803 |
800 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 804 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |