| 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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 796 blink::WebPopupType popup_type, | 795 blink::WebPopupType popup_type, |
| 797 int32_t* routing_id); | 796 int32_t* routing_id); |
| 798 | 797 |
| 799 // A variant of Send but is fatal if it fails. The browser may | 798 // A variant of Send but is fatal if it fails. The browser may |
| 800 // be waiting for this IPC Message and if the send fails the browser will | 799 // be waiting for this IPC Message and if the send fails the browser will |
| 801 // be left in a state waiting for something that never comes. And if it | 800 // be left in a state waiting for something that never comes. And if it |
| 802 // never comes then it may later determine this is a hung renderer; so | 801 // never comes then it may later determine this is a hung renderer; so |
| 803 // instead fail right away. | 802 // instead fail right away. |
| 804 void SendOrCrash(IPC::Message* msg); | 803 void SendOrCrash(IPC::Message* msg); |
| 805 | 804 |
| 805 void UpdateTextInputStateInternal(ShowIme show_ime, bool reply_to_request); |
| 806 |
| 806 // Indicates whether this widget has focus. | 807 // Indicates whether this widget has focus. |
| 807 bool has_focus_; | 808 bool has_focus_; |
| 808 | 809 |
| 809 // A callback into the creator/opener of this widget, to be executed when | 810 // A callback into the creator/opener of this widget, to be executed when |
| 810 // WebWidgetClient::show() occurs. | 811 // WebWidgetClient::show() occurs. |
| 811 ShowCallback show_callback_; | 812 ShowCallback show_callback_; |
| 812 | 813 |
| 813 #if defined(OS_MACOSX) | 814 #if defined(OS_MACOSX) |
| 814 // Responds to IPCs from TextInputClientMac regarding getting string at given | 815 // Responds to IPCs from TextInputClientMac regarding getting string at given |
| 815 // position or range as well as finding character index at a given position. | 816 // position or range as well as finding character index at a given position. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 828 // being handled. If the current event results in starting a drag/drop | 829 // being handled. If the current event results in starting a drag/drop |
| 829 // session, this info is sent to the browser along with other drag/drop info. | 830 // session, this info is sent to the browser along with other drag/drop info. |
| 830 DragEventSourceInfo possible_drag_event_info_; | 831 DragEventSourceInfo possible_drag_event_info_; |
| 831 | 832 |
| 832 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 833 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 833 }; | 834 }; |
| 834 | 835 |
| 835 } // namespace content | 836 } // namespace content |
| 836 | 837 |
| 837 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 838 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |