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_VIEW_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
| 10 #include "base/process.h" | 10 #include "base/process.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 98 virtual void SetHasHorizontalScrollbar( | 98 virtual void SetHasHorizontalScrollbar( |
| 99 bool has_horizontal_scrollbar) OVERRIDE; | 99 bool has_horizontal_scrollbar) OVERRIDE; |
| 100 virtual void SetScrollOffsetPinning( | 100 virtual void SetScrollOffsetPinning( |
| 101 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; | 101 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; |
| 102 virtual bool LockMouse() OVERRIDE; | 102 virtual bool LockMouse() OVERRIDE; |
| 103 virtual void UnlockMouse() OVERRIDE; | 103 virtual void UnlockMouse() OVERRIDE; |
| 104 virtual void StartContentIntent(const GURL& content_url) OVERRIDE; | 104 virtual void StartContentIntent(const GURL& content_url) OVERRIDE; |
| 105 | 105 |
| 106 void SetContentViewCore(ContentViewCoreImpl* content_view_core); | 106 void SetContentViewCore(ContentViewCoreImpl* content_view_core); |
| 107 | 107 |
| 108 virtual void DidSetNeedTouchEvents(bool need_touch_events) OVERRIDE; | |
|
jam
2012/07/27 21:02:13
nit: put all overridden functions from the same in
| |
| 109 | |
| 110 void TouchEvent(const WebKit::WebTouchEvent& event); | |
| 111 void GestureEvent(const WebKit::WebGestureEvent& event); | |
| 112 | |
| 108 private: | 113 private: |
| 109 // The model object. | 114 // The model object. |
| 110 RenderWidgetHostImpl* host_; | 115 RenderWidgetHostImpl* host_; |
| 111 | 116 |
| 112 // Whether or not this widget is hidden. | 117 // Whether or not this widget is hidden. |
| 113 bool is_hidden_; | 118 bool is_hidden_; |
| 114 | 119 |
| 115 // ContentViewCoreImpl is our interface to the view system. | 120 // ContentViewCoreImpl is our interface to the view system. |
| 116 ContentViewCoreImpl* content_view_core_; | 121 ContentViewCoreImpl* content_view_core_; |
| 117 | 122 |
| 118 // The size that we want the renderer to be. We keep this in a separate | 123 // The size that we want the renderer to be. We keep this in a separate |
| 119 // variable because resizing is async. | 124 // variable because resizing is async. |
| 120 gfx::Size requested_size_; | 125 gfx::Size requested_size_; |
| 121 | 126 |
| 122 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 127 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 123 }; | 128 }; |
| 124 | 129 |
| 125 } // namespace content | 130 } // namespace content |
| 126 | 131 |
| 127 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 132 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |