| 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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 | 447 |
| 448 // Used to force the size of a window when running layout tests. | 448 // Used to force the size of a window when running layout tests. |
| 449 void SetWindowRectSynchronously(const gfx::Rect& new_window_rect); | 449 void SetWindowRectSynchronously(const gfx::Rect& new_window_rect); |
| 450 #if defined(USE_EXTERNAL_POPUP_MENU) | 450 #if defined(USE_EXTERNAL_POPUP_MENU) |
| 451 void SetExternalPopupOriginAdjustmentsForEmulation( | 451 void SetExternalPopupOriginAdjustmentsForEmulation( |
| 452 ExternalPopupMenu* popup, | 452 ExternalPopupMenu* popup, |
| 453 RenderWidgetScreenMetricsEmulator* emulator); | 453 RenderWidgetScreenMetricsEmulator* emulator); |
| 454 #endif | 454 #endif |
| 455 | 455 |
| 456 // RenderWidget IPC message handlers | 456 // RenderWidget IPC message handlers |
| 457 void OnHandleInputEvent(const blink::WebInputEvent* event, | 457 void OnHandleInputEvent( |
| 458 const ui::LatencyInfo& latency_info, | 458 const blink::WebInputEvent* event, |
| 459 InputEventDispatchType dispatch_type); | 459 const std::vector<const blink::WebInputEvent*>& coalescedEvents, |
| 460 const ui::LatencyInfo& latency_info, |
| 461 InputEventDispatchType dispatch_type); |
| 460 void OnCursorVisibilityChange(bool is_visible); | 462 void OnCursorVisibilityChange(bool is_visible); |
| 461 void OnMouseCaptureLost(); | 463 void OnMouseCaptureLost(); |
| 462 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); | 464 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); |
| 463 virtual void OnSetFocus(bool enable); | 465 virtual void OnSetFocus(bool enable); |
| 464 void OnClose(); | 466 void OnClose(); |
| 465 void OnCreatingNewAck(); | 467 void OnCreatingNewAck(); |
| 466 virtual void OnResize(const ResizeParams& params); | 468 virtual void OnResize(const ResizeParams& params); |
| 467 void OnEnableDeviceEmulation(const blink::WebDeviceEmulationParams& params); | 469 void OnEnableDeviceEmulation(const blink::WebDeviceEmulationParams& params); |
| 468 void OnDisableDeviceEmulation(); | 470 void OnDisableDeviceEmulation(); |
| 469 virtual void OnWasHidden(); | 471 virtual void OnWasHidden(); |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 820 // Stores edit commands associated to the next key event. | 822 // Stores edit commands associated to the next key event. |
| 821 // Will be cleared as soon as the next key event is processed. | 823 // Will be cleared as soon as the next key event is processed. |
| 822 EditCommands edit_commands_; | 824 EditCommands edit_commands_; |
| 823 | 825 |
| 824 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 826 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 825 }; | 827 }; |
| 826 | 828 |
| 827 } // namespace content | 829 } // namespace content |
| 828 | 830 |
| 829 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 831 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |