| 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 // ContentViewCoreImpl represents the native side of the Java | 262 // ContentViewCoreImpl represents the native side of the Java |
| 263 // ContentViewCore. It being NULL means that it is not attached | 263 // ContentViewCore. It being NULL means that it is not attached |
| 264 // to the View system yet, so we treat this RWHVA as hidden. | 264 // to the View system yet, so we treat this RWHVA as hidden. |
| 265 return is_layer_attached_ && content_view_core_; | 265 return is_layer_attached_ && content_view_core_; |
| 266 } | 266 } |
| 267 | 267 |
| 268 gfx::Rect RenderWidgetHostViewAndroid::GetViewBounds() const { | 268 gfx::Rect RenderWidgetHostViewAndroid::GetViewBounds() const { |
| 269 if (!content_view_core_) | 269 if (!content_view_core_) |
| 270 return gfx::Rect(); | 270 return gfx::Rect(); |
| 271 | 271 |
| 272 return content_view_core_->GetBounds(); | 272 return gfx::Rect(content_view_core_->GetDIPSize()); |
| 273 } | 273 } |
| 274 | 274 |
| 275 void RenderWidgetHostViewAndroid::UpdateCursor(const WebCursor& cursor) { | 275 void RenderWidgetHostViewAndroid::UpdateCursor(const WebCursor& cursor) { |
| 276 // There are no cursors on Android. | 276 // There are no cursors on Android. |
| 277 } | 277 } |
| 278 | 278 |
| 279 void RenderWidgetHostViewAndroid::SetIsLoading(bool is_loading) { | 279 void RenderWidgetHostViewAndroid::SetIsLoading(bool is_loading) { |
| 280 // Do nothing. The UI notification is handled through ContentViewClient which | 280 // Do nothing. The UI notification is handled through ContentViewClient which |
| 281 // is TabContentsDelegate. | 281 // is TabContentsDelegate. |
| 282 } | 282 } |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 646 // RenderWidgetHostView, public: | 646 // RenderWidgetHostView, public: |
| 647 | 647 |
| 648 // static | 648 // static |
| 649 RenderWidgetHostView* | 649 RenderWidgetHostView* |
| 650 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { | 650 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { |
| 651 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); | 651 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); |
| 652 return new RenderWidgetHostViewAndroid(rwhi, NULL); | 652 return new RenderWidgetHostViewAndroid(rwhi, NULL); |
| 653 } | 653 } |
| 654 | 654 |
| 655 } // namespace content | 655 } // namespace content |
| OLD | NEW |