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_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <vector> | 10 #include <vector> |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 struct ViewHostMsg_UpdateRect_Params; | 34 struct ViewHostMsg_UpdateRect_Params; |
35 class ViewHostMsg_UpdateRect; | 35 class ViewHostMsg_UpdateRect; |
36 | 36 |
37 namespace IPC { | 37 namespace IPC { |
38 class SyncMessage; | 38 class SyncMessage; |
39 } | 39 } |
40 | 40 |
41 namespace WebKit { | 41 namespace WebKit { |
42 class WebMouseEvent; | 42 class WebMouseEvent; |
| 43 class WebMouseWheelEvent; |
43 class WebTouchEvent; | 44 class WebTouchEvent; |
44 class WebWidget; | 45 class WebWidget; |
45 } | 46 } |
46 | 47 |
47 namespace gfx { | 48 namespace gfx { |
48 class Point; | 49 class Point; |
49 } | 50 } |
50 | 51 |
51 namespace skia { | 52 namespace skia { |
52 class PlatformCanvas; | 53 class PlatformCanvas; |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 virtual bool WillHandleMouseEvent(const WebKit::WebMouseEvent& event); | 350 virtual bool WillHandleMouseEvent(const WebKit::WebMouseEvent& event); |
350 | 351 |
351 // Called by OnHandleInputEvent() to notify subclasses that a mouse event was | 352 // Called by OnHandleInputEvent() to notify subclasses that a mouse event was |
352 // just handled. | 353 // just handled. |
353 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} | 354 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} |
354 | 355 |
355 // Called by OnHandleInputEvent() to notify subclasses that a touch event was | 356 // Called by OnHandleInputEvent() to notify subclasses that a touch event was |
356 // just handled. | 357 // just handled. |
357 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} | 358 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} |
358 | 359 |
| 360 // Called by OnHandleInputEvent() to notify subclasses that a wheel event was |
| 361 // just handled. |
| 362 virtual void DidHandleWheelEvent(const WebKit::WebMouseWheelEvent& event) {} |
| 363 |
359 // Should return true if the underlying WebWidget is responsible for | 364 // Should return true if the underlying WebWidget is responsible for |
360 // the scheduling of compositing requests. | 365 // the scheduling of compositing requests. |
361 virtual bool WebWidgetHandlesCompositorScheduling() const; | 366 virtual bool WebWidgetHandlesCompositorScheduling() const; |
362 | 367 |
363 // Routing ID that allows us to communicate to the parent browser process | 368 // Routing ID that allows us to communicate to the parent browser process |
364 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. | 369 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. |
365 int32 routing_id_; | 370 int32 routing_id_; |
366 | 371 |
367 int32 surface_id_; | 372 int32 surface_id_; |
368 | 373 |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 // Set to true if we should invert all pixels. | 523 // Set to true if we should invert all pixels. |
519 bool invert_; | 524 bool invert_; |
520 | 525 |
521 // The Skia paint object for inverting. | 526 // The Skia paint object for inverting. |
522 scoped_ptr<SkPaint> invert_paint_; | 527 scoped_ptr<SkPaint> invert_paint_; |
523 | 528 |
524 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 529 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
525 }; | 530 }; |
526 | 531 |
527 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 532 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |