| 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 void ObserveGestureEventAndResult(const blink::WebGestureEvent& gesture_event, | 257 void ObserveGestureEventAndResult(const blink::WebGestureEvent& gesture_event, |
| 258 const gfx::Vector2dF& unused_delta, | 258 const gfx::Vector2dF& unused_delta, |
| 259 bool event_processed) override; | 259 bool event_processed) override; |
| 260 | 260 |
| 261 void OnDidHandleKeyEvent() override; | 261 void OnDidHandleKeyEvent() override; |
| 262 void OnDidOverscroll(const ui::DidOverscrollParams& params) override; | 262 void OnDidOverscroll(const ui::DidOverscrollParams& params) override; |
| 263 void OnInputEventAck(std::unique_ptr<InputEventAck> input_event_ack) override; | 263 void OnInputEventAck(std::unique_ptr<InputEventAck> input_event_ack) override; |
| 264 void NotifyInputEventHandled(blink::WebInputEvent::Type handled_type, | 264 void NotifyInputEventHandled(blink::WebInputEvent::Type handled_type, |
| 265 InputEventAckState ack_result) override; | 265 InputEventAckState ack_result) override; |
| 266 void SetInputHandler(RenderWidgetInputHandler* input_handler) override; | 266 void SetInputHandler(RenderWidgetInputHandler* input_handler) override; |
| 267 void UpdateTextInputState(ShowIme show_ime, | 267 void ShowVirtualKeyboard() override; |
| 268 ChangeSource change_source) override; | 268 void UpdateTextInputState() override; |
| 269 bool WillHandleGestureEvent(const blink::WebGestureEvent& event) override; | 269 bool WillHandleGestureEvent(const blink::WebGestureEvent& event) override; |
| 270 bool WillHandleMouseEvent(const blink::WebMouseEvent& event) override; | 270 bool WillHandleMouseEvent(const blink::WebMouseEvent& event) override; |
| 271 | 271 |
| 272 // RenderWidgetScreenMetricsDelegate | 272 // RenderWidgetScreenMetricsDelegate |
| 273 void Redraw() override; | 273 void Redraw() override; |
| 274 void Resize(const ResizeParams& resize_params) override; | 274 void Resize(const ResizeParams& resize_params) override; |
| 275 void SetScreenMetricsEmulationParameters( | 275 void SetScreenMetricsEmulationParameters( |
| 276 bool enabled, | 276 bool enabled, |
| 277 const blink::WebDeviceEmulationParams& params) override; | 277 const blink::WebDeviceEmulationParams& params) override; |
| 278 void SetScreenRects(const gfx::Rect& view_screen_rect, | 278 void SetScreenRects(const gfx::Rect& view_screen_rect, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 290 blink::WebTextDirection hint) override; | 290 blink::WebTextDirection hint) override; |
| 291 void setWindowRect(const blink::WebRect&) override; | 291 void setWindowRect(const blink::WebRect&) override; |
| 292 blink::WebScreenInfo screenInfo() override; | 292 blink::WebScreenInfo screenInfo() override; |
| 293 void resetInputMethod() override; | 293 void resetInputMethod() override; |
| 294 void didHandleGestureEvent(const blink::WebGestureEvent& event, | 294 void didHandleGestureEvent(const blink::WebGestureEvent& event, |
| 295 bool event_cancelled) override; | 295 bool event_cancelled) override; |
| 296 void didOverscroll(const blink::WebFloatSize& overscrollDelta, | 296 void didOverscroll(const blink::WebFloatSize& overscrollDelta, |
| 297 const blink::WebFloatSize& accumulatedOverscroll, | 297 const blink::WebFloatSize& accumulatedOverscroll, |
| 298 const blink::WebFloatPoint& position, | 298 const blink::WebFloatPoint& position, |
| 299 const blink::WebFloatSize& velocity) override; | 299 const blink::WebFloatSize& velocity) override; |
| 300 void showImeIfNeeded() override; | 300 void showVirtualKeyboard() override; |
| 301 void convertViewportToWindow(blink::WebRect* rect) override; | 301 void convertViewportToWindow(blink::WebRect* rect) override; |
| 302 void convertWindowToViewport(blink::WebFloatRect* rect) override; | 302 void convertWindowToViewport(blink::WebFloatRect* rect) override; |
| 303 bool requestPointerLock() override; | 303 bool requestPointerLock() override; |
| 304 void requestPointerUnlock() override; | 304 void requestPointerUnlock() override; |
| 305 bool isPointerLocked() override; | 305 bool isPointerLocked() override; |
| 306 void startDragging(blink::WebReferrerPolicy policy, | 306 void startDragging(blink::WebReferrerPolicy policy, |
| 307 const blink::WebDragData& data, | 307 const blink::WebDragData& data, |
| 308 blink::WebDragOperationsMask mask, | 308 blink::WebDragOperationsMask mask, |
| 309 const blink::WebImage& image, | 309 const blink::WebImage& image, |
| 310 const blink::WebPoint& imageOffset) override; | 310 const blink::WebPoint& imageOffset) override; |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 802 // be left in a state waiting for something that never comes. And if it | 802 // be left in a state waiting for something that never comes. And if it |
| 803 // never comes then it may later determine this is a hung renderer; so | 803 // never comes then it may later determine this is a hung renderer; so |
| 804 // instead fail right away. | 804 // instead fail right away. |
| 805 void SendOrCrash(IPC::Message* msg); | 805 void SendOrCrash(IPC::Message* msg); |
| 806 | 806 |
| 807 // Determines whether or not RenderWidget should process IME events from the | 807 // Determines whether or not RenderWidget should process IME events from the |
| 808 // browser. It always returns true unless there is no WebFrameWidget to | 808 // browser. It always returns true unless there is no WebFrameWidget to |
| 809 // handle the event, or there is no page focus. | 809 // handle the event, or there is no page focus. |
| 810 bool ShouldHandleImeEvents() const; | 810 bool ShouldHandleImeEvents() const; |
| 811 | 811 |
| 812 void UpdateTextInputStateInternal(bool show_virtual_keyboard, |
| 813 bool reply_to_request); |
| 814 |
| 812 // Indicates whether this widget has focus. | 815 // Indicates whether this widget has focus. |
| 813 bool has_focus_; | 816 bool has_focus_; |
| 814 | 817 |
| 815 // A callback into the creator/opener of this widget, to be executed when | 818 // A callback into the creator/opener of this widget, to be executed when |
| 816 // WebWidgetClient::show() occurs. | 819 // WebWidgetClient::show() occurs. |
| 817 ShowCallback show_callback_; | 820 ShowCallback show_callback_; |
| 818 | 821 |
| 819 #if defined(OS_MACOSX) | 822 #if defined(OS_MACOSX) |
| 820 // Responds to IPCs from TextInputClientMac regarding getting string at given | 823 // Responds to IPCs from TextInputClientMac regarding getting string at given |
| 821 // position or range as well as finding character index at a given position. | 824 // position or range as well as finding character index at a given position. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 834 // being handled. If the current event results in starting a drag/drop | 837 // being handled. If the current event results in starting a drag/drop |
| 835 // session, this info is sent to the browser along with other drag/drop info. | 838 // session, this info is sent to the browser along with other drag/drop info. |
| 836 DragEventSourceInfo possible_drag_event_info_; | 839 DragEventSourceInfo possible_drag_event_info_; |
| 837 | 840 |
| 838 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 841 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 839 }; | 842 }; |
| 840 | 843 |
| 841 } // namespace content | 844 } // namespace content |
| 842 | 845 |
| 843 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 846 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |