| 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 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 void ObserveGestureEventAndResult(const blink::WebGestureEvent& gesture_event, | 254 void ObserveGestureEventAndResult(const blink::WebGestureEvent& gesture_event, |
| 255 const gfx::Vector2dF& unused_delta, | 255 const gfx::Vector2dF& unused_delta, |
| 256 bool event_processed) override; | 256 bool event_processed) override; |
| 257 | 257 |
| 258 void OnDidHandleKeyEvent() override; | 258 void OnDidHandleKeyEvent() override; |
| 259 void OnDidOverscroll(const ui::DidOverscrollParams& params) override; | 259 void OnDidOverscroll(const ui::DidOverscrollParams& params) override; |
| 260 void OnInputEventAck(std::unique_ptr<InputEventAck> input_event_ack) override; | 260 void OnInputEventAck(std::unique_ptr<InputEventAck> input_event_ack) override; |
| 261 void NotifyInputEventHandled(blink::WebInputEvent::Type handled_type, | 261 void NotifyInputEventHandled(blink::WebInputEvent::Type handled_type, |
| 262 InputEventAckState ack_result) override; | 262 InputEventAckState ack_result) override; |
| 263 void SetInputHandler(RenderWidgetInputHandler* input_handler) override; | 263 void SetInputHandler(RenderWidgetInputHandler* input_handler) override; |
| 264 void UpdateTextInputState(ShowIme show_ime, | 264 void UpdateTextInputState(ShowIme show_ime) override; |
| 265 ChangeSource change_source) override; | |
| 266 bool WillHandleGestureEvent(const blink::WebGestureEvent& event) override; | 265 bool WillHandleGestureEvent(const blink::WebGestureEvent& event) override; |
| 267 bool WillHandleMouseEvent(const blink::WebMouseEvent& event) override; | 266 bool WillHandleMouseEvent(const blink::WebMouseEvent& event) override; |
| 268 | 267 |
| 269 // RenderWidgetScreenMetricsDelegate | 268 // RenderWidgetScreenMetricsDelegate |
| 270 void Redraw() override; | 269 void Redraw() override; |
| 271 void Resize(const ResizeParams& resize_params) override; | 270 void Resize(const ResizeParams& resize_params) override; |
| 272 void SetScreenMetricsEmulationParameters( | 271 void SetScreenMetricsEmulationParameters( |
| 273 bool enabled, | 272 bool enabled, |
| 274 const blink::WebDeviceEmulationParams& params) override; | 273 const blink::WebDeviceEmulationParams& params) override; |
| 275 void SetScreenRects(const gfx::Rect& view_screen_rect, | 274 void SetScreenRects(const gfx::Rect& view_screen_rect, |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 // Indicates whether tab-initiated fullscreen was granted. | 669 // Indicates whether tab-initiated fullscreen was granted. |
| 671 bool is_fullscreen_granted_; | 670 bool is_fullscreen_granted_; |
| 672 | 671 |
| 673 // Indicates the display mode. | 672 // Indicates the display mode. |
| 674 blink::WebDisplayMode display_mode_; | 673 blink::WebDisplayMode display_mode_; |
| 675 | 674 |
| 676 // It is possible that one ImeEventGuard is nested inside another | 675 // It is possible that one ImeEventGuard is nested inside another |
| 677 // ImeEventGuard. We keep track of the outermost one, and update it as needed. | 676 // ImeEventGuard. We keep track of the outermost one, and update it as needed. |
| 678 ImeEventGuard* ime_event_guard_; | 677 ImeEventGuard* ime_event_guard_; |
| 679 | 678 |
| 679 // Whether the text input state update was requested by IME or not. |
| 680 bool ime_requested_update_; |
| 681 |
| 680 // True if we have requested this widget be closed. No more messages will | 682 // True if we have requested this widget be closed. No more messages will |
| 681 // be sent, except for a Close. | 683 // be sent, except for a Close. |
| 682 bool closing_; | 684 bool closing_; |
| 683 | 685 |
| 684 // True if it is known that the host is in the process of being shut down. | 686 // True if it is known that the host is in the process of being shut down. |
| 685 bool host_closing_; | 687 bool host_closing_; |
| 686 | 688 |
| 687 // Whether this RenderWidget is currently swapped out, such that the view is | 689 // Whether this RenderWidget is currently swapped out, such that the view is |
| 688 // being rendered by another process. If all RenderWidgets in a process are | 690 // being rendered by another process. If all RenderWidgets in a process are |
| 689 // swapped out, the process can exit. | 691 // swapped out, the process can exit. |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 824 // being handled. If the current event results in starting a drag/drop | 826 // being handled. If the current event results in starting a drag/drop |
| 825 // session, this info is sent to the browser along with other drag/drop info. | 827 // session, this info is sent to the browser along with other drag/drop info. |
| 826 DragEventSourceInfo possible_drag_event_info_; | 828 DragEventSourceInfo possible_drag_event_info_; |
| 827 | 829 |
| 828 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 830 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 829 }; | 831 }; |
| 830 | 832 |
| 831 } // namespace content | 833 } // namespace content |
| 832 | 834 |
| 833 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 835 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |