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 <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 void RenderWidgetHostViewAndroid::SetIsLoading(bool is_loading) { | 644 void RenderWidgetHostViewAndroid::SetIsLoading(bool is_loading) { |
645 // Do nothing. The UI notification is handled through ContentViewClient which | 645 // Do nothing. The UI notification is handled through ContentViewClient which |
646 // is TabContentsDelegate. | 646 // is TabContentsDelegate. |
647 } | 647 } |
648 | 648 |
649 long RenderWidgetHostViewAndroid::GetNativeImeAdapter() { | 649 long RenderWidgetHostViewAndroid::GetNativeImeAdapter() { |
650 return reinterpret_cast<intptr_t>(&ime_adapter_android_); | 650 return reinterpret_cast<intptr_t>(&ime_adapter_android_); |
651 } | 651 } |
652 | 652 |
653 void RenderWidgetHostViewAndroid::TextInputStateChanged( | 653 void RenderWidgetHostViewAndroid::TextInputStateChanged( |
654 const ViewHostMsg_TextInputState_Params& params) { | 654 const TextInputState& params) { |
655 if (params.is_non_ime_change) { | 655 if (params.is_non_ime_change) { |
656 // Sends an acknowledgement to the renderer of a processed IME event. | 656 // Sends an acknowledgement to the renderer of a processed IME event. |
657 host_->Send(new InputMsg_ImeEventAck(host_->GetRoutingID())); | 657 host_->Send(new InputMsg_ImeEventAck(host_->GetRoutingID())); |
658 } | 658 } |
659 | 659 |
660 if (!content_view_core_) | 660 if (!content_view_core_) |
661 return; | 661 return; |
662 | 662 |
663 content_view_core_->UpdateImeAdapter( | 663 content_view_core_->UpdateImeAdapter( |
664 GetNativeImeAdapter(), | 664 GetNativeImeAdapter(), |
(...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2014 results->orientationAngle = display.RotationAsDegree(); | 2014 results->orientationAngle = display.RotationAsDegree(); |
2015 results->orientationType = | 2015 results->orientationType = |
2016 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); | 2016 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); |
2017 gfx::DeviceDisplayInfo info; | 2017 gfx::DeviceDisplayInfo info; |
2018 results->depth = info.GetBitsPerPixel(); | 2018 results->depth = info.GetBitsPerPixel(); |
2019 results->depthPerComponent = info.GetBitsPerComponent(); | 2019 results->depthPerComponent = info.GetBitsPerComponent(); |
2020 results->isMonochrome = (results->depthPerComponent == 0); | 2020 results->isMonochrome = (results->depthPerComponent == 0); |
2021 } | 2021 } |
2022 | 2022 |
2023 } // namespace content | 2023 } // namespace content |
OLD | NEW |