| 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_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 } | 392 } |
| 393 bool ignore_input_events() const { | 393 bool ignore_input_events() const { |
| 394 return ignore_input_events_; | 394 return ignore_input_events_; |
| 395 } | 395 } |
| 396 | 396 |
| 397 // Activate deferred plugin handles. | 397 // Activate deferred plugin handles. |
| 398 void ActivateDeferredPluginHandles(); | 398 void ActivateDeferredPluginHandles(); |
| 399 | 399 |
| 400 const gfx::Point& last_scroll_offset() const { return last_scroll_offset_; } | 400 const gfx::Point& last_scroll_offset() const { return last_scroll_offset_; } |
| 401 | 401 |
| 402 bool has_touch_handler() const { return has_touch_handler_; } |
| 403 |
| 402 // Notification that the user has made some kind of input that could | 404 // Notification that the user has made some kind of input that could |
| 403 // perform an action. See OnUserGesture for more details. | 405 // perform an action. See OnUserGesture for more details. |
| 404 void StartUserGesture(); | 406 void StartUserGesture(); |
| 405 | 407 |
| 406 // Stops loading the page. | 408 // Stops loading the page. |
| 407 void Stop(); | 409 void Stop(); |
| 408 | 410 |
| 409 // Set the RenderView background. | 411 // Set the RenderView background. |
| 410 void SetBackground(const SkBitmap& background); | 412 void SetBackground(const SkBitmap& background); |
| 411 | 413 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 void OnMsgRequestMove(const gfx::Rect& pos); | 575 void OnMsgRequestMove(const gfx::Rect& pos); |
| 574 void OnMsgSetTooltipText(const string16& tooltip_text, | 576 void OnMsgSetTooltipText(const string16& tooltip_text, |
| 575 WebKit::WebTextDirection text_direction_hint); | 577 WebKit::WebTextDirection text_direction_hint); |
| 576 void OnMsgPaintAtSizeAck(int tag, const gfx::Size& size); | 578 void OnMsgPaintAtSizeAck(int tag, const gfx::Size& size); |
| 577 void OnMsgUpdateRect(const ViewHostMsg_UpdateRect_Params& params); | 579 void OnMsgUpdateRect(const ViewHostMsg_UpdateRect_Params& params); |
| 578 void OnMsgUpdateIsDelayed(); | 580 void OnMsgUpdateIsDelayed(); |
| 579 void OnMsgInputEventAck(WebKit::WebInputEvent::Type event_type, | 581 void OnMsgInputEventAck(WebKit::WebInputEvent::Type event_type, |
| 580 bool processed); | 582 bool processed); |
| 581 virtual void OnMsgFocus(); | 583 virtual void OnMsgFocus(); |
| 582 virtual void OnMsgBlur(); | 584 virtual void OnMsgBlur(); |
| 585 void OnMsgDidChangeNumTouchEvents(int count); |
| 583 | 586 |
| 584 void OnMsgSetCursor(const WebCursor& cursor); | 587 void OnMsgSetCursor(const WebCursor& cursor); |
| 585 void OnMsgTextInputStateChanged(ui::TextInputType type, | 588 void OnMsgTextInputStateChanged(ui::TextInputType type, |
| 586 bool can_compose_inline); | 589 bool can_compose_inline); |
| 587 void OnMsgImeCompositionRangeChanged(const ui::Range& range); | 590 void OnMsgImeCompositionRangeChanged(const ui::Range& range); |
| 588 void OnMsgImeCancelComposition(); | 591 void OnMsgImeCancelComposition(); |
| 589 | 592 |
| 590 void OnMsgDidActivateAcceleratedCompositing(bool activated); | 593 void OnMsgDidActivateAcceleratedCompositing(bool activated); |
| 591 | 594 |
| 592 void OnMsgLockMouse(); | 595 void OnMsgLockMouse(); |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 802 // changed. | 805 // changed. |
| 803 bool suppress_next_char_events_; | 806 bool suppress_next_char_events_; |
| 804 | 807 |
| 805 std::vector<gfx::PluginWindowHandle> deferred_plugin_handles_; | 808 std::vector<gfx::PluginWindowHandle> deferred_plugin_handles_; |
| 806 | 809 |
| 807 // The last scroll offset of the render widget. | 810 // The last scroll offset of the render widget. |
| 808 gfx::Point last_scroll_offset_; | 811 gfx::Point last_scroll_offset_; |
| 809 | 812 |
| 810 bool pending_mouse_lock_request_; | 813 bool pending_mouse_lock_request_; |
| 811 | 814 |
| 815 // Keeps track of whether the webpage has any touch event handler. If it does, |
| 816 // then touch events are sent to the renderer. Otherwise, the touch events are |
| 817 // not sent to the renderer. |
| 818 bool has_touch_handler_; |
| 819 |
| 812 base::WeakPtrFactory<RenderWidgetHost> weak_factory_; | 820 base::WeakPtrFactory<RenderWidgetHost> weak_factory_; |
| 813 | 821 |
| 814 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); | 822 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); |
| 815 }; | 823 }; |
| 816 | 824 |
| 817 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 825 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| OLD | NEW |