| 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 <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 void DetachDelegate(); | 414 void DetachDelegate(); |
| 415 | 415 |
| 416 // Update the renderer's cache of the screen rect of the view and window. | 416 // Update the renderer's cache of the screen rect of the view and window. |
| 417 void SendScreenRects(); | 417 void SendScreenRects(); |
| 418 | 418 |
| 419 // Suppreses future char events until a keydown. See | 419 // Suppreses future char events until a keydown. See |
| 420 // suppress_next_char_events_. | 420 // suppress_next_char_events_. |
| 421 void SuppressNextCharEvents(); | 421 void SuppressNextCharEvents(); |
| 422 | 422 |
| 423 // Called by the view in response to a flush request. | 423 // Called by the view in response to a flush request. |
| 424 void FlushInput(); | 424 void FlushInput(base::TimeTicks frame_time); |
| 425 | |
| 426 // Request a flush signal from the view. | |
| 427 void SetNeedsFlush(); | |
| 428 | 425 |
| 429 // Indicates whether the renderer drives the RenderWidgetHosts's size or the | 426 // Indicates whether the renderer drives the RenderWidgetHosts's size or the |
| 430 // other way around. | 427 // other way around. |
| 431 bool auto_resize_enabled() { return auto_resize_enabled_; } | 428 bool auto_resize_enabled() { return auto_resize_enabled_; } |
| 432 | 429 |
| 433 // The minimum size of this renderer when auto-resize is enabled. | 430 // The minimum size of this renderer when auto-resize is enabled. |
| 434 const gfx::Size& min_size_for_auto_resize() const { | 431 const gfx::Size& min_size_for_auto_resize() const { |
| 435 return min_size_for_auto_resize_; | 432 return min_size_for_auto_resize_; |
| 436 } | 433 } |
| 437 | 434 |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 // widgets that don't have focus to still handle key presses. | 628 // widgets that don't have focus to still handle key presses. |
| 632 bool KeyPressListenersHandleEvent(const NativeWebKeyboardEvent& event); | 629 bool KeyPressListenersHandleEvent(const NativeWebKeyboardEvent& event); |
| 633 | 630 |
| 634 // InputRouterClient | 631 // InputRouterClient |
| 635 InputEventAckState FilterInputEvent( | 632 InputEventAckState FilterInputEvent( |
| 636 const blink::WebInputEvent& event, | 633 const blink::WebInputEvent& event, |
| 637 const ui::LatencyInfo& latency_info) override; | 634 const ui::LatencyInfo& latency_info) override; |
| 638 void IncrementInFlightEventCount() override; | 635 void IncrementInFlightEventCount() override; |
| 639 void DecrementInFlightEventCount() override; | 636 void DecrementInFlightEventCount() override; |
| 640 void OnHasTouchEventHandlers(bool has_handlers) override; | 637 void OnHasTouchEventHandlers(bool has_handlers) override; |
| 641 void DidFlush() override; | 638 void SetNeedsFlushInput() override; |
| 639 void DidFlushAllInput() override; |
| 642 void DidOverscroll(const DidOverscrollParams& params) override; | 640 void DidOverscroll(const DidOverscrollParams& params) override; |
| 643 void DidStopFlinging() override; | 641 void DidStopFlinging() override; |
| 644 | 642 |
| 645 // InputAckHandler | 643 // InputAckHandler |
| 646 void OnKeyboardEventAck(const NativeWebKeyboardEventWithLatencyInfo& event, | 644 void OnKeyboardEventAck(const NativeWebKeyboardEventWithLatencyInfo& event, |
| 647 InputEventAckState ack_result) override; | 645 InputEventAckState ack_result) override; |
| 648 void OnMouseEventAck(const MouseEventWithLatencyInfo& event, | 646 void OnMouseEventAck(const MouseEventWithLatencyInfo& event, |
| 649 InputEventAckState ack_result) override; | 647 InputEventAckState ack_result) override; |
| 650 void OnWheelEventAck(const MouseWheelEventWithLatencyInfo& event, | 648 void OnWheelEventAck(const MouseWheelEventWithLatencyInfo& event, |
| 651 InputEventAckState ack_result) override; | 649 InputEventAckState ack_result) override; |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 844 base::TimeDelta new_content_rendering_delay_; | 842 base::TimeDelta new_content_rendering_delay_; |
| 845 | 843 |
| 846 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 844 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 847 | 845 |
| 848 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 846 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 849 }; | 847 }; |
| 850 | 848 |
| 851 } // namespace content | 849 } // namespace content |
| 852 | 850 |
| 853 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 851 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |