| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 | 166 |
| 163 // ContentViewCoreImpl is our interface to the view system. | 167 // ContentViewCoreImpl is our interface to the view system. |
| 164 ContentViewCoreImpl* content_view_core_; | 168 ContentViewCoreImpl* content_view_core_; |
| 165 | 169 |
| 166 ImeAdapterAndroid ime_adapter_android_; | 170 ImeAdapterAndroid ime_adapter_android_; |
| 167 | 171 |
| 168 // Body background color of the underlying document. | 172 // Body background color of the underlying document. |
| 169 SkColor cached_background_color_; | 173 SkColor cached_background_color_; |
| 170 | 174 |
| 171 // The texture layer for this view when using browser-side compositing. | 175 // The texture layer for this view when using browser-side compositing. |
| 172 scoped_ptr<WebKit::WebExternalTextureLayer> texture_layer_; | 176 scoped_refptr<cc::TextureLayer> texture_layer_; |
| 173 | 177 |
| 174 // The layer used for rendering the contents of this view. | 178 // The layer used for rendering the contents of this view. |
| 175 // It is either owned by texture_layer_ or surface_texture_transport_ | 179 // It is either owned by texture_layer_ or surface_texture_transport_ |
| 176 // depending on the mode. | 180 // depending on the mode. |
| 177 WebKit::WebLayer* layer_; | 181 scoped_refptr<cc::Layer> layer_; |
| 178 | 182 |
| 179 // The most recent texture id that was pushed to the texture layer. | 183 // The most recent texture id that was pushed to the texture layer. |
| 180 unsigned int texture_id_in_layer_; | 184 unsigned int texture_id_in_layer_; |
| 181 | 185 |
| 182 // The most recent texture size that was pushed to the texture layer. | 186 // The most recent texture size that was pushed to the texture layer. |
| 183 gfx::Size texture_size_in_layer_; | 187 gfx::Size texture_size_in_layer_; |
| 184 | 188 |
| 185 // The handle for the transport surface (between renderer and browser-side | 189 // The handle for the transport surface (between renderer and browser-side |
| 186 // compositor) for this view. | 190 // compositor) for this view. |
| 187 gfx::GLSurfaceHandle shared_surface_; | 191 gfx::GLSurfaceHandle shared_surface_; |
| 188 | 192 |
| 189 // Used for image transport when needing to share resources across threads. | 193 // Used for image transport when needing to share resources across threads. |
| 190 scoped_ptr<SurfaceTextureTransportClient> surface_texture_transport_; | 194 scoped_ptr<SurfaceTextureTransportClient> surface_texture_transport_; |
| 191 | 195 |
| 192 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 196 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 193 }; | 197 }; |
| 194 | 198 |
| 195 } // namespace content | 199 } // namespace content |
| 196 | 200 |
| 197 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 201 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |