| 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 #endif | 383 #endif |
| 384 | 384 |
| 385 // Signals that the compositing surface was updated, e.g. after a lost context | 385 // Signals that the compositing surface was updated, e.g. after a lost context |
| 386 // event. | 386 // event. |
| 387 void CompositingSurfaceUpdated(); | 387 void CompositingSurfaceUpdated(); |
| 388 | 388 |
| 389 void set_allow_privileged_mouse_lock(bool allow) { | 389 void set_allow_privileged_mouse_lock(bool allow) { |
| 390 allow_privileged_mouse_lock_ = allow; | 390 allow_privileged_mouse_lock_ = allow; |
| 391 } | 391 } |
| 392 | 392 |
| 393 // Resets state variables related to events, size/resize, painting so things |
| 394 // work with a new renderer. |
| 395 void ResetFlags(); |
| 396 |
| 393 protected: | 397 protected: |
| 394 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; | 398 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; |
| 395 | 399 |
| 396 // Internal implementation of the public Forward*Event() methods. | 400 // Internal implementation of the public Forward*Event() methods. |
| 397 void ForwardInputEvent(const WebKit::WebInputEvent& input_event, | 401 void ForwardInputEvent(const WebKit::WebInputEvent& input_event, |
| 398 int event_size, bool is_keyboard_shortcut); | 402 int event_size, bool is_keyboard_shortcut); |
| 399 | 403 |
| 400 // Called when we receive a notification indicating that the renderer | 404 // Called when we receive a notification indicating that the renderer |
| 401 // process has gone. This will reset our state so that our state will be | 405 // process has gone. This will reset our state so that our state will be |
| 402 // consistent if a new renderer is created. | 406 // consistent if a new renderer is created. |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 773 scoped_ptr<SmoothScrollGesture> active_smooth_scroll_gesture_; | 777 scoped_ptr<SmoothScrollGesture> active_smooth_scroll_gesture_; |
| 774 | 778 |
| 775 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 779 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
| 776 | 780 |
| 777 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 781 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 778 }; | 782 }; |
| 779 | 783 |
| 780 } // namespace content | 784 } // namespace content |
| 781 | 785 |
| 782 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 786 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |