| 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_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> |
| 9 #include <string> | 10 #include <string> |
| 10 #include <vector> | 11 #include <vector> |
| 11 | 12 |
| 12 #include "base/callback.h" | 13 #include "base/callback.h" |
| 13 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
| 14 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 16 #include "base/process_util.h" | 17 #include "base/process_util.h" |
| 17 #include "base/property_bag.h" | 18 #include "base/property_bag.h" |
| 18 #include "base/string16.h" | 19 #include "base/string16.h" |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 WebKit::WebTextDirection text_direction_hint); | 505 WebKit::WebTextDirection text_direction_hint); |
| 505 void OnMsgPaintAtSizeAck(int tag, const gfx::Size& size); | 506 void OnMsgPaintAtSizeAck(int tag, const gfx::Size& size); |
| 506 void OnCompositorSurfaceBuffersSwapped(int32 surface_id, | 507 void OnCompositorSurfaceBuffersSwapped(int32 surface_id, |
| 507 uint64 surface_handle, | 508 uint64 surface_handle, |
| 508 int32 route_id, | 509 int32 route_id, |
| 509 int32 gpu_process_host_id); | 510 int32 gpu_process_host_id); |
| 510 void OnMsgUpdateRect(const ViewHostMsg_UpdateRect_Params& params); | 511 void OnMsgUpdateRect(const ViewHostMsg_UpdateRect_Params& params); |
| 511 void OnMsgUpdateIsDelayed(); | 512 void OnMsgUpdateIsDelayed(); |
| 512 void OnMsgInputEventAck(WebKit::WebInputEvent::Type event_type, | 513 void OnMsgInputEventAck(WebKit::WebInputEvent::Type event_type, |
| 513 bool processed); | 514 bool processed); |
| 514 void OnMsgBeginSmoothScroll(bool scroll_down, bool scroll_far); | 515 void OnMsgBeginSmoothScroll(int gesture_id, |
| 516 bool scroll_down, |
| 517 bool scroll_far); |
| 515 void OnMsgSelectRangeAck(); | 518 void OnMsgSelectRangeAck(); |
| 516 virtual void OnMsgFocus(); | 519 virtual void OnMsgFocus(); |
| 517 virtual void OnMsgBlur(); | 520 virtual void OnMsgBlur(); |
| 518 void OnMsgHasTouchEventHandlers(bool has_handlers); | 521 void OnMsgHasTouchEventHandlers(bool has_handlers); |
| 519 | 522 |
| 520 void OnMsgSetCursor(const WebCursor& cursor); | 523 void OnMsgSetCursor(const WebCursor& cursor); |
| 521 void OnMsgTextInputStateChanged(ui::TextInputType type, | 524 void OnMsgTextInputStateChanged(ui::TextInputType type, |
| 522 bool can_compose_inline); | 525 bool can_compose_inline); |
| 523 void OnMsgImeCompositionRangeChanged( | 526 void OnMsgImeCompositionRangeChanged( |
| 524 const ui::Range& range, | 527 const ui::Range& range, |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 780 bool pending_mouse_lock_request_; | 783 bool pending_mouse_lock_request_; |
| 781 bool allow_privileged_mouse_lock_; | 784 bool allow_privileged_mouse_lock_; |
| 782 | 785 |
| 783 // Keeps track of whether the webpage has any touch event handler. If it does, | 786 // Keeps track of whether the webpage has any touch event handler. If it does, |
| 784 // then touch events are sent to the renderer. Otherwise, the touch events are | 787 // then touch events are sent to the renderer. Otherwise, the touch events are |
| 785 // not sent to the renderer. | 788 // not sent to the renderer. |
| 786 bool has_touch_handler_; | 789 bool has_touch_handler_; |
| 787 | 790 |
| 788 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 791 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 789 | 792 |
| 790 scoped_ptr<SmoothScrollGesture> active_smooth_scroll_gesture_; | 793 typedef std::map<int, scoped_refptr<SmoothScrollGesture> > |
| 794 SmoothScrollGestureMap; |
| 795 SmoothScrollGestureMap active_smooth_scroll_gestures_; |
| 791 | 796 |
| 792 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 797 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
| 793 | 798 |
| 794 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 799 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 795 }; | 800 }; |
| 796 | 801 |
| 797 } // namespace content | 802 } // namespace content |
| 798 | 803 |
| 799 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 804 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |