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_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 #include "content/public/browser/native_web_keyboard_event.h" | 12 #include "content/public/browser/native_web_keyboard_event.h" |
13 #include "content/public/common/drop_data.h" | 13 #include "content/public/common/drop_data.h" |
14 #include "ipc/ipc_channel.h" | 14 #include "ipc/ipc_channel.h" |
15 #include "ipc/ipc_sender.h" | 15 #include "ipc/ipc_sender.h" |
16 #include "third_party/WebKit/public/platform/WebDragOperation.h" | 16 #include "third_party/WebKit/public/platform/WebDragOperation.h" |
17 #include "third_party/WebKit/public/platform/WebGestureEvent.h" | 17 #include "third_party/WebKit/public/platform/WebGestureEvent.h" |
18 #include "third_party/WebKit/public/platform/WebInputEvent.h" | 18 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
19 #include "third_party/WebKit/public/web/WebTextDirection.h" | 19 #include "third_party/WebKit/public/web/WebTextDirection.h" |
20 #include "ui/gfx/geometry/size.h" | 20 #include "ui/gfx/geometry/size.h" |
21 #include "ui/surface/transport_dib.h" | 21 #include "ui/surface/transport_dib.h" |
22 | 22 |
23 namespace blink { | 23 namespace blink { |
24 class WebMouseEvent; | 24 class WebMouseEvent; |
25 class WebMouseWheelEvent; | 25 class WebMouseWheelEvent; |
26 } | 26 } |
27 | 27 |
28 namespace content { | 28 namespace content { |
29 | 29 |
| 30 struct CursorInfo; |
30 class RenderProcessHost; | 31 class RenderProcessHost; |
31 class RenderWidgetHostIterator; | 32 class RenderWidgetHostIterator; |
32 class RenderWidgetHostView; | 33 class RenderWidgetHostView; |
33 struct ScreenInfo; | 34 struct ScreenInfo; |
34 | 35 |
35 // A RenderWidgetHost manages the browser side of a browser<->renderer | 36 // A RenderWidgetHost manages the browser side of a browser<->renderer |
36 // HWND connection. The HWND lives in the browser process, and | 37 // HWND connection. The HWND lives in the browser process, and |
37 // windows events are sent over IPC to the corresponding object in the | 38 // windows events are sent over IPC to the corresponding object in the |
38 // renderer. The renderer paints into shared memory, which we | 39 // renderer. The renderer paints into shared memory, which we |
39 // transfer to a backing store and blit to the screen when Windows | 40 // transfer to a backing store and blit to the screen when Windows |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 virtual void DragSourceEndedAt(const gfx::Point& client_pt, | 257 virtual void DragSourceEndedAt(const gfx::Point& client_pt, |
257 const gfx::Point& screen_pt, | 258 const gfx::Point& screen_pt, |
258 blink::WebDragOperation operation) {}; | 259 blink::WebDragOperation operation) {}; |
259 | 260 |
260 // Notifies the renderer that we're done with the drag and drop operation. | 261 // Notifies the renderer that we're done with the drag and drop operation. |
261 // This allows the renderer to reset some state. | 262 // This allows the renderer to reset some state. |
262 virtual void DragSourceSystemDragEnded() {}; | 263 virtual void DragSourceSystemDragEnded() {}; |
263 | 264 |
264 // Filters drop data before it is passed to RenderWidgetHost. | 265 // Filters drop data before it is passed to RenderWidgetHost. |
265 virtual void FilterDropData(DropData* drop_data) {} | 266 virtual void FilterDropData(DropData* drop_data) {} |
| 267 |
| 268 // Sets cursor to a specified one when it is over this widget. |
| 269 virtual void SetCursor(const CursorInfo& cursor_info) {} |
266 }; | 270 }; |
267 | 271 |
268 } // namespace content | 272 } // namespace content |
269 | 273 |
270 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ | 274 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
OLD | NEW |