| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 } | 365 } |
| 366 | 366 |
| 367 // Activate deferred plugin handles. | 367 // Activate deferred plugin handles. |
| 368 void ActivateDeferredPluginHandles(); | 368 void ActivateDeferredPluginHandles(); |
| 369 | 369 |
| 370 const gfx::Point& last_scroll_offset() const { return last_scroll_offset_; } | 370 const gfx::Point& last_scroll_offset() const { return last_scroll_offset_; } |
| 371 | 371 |
| 372 // Notification that the user has made some kind of input that could | 372 // Notification that the user has made some kind of input that could |
| 373 // perform an action. See OnUserGesture for more details. | 373 // perform an action. See OnUserGesture for more details. |
| 374 void StartUserGesture(); | 374 void StartUserGesture(); |
| 375 | 375 |
| 376 protected: | 376 protected: |
| 377 // Internal implementation of the public Forward*Event() methods. | 377 // Internal implementation of the public Forward*Event() methods. |
| 378 void ForwardInputEvent(const WebKit::WebInputEvent& input_event, | 378 void ForwardInputEvent(const WebKit::WebInputEvent& input_event, |
| 379 int event_size, bool is_keyboard_shortcut); | 379 int event_size, bool is_keyboard_shortcut); |
| 380 | 380 |
| 381 // Called when we receive a notification indicating that the renderer | 381 // Called when we receive a notification indicating that the renderer |
| 382 // process has gone. This will reset our state so that our state will be | 382 // process has gone. This will reset our state so that our state will be |
| 383 // consistent if a new renderer is created. | 383 // consistent if a new renderer is created. |
| 384 void RendererExited(base::TerminationStatus status, int exit_code); | 384 void RendererExited(base::TerminationStatus status, int exit_code); |
| 385 | 385 |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 | 656 |
| 657 std::vector<gfx::PluginWindowHandle> deferred_plugin_handles_; | 657 std::vector<gfx::PluginWindowHandle> deferred_plugin_handles_; |
| 658 | 658 |
| 659 // The last scroll offset of the render widget. | 659 // The last scroll offset of the render widget. |
| 660 gfx::Point last_scroll_offset_; | 660 gfx::Point last_scroll_offset_; |
| 661 | 661 |
| 662 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); | 662 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); |
| 663 }; | 663 }; |
| 664 | 664 |
| 665 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 665 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| OLD | NEW |