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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 | 197 |
198 // RenderWidgetInputHandlerDelegate | 198 // RenderWidgetInputHandlerDelegate |
199 void FocusChangeComplete() override; | 199 void FocusChangeComplete() override; |
200 bool HasTouchEventHandlersAt(const gfx::Point& point) const override; | 200 bool HasTouchEventHandlersAt(const gfx::Point& point) const override; |
201 void ObserveWheelEventAndResult(const blink::WebMouseWheelEvent& wheel_event, | 201 void ObserveWheelEventAndResult(const blink::WebMouseWheelEvent& wheel_event, |
202 const gfx::Vector2dF& wheel_unused_delta, | 202 const gfx::Vector2dF& wheel_unused_delta, |
203 bool event_processed) override; | 203 bool event_processed) override; |
204 void OnDidHandleKeyEvent() override; | 204 void OnDidHandleKeyEvent() override; |
205 void OnDidOverscroll(const DidOverscrollParams& params) override; | 205 void OnDidOverscroll(const DidOverscrollParams& params) override; |
206 void OnInputEventAck(scoped_ptr<InputEventAck> input_event_ack) override; | 206 void OnInputEventAck(scoped_ptr<InputEventAck> input_event_ack) override; |
| 207 void NonBlockingInputEventHandled( |
| 208 blink::WebInputEvent::Type handled_type) override; |
207 void SetInputHandler(RenderWidgetInputHandler* input_handler) override; | 209 void SetInputHandler(RenderWidgetInputHandler* input_handler) override; |
208 void UpdateTextInputState(ShowIme show_ime, | 210 void UpdateTextInputState(ShowIme show_ime, |
209 ChangeSource change_source) override; | 211 ChangeSource change_source) override; |
210 bool WillHandleGestureEvent(const blink::WebGestureEvent& event) override; | 212 bool WillHandleGestureEvent(const blink::WebGestureEvent& event) override; |
211 bool WillHandleMouseEvent(const blink::WebMouseEvent& event) override; | 213 bool WillHandleMouseEvent(const blink::WebMouseEvent& event) override; |
212 | 214 |
213 // blink::WebWidgetClient | 215 // blink::WebWidgetClient |
214 void didAutoResize(const blink::WebSize& new_size) override; | 216 void didAutoResize(const blink::WebSize& new_size) override; |
215 void initializeLayerTreeView() override; | 217 void initializeLayerTreeView() override; |
216 blink::WebLayerTreeView* layerTreeView() override; | 218 blink::WebLayerTreeView* layerTreeView() override; |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 virtual void SetScreenMetricsEmulationParameters( | 411 virtual void SetScreenMetricsEmulationParameters( |
410 bool enabled, | 412 bool enabled, |
411 const blink::WebDeviceEmulationParams& params); | 413 const blink::WebDeviceEmulationParams& params); |
412 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 414 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
413 void SetExternalPopupOriginAdjustmentsForEmulation( | 415 void SetExternalPopupOriginAdjustmentsForEmulation( |
414 ExternalPopupMenu* popup, ScreenMetricsEmulator* emulator); | 416 ExternalPopupMenu* popup, ScreenMetricsEmulator* emulator); |
415 #endif | 417 #endif |
416 | 418 |
417 // RenderWidget IPC message handlers | 419 // RenderWidget IPC message handlers |
418 void OnHandleInputEvent(const blink::WebInputEvent* event, | 420 void OnHandleInputEvent(const blink::WebInputEvent* event, |
419 const ui::LatencyInfo& latency_info); | 421 const ui::LatencyInfo& latency_info, |
| 422 InputEventDispatchType dispatch_type); |
420 void OnCursorVisibilityChange(bool is_visible); | 423 void OnCursorVisibilityChange(bool is_visible); |
421 void OnMouseCaptureLost(); | 424 void OnMouseCaptureLost(); |
422 virtual void OnSetFocus(bool enable); | 425 virtual void OnSetFocus(bool enable); |
423 void OnClose(); | 426 void OnClose(); |
424 void OnCreatingNewAck(); | 427 void OnCreatingNewAck(); |
425 virtual void OnResize(const ResizeParams& params); | 428 virtual void OnResize(const ResizeParams& params); |
426 void OnEnableDeviceEmulation(const blink::WebDeviceEmulationParams& params); | 429 void OnEnableDeviceEmulation(const blink::WebDeviceEmulationParams& params); |
427 void OnDisableDeviceEmulation(); | 430 void OnDisableDeviceEmulation(); |
428 void OnColorProfile(const std::vector<char>& color_profile); | 431 void OnColorProfile(const std::vector<char>& color_profile); |
429 void OnChangeResizeRect(const gfx::Rect& resizer_rect); | 432 void OnChangeResizeRect(const gfx::Rect& resizer_rect); |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 | 761 |
759 scoped_ptr<scheduler::RenderWidgetSchedulingState> | 762 scoped_ptr<scheduler::RenderWidgetSchedulingState> |
760 render_widget_scheduling_state_; | 763 render_widget_scheduling_state_; |
761 | 764 |
762 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 765 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
763 }; | 766 }; |
764 | 767 |
765 } // namespace content | 768 } // namespace content |
766 | 769 |
767 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 770 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |