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/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
488 return 0.f; | 488 return 0.f; |
489 | 489 |
490 return content_view_core_->GetOverdrawBottomHeightDip(); | 490 return content_view_core_->GetOverdrawBottomHeightDip(); |
491 } | 491 } |
492 | 492 |
493 void RenderWidgetHostViewAndroid::UpdateCursor(const WebCursor& cursor) { | 493 void RenderWidgetHostViewAndroid::UpdateCursor(const WebCursor& cursor) { |
494 // There are no cursors on Android. | 494 // There are no cursors on Android. |
495 } | 495 } |
496 | 496 |
497 void RenderWidgetHostViewAndroid::SetIsLoading(bool is_loading) { | 497 void RenderWidgetHostViewAndroid::SetIsLoading(bool is_loading) { |
498 // Do nothing. The UI notification is handled through ContentViewClient which | 498 if (is_loading) |
499 // is TabContentsDelegate. | 499 FocusedNodeChanged(false); |
jdduke (slow)
2014/07/28 14:43:05
I'm not sure this is the right solution, and I don
| |
500 } | 500 } |
501 | 501 |
502 long RenderWidgetHostViewAndroid::GetNativeImeAdapter() { | 502 long RenderWidgetHostViewAndroid::GetNativeImeAdapter() { |
503 return reinterpret_cast<intptr_t>(&ime_adapter_android_); | 503 return reinterpret_cast<intptr_t>(&ime_adapter_android_); |
504 } | 504 } |
505 | 505 |
506 void RenderWidgetHostViewAndroid::TextInputStateChanged( | 506 void RenderWidgetHostViewAndroid::TextInputStateChanged( |
507 const ViewHostMsg_TextInputState_Params& params) { | 507 const ViewHostMsg_TextInputState_Params& params) { |
508 // If the change is not originated from IME (e.g. Javascript, autofill), | 508 // If the change is not originated from IME (e.g. Javascript, autofill), |
509 // send back the renderer an acknowledgement, regardless of how we exit from | 509 // send back the renderer an acknowledgement, regardless of how we exit from |
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1634 results->orientationAngle = display.RotationAsDegree(); | 1634 results->orientationAngle = display.RotationAsDegree(); |
1635 results->orientationType = | 1635 results->orientationType = |
1636 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); | 1636 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); |
1637 gfx::DeviceDisplayInfo info; | 1637 gfx::DeviceDisplayInfo info; |
1638 results->depth = info.GetBitsPerPixel(); | 1638 results->depth = info.GetBitsPerPixel(); |
1639 results->depthPerComponent = info.GetBitsPerComponent(); | 1639 results->depthPerComponent = info.GetBitsPerComponent(); |
1640 results->isMonochrome = (results->depthPerComponent == 0); | 1640 results->isMonochrome = (results->depthPerComponent == 0); |
1641 } | 1641 } |
1642 | 1642 |
1643 } // namespace content | 1643 } // namespace content |
OLD | NEW |