| 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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 | 461 |
| 462 // Used to force the size of a window when running layout tests. | 462 // Used to force the size of a window when running layout tests. |
| 463 void SetWindowRectSynchronously(const gfx::Rect& new_window_rect); | 463 void SetWindowRectSynchronously(const gfx::Rect& new_window_rect); |
| 464 #if defined(USE_EXTERNAL_POPUP_MENU) | 464 #if defined(USE_EXTERNAL_POPUP_MENU) |
| 465 void SetExternalPopupOriginAdjustmentsForEmulation( | 465 void SetExternalPopupOriginAdjustmentsForEmulation( |
| 466 ExternalPopupMenu* popup, | 466 ExternalPopupMenu* popup, |
| 467 RenderWidgetScreenMetricsEmulator* emulator); | 467 RenderWidgetScreenMetricsEmulator* emulator); |
| 468 #endif | 468 #endif |
| 469 | 469 |
| 470 // RenderWidget IPC message handlers | 470 // RenderWidget IPC message handlers |
| 471 void OnHandleInputEvent(const blink::WebInputEvent* event, | 471 void OnHandleInputEvent( |
| 472 const ui::LatencyInfo& latency_info, | 472 const blink::WebInputEvent* event, |
| 473 InputEventDispatchType dispatch_type); | 473 const std::vector<const blink::WebInputEvent*>& coalescedEvents, |
| 474 const ui::LatencyInfo& latency_info, |
| 475 InputEventDispatchType dispatch_type); |
| 474 void OnCursorVisibilityChange(bool is_visible); | 476 void OnCursorVisibilityChange(bool is_visible); |
| 475 void OnMouseCaptureLost(); | 477 void OnMouseCaptureLost(); |
| 476 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); | 478 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); |
| 477 virtual void OnSetFocus(bool enable); | 479 virtual void OnSetFocus(bool enable); |
| 478 void OnClose(); | 480 void OnClose(); |
| 479 void OnCreatingNewAck(); | 481 void OnCreatingNewAck(); |
| 480 virtual void OnResize(const ResizeParams& params); | 482 virtual void OnResize(const ResizeParams& params); |
| 481 void OnEnableDeviceEmulation(const blink::WebDeviceEmulationParams& params); | 483 void OnEnableDeviceEmulation(const blink::WebDeviceEmulationParams& params); |
| 482 void OnDisableDeviceEmulation(); | 484 void OnDisableDeviceEmulation(); |
| 483 virtual void OnWasHidden(); | 485 virtual void OnWasHidden(); |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 836 // being handled. If the current event results in starting a drag/drop | 838 // being handled. If the current event results in starting a drag/drop |
| 837 // session, this info is sent to the browser along with other drag/drop info. | 839 // session, this info is sent to the browser along with other drag/drop info. |
| 838 DragEventSourceInfo possible_drag_event_info_; | 840 DragEventSourceInfo possible_drag_event_info_; |
| 839 | 841 |
| 840 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 842 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 841 }; | 843 }; |
| 842 | 844 |
| 843 } // namespace content | 845 } // namespace content |
| 844 | 846 |
| 845 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 847 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |