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 #include "content/browser/renderer_host/render_widget_host_view_android.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_android.h" |
6 | 6 |
7 #include <android/bitmap.h> | 7 #include <android/bitmap.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 return true; | 226 return true; |
227 } | 227 } |
228 | 228 |
229 bool RenderWidgetHostViewAndroid::HasValidFrame() const { | 229 bool RenderWidgetHostViewAndroid::HasValidFrame() const { |
230 return texture_id_in_layer_ != 0 && | 230 return texture_id_in_layer_ != 0 && |
231 content_view_core_ && | 231 content_view_core_ && |
232 !texture_size_in_layer_.IsEmpty(); | 232 !texture_size_in_layer_.IsEmpty(); |
233 } | 233 } |
234 | 234 |
235 gfx::NativeView RenderWidgetHostViewAndroid::GetNativeView() const { | 235 gfx::NativeView RenderWidgetHostViewAndroid::GetNativeView() const { |
236 return content_view_core_; | 236 return content_view_core_->GetViewAndroid(); |
237 } | 237 } |
238 | 238 |
239 gfx::NativeViewId RenderWidgetHostViewAndroid::GetNativeViewId() const { | 239 gfx::NativeViewId RenderWidgetHostViewAndroid::GetNativeViewId() const { |
240 return reinterpret_cast<gfx::NativeViewId>( | 240 return reinterpret_cast<gfx::NativeViewId>( |
241 const_cast<RenderWidgetHostViewAndroid*>(this)); | 241 const_cast<RenderWidgetHostViewAndroid*>(this)); |
242 } | 242 } |
243 | 243 |
244 gfx::NativeViewAccessible | 244 gfx::NativeViewAccessible |
245 RenderWidgetHostViewAndroid::GetNativeViewAccessible() { | 245 RenderWidgetHostViewAndroid::GetNativeViewAccessible() { |
246 NOTIMPLEMENTED(); | 246 NOTIMPLEMENTED(); |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
787 // RenderWidgetHostView, public: | 787 // RenderWidgetHostView, public: |
788 | 788 |
789 // static | 789 // static |
790 RenderWidgetHostView* | 790 RenderWidgetHostView* |
791 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { | 791 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { |
792 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); | 792 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); |
793 return new RenderWidgetHostViewAndroid(rwhi, NULL); | 793 return new RenderWidgetHostViewAndroid(rwhi, NULL); |
794 } | 794 } |
795 | 795 |
796 } // namespace content | 796 } // namespace content |
OLD | NEW |