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 <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 } | 55 } |
56 | 56 |
57 namespace gfx { | 57 namespace gfx { |
58 class Range; | 58 class Range; |
59 } | 59 } |
60 | 60 |
61 namespace ui { | 61 namespace ui { |
62 class KeyEvent; | 62 class KeyEvent; |
63 } | 63 } |
64 | 64 |
65 namespace WebKit { | 65 namespace blink { |
66 class WebInputEvent; | 66 class WebInputEvent; |
67 class WebMouseEvent; | 67 class WebMouseEvent; |
68 struct WebCompositionUnderline; | 68 struct WebCompositionUnderline; |
69 struct WebScreenInfo; | 69 struct WebScreenInfo; |
70 } | 70 } |
71 | 71 |
72 #if defined(OS_ANDROID) | 72 #if defined(OS_ANDROID) |
73 namespace WebKit { | 73 namespace blink { |
74 class WebLayer; | 74 class WebLayer; |
75 } | 75 } |
76 #endif | 76 #endif |
77 | 77 |
78 namespace content { | 78 namespace content { |
79 class BackingStore; | 79 class BackingStore; |
80 class InputRouter; | 80 class InputRouter; |
81 class MockRenderWidgetHost; | 81 class MockRenderWidgetHost; |
82 class OverscrollController; | 82 class OverscrollController; |
83 class RenderWidgetHostDelegate; | 83 class RenderWidgetHostDelegate; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 virtual void Undo() OVERRIDE; | 123 virtual void Undo() OVERRIDE; |
124 virtual void Redo() OVERRIDE; | 124 virtual void Redo() OVERRIDE; |
125 virtual void Cut() OVERRIDE; | 125 virtual void Cut() OVERRIDE; |
126 virtual void Copy() OVERRIDE; | 126 virtual void Copy() OVERRIDE; |
127 virtual void CopyToFindPboard() OVERRIDE; | 127 virtual void CopyToFindPboard() OVERRIDE; |
128 virtual void Paste() OVERRIDE; | 128 virtual void Paste() OVERRIDE; |
129 virtual void PasteAndMatchStyle() OVERRIDE; | 129 virtual void PasteAndMatchStyle() OVERRIDE; |
130 virtual void Delete() OVERRIDE; | 130 virtual void Delete() OVERRIDE; |
131 virtual void SelectAll() OVERRIDE; | 131 virtual void SelectAll() OVERRIDE; |
132 virtual void Unselect() OVERRIDE; | 132 virtual void Unselect() OVERRIDE; |
133 virtual void UpdateTextDirection(WebKit::WebTextDirection direction) OVERRIDE; | 133 virtual void UpdateTextDirection(blink::WebTextDirection direction) OVERRIDE; |
134 virtual void NotifyTextDirection() OVERRIDE; | 134 virtual void NotifyTextDirection() OVERRIDE; |
135 virtual void Focus() OVERRIDE; | 135 virtual void Focus() OVERRIDE; |
136 virtual void Blur() OVERRIDE; | 136 virtual void Blur() OVERRIDE; |
137 virtual void SetActive(bool active) OVERRIDE; | 137 virtual void SetActive(bool active) OVERRIDE; |
138 virtual void CopyFromBackingStore( | 138 virtual void CopyFromBackingStore( |
139 const gfx::Rect& src_rect, | 139 const gfx::Rect& src_rect, |
140 const gfx::Size& accelerated_dst_size, | 140 const gfx::Size& accelerated_dst_size, |
141 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; | 141 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; |
142 #if defined(TOOLKIT_GTK) | 142 #if defined(TOOLKIT_GTK) |
143 virtual bool CopyFromBackingStoreToGtkWindow(const gfx::Rect& dest_rect, | 143 virtual bool CopyFromBackingStoreToGtkWindow(const gfx::Rect& dest_rect, |
144 GdkWindow* target) OVERRIDE; | 144 GdkWindow* target) OVERRIDE; |
145 #elif defined(OS_MACOSX) | 145 #elif defined(OS_MACOSX) |
146 virtual gfx::Size GetBackingStoreSize() OVERRIDE; | 146 virtual gfx::Size GetBackingStoreSize() OVERRIDE; |
147 virtual bool CopyFromBackingStoreToCGContext(const CGRect& dest_rect, | 147 virtual bool CopyFromBackingStoreToCGContext(const CGRect& dest_rect, |
148 CGContextRef target) OVERRIDE; | 148 CGContextRef target) OVERRIDE; |
149 #endif | 149 #endif |
150 virtual void EnableFullAccessibilityMode() OVERRIDE; | 150 virtual void EnableFullAccessibilityMode() OVERRIDE; |
151 virtual void ForwardMouseEvent( | 151 virtual void ForwardMouseEvent( |
152 const WebKit::WebMouseEvent& mouse_event) OVERRIDE; | 152 const blink::WebMouseEvent& mouse_event) OVERRIDE; |
153 virtual void ForwardWheelEvent( | 153 virtual void ForwardWheelEvent( |
154 const WebKit::WebMouseWheelEvent& wheel_event) OVERRIDE; | 154 const blink::WebMouseWheelEvent& wheel_event) OVERRIDE; |
155 virtual void ForwardKeyboardEvent( | 155 virtual void ForwardKeyboardEvent( |
156 const NativeWebKeyboardEvent& key_event) OVERRIDE; | 156 const NativeWebKeyboardEvent& key_event) OVERRIDE; |
157 virtual const gfx::Vector2d& GetLastScrollOffset() const OVERRIDE; | 157 virtual const gfx::Vector2d& GetLastScrollOffset() const OVERRIDE; |
158 virtual RenderProcessHost* GetProcess() const OVERRIDE; | 158 virtual RenderProcessHost* GetProcess() const OVERRIDE; |
159 virtual int GetRoutingID() const OVERRIDE; | 159 virtual int GetRoutingID() const OVERRIDE; |
160 virtual RenderWidgetHostView* GetView() const OVERRIDE; | 160 virtual RenderWidgetHostView* GetView() const OVERRIDE; |
161 virtual bool IsLoading() const OVERRIDE; | 161 virtual bool IsLoading() const OVERRIDE; |
162 virtual bool IsRenderView() const OVERRIDE; | 162 virtual bool IsRenderView() const OVERRIDE; |
163 virtual void PaintAtSize(TransportDIB::Handle dib_handle, | 163 virtual void PaintAtSize(TransportDIB::Handle dib_handle, |
164 int tag, | 164 int tag, |
165 const gfx::Size& page_size, | 165 const gfx::Size& page_size, |
166 const gfx::Size& desired_size) OVERRIDE; | 166 const gfx::Size& desired_size) OVERRIDE; |
167 virtual void Replace(const string16& word) OVERRIDE; | 167 virtual void Replace(const string16& word) OVERRIDE; |
168 virtual void ReplaceMisspelling(const string16& word) OVERRIDE; | 168 virtual void ReplaceMisspelling(const string16& word) OVERRIDE; |
169 virtual void ResizeRectChanged(const gfx::Rect& new_rect) OVERRIDE; | 169 virtual void ResizeRectChanged(const gfx::Rect& new_rect) OVERRIDE; |
170 virtual void RestartHangMonitorTimeout() OVERRIDE; | 170 virtual void RestartHangMonitorTimeout() OVERRIDE; |
171 virtual void SetIgnoreInputEvents(bool ignore_input_events) OVERRIDE; | 171 virtual void SetIgnoreInputEvents(bool ignore_input_events) OVERRIDE; |
172 virtual void Stop() OVERRIDE; | 172 virtual void Stop() OVERRIDE; |
173 virtual void WasResized() OVERRIDE; | 173 virtual void WasResized() OVERRIDE; |
174 virtual void AddKeyPressEventCallback( | 174 virtual void AddKeyPressEventCallback( |
175 const KeyPressEventCallback& callback) OVERRIDE; | 175 const KeyPressEventCallback& callback) OVERRIDE; |
176 virtual void RemoveKeyPressEventCallback( | 176 virtual void RemoveKeyPressEventCallback( |
177 const KeyPressEventCallback& callback) OVERRIDE; | 177 const KeyPressEventCallback& callback) OVERRIDE; |
178 virtual void AddMouseEventCallback( | 178 virtual void AddMouseEventCallback( |
179 const MouseEventCallback& callback) OVERRIDE; | 179 const MouseEventCallback& callback) OVERRIDE; |
180 virtual void RemoveMouseEventCallback( | 180 virtual void RemoveMouseEventCallback( |
181 const MouseEventCallback& callback) OVERRIDE; | 181 const MouseEventCallback& callback) OVERRIDE; |
182 virtual void GetWebScreenInfo(WebKit::WebScreenInfo* result) OVERRIDE; | 182 virtual void GetWebScreenInfo(blink::WebScreenInfo* result) OVERRIDE; |
183 virtual void GetSnapshotFromRenderer( | 183 virtual void GetSnapshotFromRenderer( |
184 const gfx::Rect& src_subrect, | 184 const gfx::Rect& src_subrect, |
185 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; | 185 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; |
186 | 186 |
187 const NativeWebKeyboardEvent* GetLastKeyboardEvent() const; | 187 const NativeWebKeyboardEvent* GetLastKeyboardEvent() const; |
188 | 188 |
189 // Notification that the screen info has changed. | 189 // Notification that the screen info has changed. |
190 void NotifyScreenInfoChanged(); | 190 void NotifyScreenInfoChanged(); |
191 | 191 |
192 // Invalidates the cached screen info so that next resize request | 192 // Invalidates the cached screen info so that next resize request |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 // the new one will only fire if it has a shorter delay than the time | 280 // the new one will only fire if it has a shorter delay than the time |
281 // left on the existing timeouts. | 281 // left on the existing timeouts. |
282 void StartHangMonitorTimeout(base::TimeDelta delay); | 282 void StartHangMonitorTimeout(base::TimeDelta delay); |
283 | 283 |
284 // Stops all existing hang monitor timeouts and assumes the renderer is | 284 // Stops all existing hang monitor timeouts and assumes the renderer is |
285 // responsive. | 285 // responsive. |
286 void StopHangMonitorTimeout(); | 286 void StopHangMonitorTimeout(); |
287 | 287 |
288 // Forwards the given message to the renderer. These are called by the view | 288 // Forwards the given message to the renderer. These are called by the view |
289 // when it has received a message. | 289 // when it has received a message. |
290 void ForwardGestureEvent(const WebKit::WebGestureEvent& gesture_event); | 290 void ForwardGestureEvent(const blink::WebGestureEvent& gesture_event); |
291 void ForwardGestureEventWithLatencyInfo( | 291 void ForwardGestureEventWithLatencyInfo( |
292 const WebKit::WebGestureEvent& gesture_event, | 292 const blink::WebGestureEvent& gesture_event, |
293 const ui::LatencyInfo& ui_latency); | 293 const ui::LatencyInfo& ui_latency); |
294 void ForwardTouchEventWithLatencyInfo( | 294 void ForwardTouchEventWithLatencyInfo( |
295 const WebKit::WebTouchEvent& touch_event, | 295 const blink::WebTouchEvent& touch_event, |
296 const ui::LatencyInfo& ui_latency); | 296 const ui::LatencyInfo& ui_latency); |
297 void ForwardMouseEventWithLatencyInfo( | 297 void ForwardMouseEventWithLatencyInfo( |
298 const MouseEventWithLatencyInfo& mouse_event); | 298 const MouseEventWithLatencyInfo& mouse_event); |
299 void ForwardWheelEventWithLatencyInfo( | 299 void ForwardWheelEventWithLatencyInfo( |
300 const MouseWheelEventWithLatencyInfo& wheel_event); | 300 const MouseWheelEventWithLatencyInfo& wheel_event); |
301 | 301 |
302 void CancelUpdateTextDirection(); | 302 void CancelUpdateTextDirection(); |
303 | 303 |
304 // Called when a mouse click/gesture tap activates the renderer. | 304 // Called when a mouse click/gesture tap activates the renderer. |
305 virtual void OnPointerEventActivate(); | 305 virtual void OnPointerEventActivate(); |
(...skipping 16 matching lines...) Expand all Loading... |
322 // Sets the text of the composition node. | 322 // Sets the text of the composition node. |
323 // This function can also update the cursor position and mark the specified | 323 // This function can also update the cursor position and mark the specified |
324 // range in the composition node. | 324 // range in the composition node. |
325 // A browser should call this function: | 325 // A browser should call this function: |
326 // * when it receives a WM_IME_COMPOSITION message with a GCS_COMPSTR flag | 326 // * when it receives a WM_IME_COMPOSITION message with a GCS_COMPSTR flag |
327 // (on Windows); | 327 // (on Windows); |
328 // * when it receives a "preedit_changed" signal of GtkIMContext (on Linux); | 328 // * when it receives a "preedit_changed" signal of GtkIMContext (on Linux); |
329 // * when markedText of NSTextInput is called (on Mac). | 329 // * when markedText of NSTextInput is called (on Mac). |
330 void ImeSetComposition( | 330 void ImeSetComposition( |
331 const string16& text, | 331 const string16& text, |
332 const std::vector<WebKit::WebCompositionUnderline>& underlines, | 332 const std::vector<blink::WebCompositionUnderline>& underlines, |
333 int selection_start, | 333 int selection_start, |
334 int selection_end); | 334 int selection_end); |
335 | 335 |
336 // Finishes an ongoing composition with the specified text. | 336 // Finishes an ongoing composition with the specified text. |
337 // A browser should call this function: | 337 // A browser should call this function: |
338 // * when it receives a WM_IME_COMPOSITION message with a GCS_RESULTSTR flag | 338 // * when it receives a WM_IME_COMPOSITION message with a GCS_RESULTSTR flag |
339 // (on Windows); | 339 // (on Windows); |
340 // * when it receives a "commit" signal of GtkIMContext (on Linux); | 340 // * when it receives a "commit" signal of GtkIMContext (on Linux); |
341 // * when insertText of NSTextInput is called (on Mac). | 341 // * when insertText of NSTextInput is called (on Mac). |
342 void ImeConfirmComposition(const string16& text, | 342 void ImeConfirmComposition(const string16& text, |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 | 560 |
561 // Retrieves an id for the surface that the renderer can draw to | 561 // Retrieves an id for the surface that the renderer can draw to |
562 // when accelerated compositing is enabled. | 562 // when accelerated compositing is enabled. |
563 gfx::GLSurfaceHandle GetCompositingSurface(); | 563 gfx::GLSurfaceHandle GetCompositingSurface(); |
564 | 564 |
565 // --------------------------------------------------------------------------- | 565 // --------------------------------------------------------------------------- |
566 // The following methods are overridden by RenderViewHost to send upwards to | 566 // The following methods are overridden by RenderViewHost to send upwards to |
567 // its delegate. | 567 // its delegate. |
568 | 568 |
569 // Called when a mousewheel event was not processed by the renderer. | 569 // Called when a mousewheel event was not processed by the renderer. |
570 virtual void UnhandledWheelEvent(const WebKit::WebMouseWheelEvent& event) {} | 570 virtual void UnhandledWheelEvent(const blink::WebMouseWheelEvent& event) {} |
571 | 571 |
572 // Notification that the user has made some kind of input that could | 572 // Notification that the user has made some kind of input that could |
573 // perform an action. The gestures that count are 1) any mouse down | 573 // perform an action. The gestures that count are 1) any mouse down |
574 // event and 2) enter or space key presses. | 574 // event and 2) enter or space key presses. |
575 virtual void OnUserGesture() {} | 575 virtual void OnUserGesture() {} |
576 | 576 |
577 // Callbacks for notification when the renderer becomes unresponsive to user | 577 // Callbacks for notification when the renderer becomes unresponsive to user |
578 // input events, and subsequently responsive again. | 578 // input events, and subsequently responsive again. |
579 virtual void NotifyRendererUnresponsive() {} | 579 virtual void NotifyRendererUnresponsive() {} |
580 virtual void NotifyRendererResponsive() {} | 580 virtual void NotifyRendererResponsive() {} |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 // NotifyRendererResponsive. | 639 // NotifyRendererResponsive. |
640 void RendererIsResponsive(); | 640 void RendererIsResponsive(); |
641 | 641 |
642 // IPC message handlers | 642 // IPC message handlers |
643 void OnRenderViewReady(); | 643 void OnRenderViewReady(); |
644 void OnRenderProcessGone(int status, int error_code); | 644 void OnRenderProcessGone(int status, int error_code); |
645 void OnClose(); | 645 void OnClose(); |
646 void OnUpdateScreenRectsAck(); | 646 void OnUpdateScreenRectsAck(); |
647 void OnRequestMove(const gfx::Rect& pos); | 647 void OnRequestMove(const gfx::Rect& pos); |
648 void OnSetTooltipText(const string16& tooltip_text, | 648 void OnSetTooltipText(const string16& tooltip_text, |
649 WebKit::WebTextDirection text_direction_hint); | 649 blink::WebTextDirection text_direction_hint); |
650 void OnPaintAtSizeAck(int tag, const gfx::Size& size); | 650 void OnPaintAtSizeAck(int tag, const gfx::Size& size); |
651 #if defined(OS_MACOSX) | 651 #if defined(OS_MACOSX) |
652 void OnCompositorSurfaceBuffersSwapped( | 652 void OnCompositorSurfaceBuffersSwapped( |
653 const ViewHostMsg_CompositorSurfaceBuffersSwapped_Params& params); | 653 const ViewHostMsg_CompositorSurfaceBuffersSwapped_Params& params); |
654 #endif | 654 #endif |
655 bool OnSwapCompositorFrame(const IPC::Message& message); | 655 bool OnSwapCompositorFrame(const IPC::Message& message); |
656 void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, | 656 void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, |
657 gfx::Vector2dF current_fling_velocity); | 657 gfx::Vector2dF current_fling_velocity); |
658 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); | 658 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); |
659 void OnUpdateIsDelayed(); | 659 void OnUpdateIsDelayed(); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
712 void ScrollBackingStoreRect(const gfx::Vector2d& delta, | 712 void ScrollBackingStoreRect(const gfx::Vector2d& delta, |
713 const gfx::Rect& clip_rect, | 713 const gfx::Rect& clip_rect, |
714 const gfx::Size& view_size); | 714 const gfx::Size& view_size); |
715 | 715 |
716 // Give key press listeners a chance to handle this key press. This allow | 716 // Give key press listeners a chance to handle this key press. This allow |
717 // widgets that don't have focus to still handle key presses. | 717 // widgets that don't have focus to still handle key presses. |
718 bool KeyPressListenersHandleEvent(const NativeWebKeyboardEvent& event); | 718 bool KeyPressListenersHandleEvent(const NativeWebKeyboardEvent& event); |
719 | 719 |
720 // InputRouterClient | 720 // InputRouterClient |
721 virtual InputEventAckState FilterInputEvent( | 721 virtual InputEventAckState FilterInputEvent( |
722 const WebKit::WebInputEvent& event, | 722 const blink::WebInputEvent& event, |
723 const ui::LatencyInfo& latency_info) OVERRIDE; | 723 const ui::LatencyInfo& latency_info) OVERRIDE; |
724 virtual void IncrementInFlightEventCount() OVERRIDE; | 724 virtual void IncrementInFlightEventCount() OVERRIDE; |
725 virtual void DecrementInFlightEventCount() OVERRIDE; | 725 virtual void DecrementInFlightEventCount() OVERRIDE; |
726 virtual void OnHasTouchEventHandlers(bool has_handlers) OVERRIDE; | 726 virtual void OnHasTouchEventHandlers(bool has_handlers) OVERRIDE; |
727 virtual OverscrollController* GetOverscrollController() const OVERRIDE; | 727 virtual OverscrollController* GetOverscrollController() const OVERRIDE; |
728 virtual void SetNeedsFlush() OVERRIDE; | 728 virtual void SetNeedsFlush() OVERRIDE; |
729 virtual void DidFlush() OVERRIDE; | 729 virtual void DidFlush() OVERRIDE; |
730 | 730 |
731 // InputAckHandler | 731 // InputAckHandler |
732 virtual void OnKeyboardEventAck(const NativeWebKeyboardEvent& event, | 732 virtual void OnKeyboardEventAck(const NativeWebKeyboardEvent& event, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
776 bool is_threaded_compositing_enabled_; | 776 bool is_threaded_compositing_enabled_; |
777 | 777 |
778 // Set if we are waiting for a repaint ack for the view. | 778 // Set if we are waiting for a repaint ack for the view. |
779 bool repaint_ack_pending_; | 779 bool repaint_ack_pending_; |
780 | 780 |
781 // True when waiting for RESIZE_ACK. | 781 // True when waiting for RESIZE_ACK. |
782 bool resize_ack_pending_; | 782 bool resize_ack_pending_; |
783 | 783 |
784 // Cached copy of the screen info so that it doesn't need to be updated every | 784 // Cached copy of the screen info so that it doesn't need to be updated every |
785 // time the window is resized. | 785 // time the window is resized. |
786 scoped_ptr<WebKit::WebScreenInfo> screen_info_; | 786 scoped_ptr<blink::WebScreenInfo> screen_info_; |
787 | 787 |
788 // Set if screen_info_ may have changed and should be recomputed and force a | 788 // Set if screen_info_ may have changed and should be recomputed and force a |
789 // resize message. | 789 // resize message. |
790 bool screen_info_out_of_date_; | 790 bool screen_info_out_of_date_; |
791 | 791 |
792 // The current size of the RenderWidget. | 792 // The current size of the RenderWidget. |
793 gfx::Size current_size_; | 793 gfx::Size current_size_; |
794 | 794 |
795 // The size of the view's backing surface in non-DPI-adjusted pixels. | 795 // The size of the view's backing surface in non-DPI-adjusted pixels. |
796 gfx::Size physical_backing_size_; | 796 gfx::Size physical_backing_size_; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 base::TimeTicks repaint_start_time_; | 859 base::TimeTicks repaint_start_time_; |
860 | 860 |
861 // Set to true if we shouldn't send input events from the render widget. | 861 // Set to true if we shouldn't send input events from the render widget. |
862 bool ignore_input_events_; | 862 bool ignore_input_events_; |
863 | 863 |
864 // Indicates whether IME is active. | 864 // Indicates whether IME is active. |
865 bool input_method_active_; | 865 bool input_method_active_; |
866 | 866 |
867 // Set when we update the text direction of the selected input element. | 867 // Set when we update the text direction of the selected input element. |
868 bool text_direction_updated_; | 868 bool text_direction_updated_; |
869 WebKit::WebTextDirection text_direction_; | 869 blink::WebTextDirection text_direction_; |
870 | 870 |
871 // Set when we cancel updating the text direction. | 871 // Set when we cancel updating the text direction. |
872 // This flag also ignores succeeding update requests until we call | 872 // This flag also ignores succeeding update requests until we call |
873 // NotifyTextDirection(). | 873 // NotifyTextDirection(). |
874 bool text_direction_canceled_; | 874 bool text_direction_canceled_; |
875 | 875 |
876 // Indicates if the next sequence of Char events should be suppressed or not. | 876 // Indicates if the next sequence of Char events should be suppressed or not. |
877 // System may translate a RawKeyDown event into zero or more Char events, | 877 // System may translate a RawKeyDown event into zero or more Char events, |
878 // usually we send them to the renderer directly in sequence. However, If a | 878 // usually we send them to the renderer directly in sequence. However, If a |
879 // RawKeyDown event was not handled by the renderer but was handled by | 879 // RawKeyDown event was not handled by the renderer but was handled by |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
918 int64 last_input_number_; | 918 int64 last_input_number_; |
919 | 919 |
920 BrowserRenderingStats rendering_stats_; | 920 BrowserRenderingStats rendering_stats_; |
921 | 921 |
922 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 922 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
923 }; | 923 }; |
924 | 924 |
925 } // namespace content | 925 } // namespace content |
926 | 926 |
927 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 927 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |