| 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 <queue> | 10 #include <queue> |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 | 405 |
| 406 void set_allow_privileged_mouse_lock(bool allow) { | 406 void set_allow_privileged_mouse_lock(bool allow) { |
| 407 allow_privileged_mouse_lock_ = allow; | 407 allow_privileged_mouse_lock_ = allow; |
| 408 } | 408 } |
| 409 | 409 |
| 410 #if defined(OS_ANDROID) | 410 #if defined(OS_ANDROID) |
| 411 virtual void AttachLayer(WebKit::WebLayer* layer) {} | 411 virtual void AttachLayer(WebKit::WebLayer* layer) {} |
| 412 virtual void RemoveLayer(WebKit::WebLayer* layer) {} | 412 virtual void RemoveLayer(WebKit::WebLayer* layer) {} |
| 413 #endif | 413 #endif |
| 414 | 414 |
| 415 // Resets state variables related to tracking pending size and painting. | |
| 416 // | |
| 417 // We need to reset these flags when we want to repaint the contents of | |
| 418 // browser plugin in this RWH. Resetting these flags will ensure we ignore | |
| 419 // any previous pending acks that are not relevant upon repaint. | |
| 420 void ResetSizeAndRepaintPendingFlags(); | |
| 421 | |
| 422 protected: | 415 protected: |
| 423 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; | 416 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; |
| 424 | 417 |
| 425 // Internal implementation of the public Forward*Event() methods. | 418 // Internal implementation of the public Forward*Event() methods. |
| 426 void ForwardInputEvent(const WebKit::WebInputEvent& input_event, | 419 void ForwardInputEvent(const WebKit::WebInputEvent& input_event, |
| 427 int event_size, bool is_keyboard_shortcut); | 420 int event_size, bool is_keyboard_shortcut); |
| 428 | 421 |
| 429 // Called when we receive a notification indicating that the renderer | 422 // Called when we receive a notification indicating that the renderer |
| 430 // process has gone. This will reset our state so that our state will be | 423 // process has gone. This will reset our state so that our state will be |
| 431 // consistent if a new renderer is created. | 424 // consistent if a new renderer is created. |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 816 SmoothScrollGestureMap active_smooth_scroll_gestures_; | 809 SmoothScrollGestureMap active_smooth_scroll_gestures_; |
| 817 | 810 |
| 818 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 811 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
| 819 | 812 |
| 820 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 813 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 821 }; | 814 }; |
| 822 | 815 |
| 823 } // namespace content | 816 } // namespace content |
| 824 | 817 |
| 825 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 818 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |