| 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 27 matching lines...) Expand all Loading... |
| 38 class Range; | 38 class Range; |
| 39 } | 39 } |
| 40 | 40 |
| 41 namespace WebKit { | 41 namespace WebKit { |
| 42 class WebInputEvent; | 42 class WebInputEvent; |
| 43 class WebMouseEvent; | 43 class WebMouseEvent; |
| 44 struct WebCompositionUnderline; | 44 struct WebCompositionUnderline; |
| 45 struct WebScreenInfo; | 45 struct WebScreenInfo; |
| 46 } | 46 } |
| 47 | 47 |
| 48 #if defined(OS_ANDROID) |
| 49 namespace WebKit { |
| 50 class WebLayer; |
| 51 } |
| 52 #endif |
| 53 |
| 48 namespace content { | 54 namespace content { |
| 49 class BackingStore; | 55 class BackingStore; |
| 50 class GestureEventFilter; | 56 class GestureEventFilter; |
| 51 class RenderWidgetHostDelegate; | 57 class RenderWidgetHostDelegate; |
| 52 class RenderWidgetHostViewPort; | 58 class RenderWidgetHostViewPort; |
| 53 class SmoothScrollGesture; | 59 class SmoothScrollGesture; |
| 54 | 60 |
| 55 // This implements the RenderWidgetHost interface that is exposed to | 61 // This implements the RenderWidgetHost interface that is exposed to |
| 56 // embedders of content, and adds things only visible to content. | 62 // embedders of content, and adds things only visible to content. |
| 57 class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, | 63 class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 #endif | 395 #endif |
| 390 | 396 |
| 391 // Signals that the compositing surface was updated, e.g. after a lost context | 397 // Signals that the compositing surface was updated, e.g. after a lost context |
| 392 // event. | 398 // event. |
| 393 void CompositingSurfaceUpdated(); | 399 void CompositingSurfaceUpdated(); |
| 394 | 400 |
| 395 void set_allow_privileged_mouse_lock(bool allow) { | 401 void set_allow_privileged_mouse_lock(bool allow) { |
| 396 allow_privileged_mouse_lock_ = allow; | 402 allow_privileged_mouse_lock_ = allow; |
| 397 } | 403 } |
| 398 | 404 |
| 405 #if defined(OS_ANDROID) |
| 406 virtual void AttachLayer(WebKit::WebLayer* layer) {} |
| 407 virtual void RemoveLayer(WebKit::WebLayer* layer) {} |
| 408 #endif |
| 409 |
| 399 protected: | 410 protected: |
| 400 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; | 411 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; |
| 401 | 412 |
| 402 // Internal implementation of the public Forward*Event() methods. | 413 // Internal implementation of the public Forward*Event() methods. |
| 403 void ForwardInputEvent(const WebKit::WebInputEvent& input_event, | 414 void ForwardInputEvent(const WebKit::WebInputEvent& input_event, |
| 404 int event_size, bool is_keyboard_shortcut); | 415 int event_size, bool is_keyboard_shortcut); |
| 405 | 416 |
| 406 // Called when we receive a notification indicating that the renderer | 417 // 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 | 418 // process has gone. This will reset our state so that our state will be |
| 408 // consistent if a new renderer is created. | 419 // 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_; | 801 SmoothScrollGestureMap active_smooth_scroll_gestures_; |
| 791 | 802 |
| 792 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 803 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
| 793 | 804 |
| 794 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 805 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 795 }; | 806 }; |
| 796 | 807 |
| 797 } // namespace content | 808 } // namespace content |
| 798 | 809 |
| 799 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 810 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |