| 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 <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 #endif | 389 #endif |
| 390 | 390 |
| 391 // Signals that the compositing surface was updated, e.g. after a lost context | 391 // Signals that the compositing surface was updated, e.g. after a lost context |
| 392 // event. | 392 // event. |
| 393 void CompositingSurfaceUpdated(); | 393 void CompositingSurfaceUpdated(); |
| 394 | 394 |
| 395 void set_allow_privileged_mouse_lock(bool allow) { | 395 void set_allow_privileged_mouse_lock(bool allow) { |
| 396 allow_privileged_mouse_lock_ = allow; | 396 allow_privileged_mouse_lock_ = allow; |
| 397 } | 397 } |
| 398 | 398 |
| 399 // Resets state variables related to events, size/resize, painting so things |
| 400 // work with a new renderer. |
| 401 void ResetFlags(); |
| 402 |
| 399 protected: | 403 protected: |
| 400 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; | 404 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; |
| 401 | 405 |
| 402 // Internal implementation of the public Forward*Event() methods. | 406 // Internal implementation of the public Forward*Event() methods. |
| 403 void ForwardInputEvent(const WebKit::WebInputEvent& input_event, | 407 void ForwardInputEvent(const WebKit::WebInputEvent& input_event, |
| 404 int event_size, bool is_keyboard_shortcut); | 408 int event_size, bool is_keyboard_shortcut); |
| 405 | 409 |
| 406 // Called when we receive a notification indicating that the renderer | 410 // Called when we receive a notification indicating that the renderer |
| 407 // process has gone. This will reset our state so that our state will be | 411 // process has gone. This will reset our state so that our state will be |
| 408 // consistent if a new renderer is created. | 412 // consistent if a new renderer is created. |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 790 SmoothScrollGestureMap active_smooth_scroll_gestures_; | 794 SmoothScrollGestureMap active_smooth_scroll_gestures_; |
| 791 | 795 |
| 792 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 796 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
| 793 | 797 |
| 794 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 798 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 795 }; | 799 }; |
| 796 | 800 |
| 797 } // namespace content | 801 } // namespace content |
| 798 | 802 |
| 799 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 803 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |