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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 return true; | 235 return true; |
236 } | 236 } |
237 | 237 |
238 bool RenderWidgetHostViewAndroid::HasValidFrame() const { | 238 bool RenderWidgetHostViewAndroid::HasValidFrame() const { |
239 return texture_id_in_layer_ != 0 && | 239 return texture_id_in_layer_ != 0 && |
240 content_view_core_ && | 240 content_view_core_ && |
241 !texture_size_in_layer_.IsEmpty(); | 241 !texture_size_in_layer_.IsEmpty(); |
242 } | 242 } |
243 | 243 |
244 gfx::NativeView RenderWidgetHostViewAndroid::GetNativeView() const { | 244 gfx::NativeView RenderWidgetHostViewAndroid::GetNativeView() const { |
245 return content_view_core_; | 245 return content_view_core_->GetViewAndroid(); |
246 } | 246 } |
247 | 247 |
248 gfx::NativeViewId RenderWidgetHostViewAndroid::GetNativeViewId() const { | 248 gfx::NativeViewId RenderWidgetHostViewAndroid::GetNativeViewId() const { |
249 return reinterpret_cast<gfx::NativeViewId>( | 249 return reinterpret_cast<gfx::NativeViewId>( |
250 const_cast<RenderWidgetHostViewAndroid*>(this)); | 250 const_cast<RenderWidgetHostViewAndroid*>(this)); |
251 } | 251 } |
252 | 252 |
253 gfx::NativeViewAccessible | 253 gfx::NativeViewAccessible |
254 RenderWidgetHostViewAndroid::GetNativeViewAccessible() { | 254 RenderWidgetHostViewAndroid::GetNativeViewAccessible() { |
255 NOTIMPLEMENTED(); | 255 NOTIMPLEMENTED(); |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
798 // RenderWidgetHostView, public: | 798 // RenderWidgetHostView, public: |
799 | 799 |
800 // static | 800 // static |
801 RenderWidgetHostView* | 801 RenderWidgetHostView* |
802 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { | 802 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { |
803 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); | 803 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); |
804 return new RenderWidgetHostViewAndroid(rwhi, NULL); | 804 return new RenderWidgetHostViewAndroid(rwhi, NULL); |
805 } | 805 } |
806 | 806 |
807 } // namespace content | 807 } // namespace content |
OLD | NEW |