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 PassiveInputEventHandled( |
| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 virtual void SetScreenMetricsEmulationParameters( | 410 virtual void SetScreenMetricsEmulationParameters( |
409 bool enabled, | 411 bool enabled, |
410 const blink::WebDeviceEmulationParams& params); | 412 const blink::WebDeviceEmulationParams& params); |
411 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 413 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
412 void SetExternalPopupOriginAdjustmentsForEmulation( | 414 void SetExternalPopupOriginAdjustmentsForEmulation( |
413 ExternalPopupMenu* popup, ScreenMetricsEmulator* emulator); | 415 ExternalPopupMenu* popup, ScreenMetricsEmulator* emulator); |
414 #endif | 416 #endif |
415 | 417 |
416 // RenderWidget IPC message handlers | 418 // RenderWidget IPC message handlers |
417 void OnHandleInputEvent(const blink::WebInputEvent* event, | 419 void OnHandleInputEvent(const blink::WebInputEvent* event, |
418 const ui::LatencyInfo& latency_info); | 420 const ui::LatencyInfo& latency_info, |
| 421 bool passive); |
419 void OnCursorVisibilityChange(bool is_visible); | 422 void OnCursorVisibilityChange(bool is_visible); |
420 void OnMouseCaptureLost(); | 423 void OnMouseCaptureLost(); |
421 virtual void OnSetFocus(bool enable); | 424 virtual void OnSetFocus(bool enable); |
422 void OnClose(); | 425 void OnClose(); |
423 void OnCreatingNewAck(); | 426 void OnCreatingNewAck(); |
424 virtual void OnResize(const ResizeParams& params); | 427 virtual void OnResize(const ResizeParams& params); |
425 void OnEnableDeviceEmulation(const blink::WebDeviceEmulationParams& params); | 428 void OnEnableDeviceEmulation(const blink::WebDeviceEmulationParams& params); |
426 void OnDisableDeviceEmulation(); | 429 void OnDisableDeviceEmulation(); |
427 void OnColorProfile(const std::vector<char>& color_profile); | 430 void OnColorProfile(const std::vector<char>& color_profile); |
428 void OnChangeResizeRect(const gfx::Rect& resizer_rect); | 431 void OnChangeResizeRect(const gfx::Rect& resizer_rect); |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
753 | 756 |
754 scoped_ptr<scheduler::RenderWidgetSchedulingState> | 757 scoped_ptr<scheduler::RenderWidgetSchedulingState> |
755 render_widget_scheduling_state_; | 758 render_widget_scheduling_state_; |
756 | 759 |
757 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 760 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
758 }; | 761 }; |
759 | 762 |
760 } // namespace content | 763 } // namespace content |
761 | 764 |
762 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 765 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |