| 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/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/process.h" | 11 #include "base/process.h" |
| 12 #include "content/browser/renderer_host/ime_adapter_android.h" | 12 #include "content/browser/renderer_host/ime_adapter_android.h" |
| 13 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 13 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
| 14 #include "third_party/skia/include/core/SkColor.h" | 14 #include "third_party/skia/include/core/SkColor.h" |
| 15 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 15 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" |
| 16 #include "ui/gfx/size.h" | 16 #include "ui/gfx/size.h" |
| 17 | 17 |
| 18 struct ViewHostMsg_TextInputState_Params; | 18 struct ViewHostMsg_TextInputState_Params; |
| 19 | 19 |
| 20 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; | 20 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; |
| 21 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; | 21 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; |
| 22 | 22 |
| 23 namespace cc { |
| 24 class Layer; |
| 25 class TextureLayer; |
| 26 } |
| 27 |
| 23 namespace WebKit { | 28 namespace WebKit { |
| 24 class WebExternalTextureLayer; | 29 class WebExternalTextureLayer; |
| 25 class WebLayer; | |
| 26 class WebTouchEvent; | 30 class WebTouchEvent; |
| 27 class WebMouseEvent; | 31 class WebMouseEvent; |
| 28 } | 32 } |
| 29 | 33 |
| 30 namespace content { | 34 namespace content { |
| 31 class ContentViewCoreImpl; | 35 class ContentViewCoreImpl; |
| 32 class RenderWidgetHost; | 36 class RenderWidgetHost; |
| 33 class RenderWidgetHostImpl; | 37 class RenderWidgetHostImpl; |
| 34 class SurfaceTextureTransportClient; | 38 class SurfaceTextureTransportClient; |
| 35 struct NativeWebKeyboardEvent; | 39 struct NativeWebKeyboardEvent; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 164 |
| 161 // ContentViewCoreImpl is our interface to the view system. | 165 // ContentViewCoreImpl is our interface to the view system. |
| 162 ContentViewCoreImpl* content_view_core_; | 166 ContentViewCoreImpl* content_view_core_; |
| 163 | 167 |
| 164 ImeAdapterAndroid ime_adapter_android_; | 168 ImeAdapterAndroid ime_adapter_android_; |
| 165 | 169 |
| 166 // Body background color of the underlying document. | 170 // Body background color of the underlying document. |
| 167 SkColor cached_background_color_; | 171 SkColor cached_background_color_; |
| 168 | 172 |
| 169 // The texture layer for this view when using browser-side compositing. | 173 // The texture layer for this view when using browser-side compositing. |
| 170 scoped_ptr<WebKit::WebExternalTextureLayer> texture_layer_; | 174 scoped_refptr<cc::TextureLayer> texture_layer_; |
| 171 | 175 |
| 172 // The layer used for rendering the contents of this view. | 176 // The layer used for rendering the contents of this view. |
| 173 // It is either owned by texture_layer_ or surface_texture_transport_ | 177 // It is either owned by texture_layer_ or surface_texture_transport_ |
| 174 // depending on the mode. | 178 // depending on the mode. |
| 175 WebKit::WebLayer* layer_; | 179 scoped_refptr<cc::Layer> layer_; |
| 176 | 180 |
| 177 // The most recent texture id that was pushed to the texture layer. | 181 // The most recent texture id that was pushed to the texture layer. |
| 178 unsigned int texture_id_in_layer_; | 182 unsigned int texture_id_in_layer_; |
| 179 | 183 |
| 180 // The most recent texture size that was pushed to the texture layer. | 184 // The most recent texture size that was pushed to the texture layer. |
| 181 gfx::Size texture_size_in_layer_; | 185 gfx::Size texture_size_in_layer_; |
| 182 | 186 |
| 183 // The handle for the transport surface (between renderer and browser-side | 187 // The handle for the transport surface (between renderer and browser-side |
| 184 // compositor) for this view. | 188 // compositor) for this view. |
| 185 gfx::GLSurfaceHandle shared_surface_; | 189 gfx::GLSurfaceHandle shared_surface_; |
| 186 | 190 |
| 187 // Used for image transport when needing to share resources across threads. | 191 // Used for image transport when needing to share resources across threads. |
| 188 scoped_ptr<SurfaceTextureTransportClient> surface_texture_transport_; | 192 scoped_ptr<SurfaceTextureTransportClient> surface_texture_transport_; |
| 189 | 193 |
| 190 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 194 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 191 }; | 195 }; |
| 192 | 196 |
| 193 } // namespace content | 197 } // namespace content |
| 194 | 198 |
| 195 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 199 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |