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