Chromium Code Reviews| 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 tracking pending size and painting. | |
|
awong
2012/09/07 20:51:03
Can we expand on when/why you would call this?
lazyboy
2012/09/08 02:12:22
Added comments.
| |
| 400 void ResetSizeAndRepaintPendingFlags(); | |
| 401 | |
| 399 protected: | 402 protected: |
| 400 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; | 403 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; |
| 401 | 404 |
| 402 // Internal implementation of the public Forward*Event() methods. | 405 // Internal implementation of the public Forward*Event() methods. |
| 403 void ForwardInputEvent(const WebKit::WebInputEvent& input_event, | 406 void ForwardInputEvent(const WebKit::WebInputEvent& input_event, |
| 404 int event_size, bool is_keyboard_shortcut); | 407 int event_size, bool is_keyboard_shortcut); |
| 405 | 408 |
| 406 // Called when we receive a notification indicating that the renderer | 409 // 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 | 410 // process has gone. This will reset our state so that our state will be |
| 408 // consistent if a new renderer is created. | 411 // 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_; | 793 SmoothScrollGestureMap active_smooth_scroll_gestures_; |
| 791 | 794 |
| 792 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 795 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
| 793 | 796 |
| 794 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 797 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 795 }; | 798 }; |
| 796 | 799 |
| 797 } // namespace content | 800 } // namespace content |
| 798 | 801 |
| 799 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 802 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |