Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(597)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 1914603002: Replace ViewHostMsg_TextInputState_Params with content::TextInputState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing Comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 void RenderWidgetHostViewAndroid::SetIsLoading(bool is_loading) { 650 void RenderWidgetHostViewAndroid::SetIsLoading(bool is_loading) {
651 // Do nothing. The UI notification is handled through ContentViewClient which 651 // Do nothing. The UI notification is handled through ContentViewClient which
652 // is TabContentsDelegate. 652 // is TabContentsDelegate.
653 } 653 }
654 654
655 long RenderWidgetHostViewAndroid::GetNativeImeAdapter() { 655 long RenderWidgetHostViewAndroid::GetNativeImeAdapter() {
656 return reinterpret_cast<intptr_t>(&ime_adapter_android_); 656 return reinterpret_cast<intptr_t>(&ime_adapter_android_);
657 } 657 }
658 658
659 void RenderWidgetHostViewAndroid::TextInputStateChanged( 659 void RenderWidgetHostViewAndroid::TextInputStateChanged(
660 const ViewHostMsg_TextInputState_Params& params) { 660 const TextInputState& params) {
661 if (params.is_non_ime_change) { 661 if (params.is_non_ime_change) {
662 // Sends an acknowledgement to the renderer of a processed IME event. 662 // Sends an acknowledgement to the renderer of a processed IME event.
663 host_->Send(new InputMsg_ImeEventAck(host_->GetRoutingID())); 663 host_->Send(new InputMsg_ImeEventAck(host_->GetRoutingID()));
664 } 664 }
665 665
666 if (!content_view_core_) 666 if (!content_view_core_)
667 return; 667 return;
668 668
669 content_view_core_->UpdateImeAdapter( 669 content_view_core_->UpdateImeAdapter(
670 GetNativeImeAdapter(), 670 GetNativeImeAdapter(),
(...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after
2020 results->orientationAngle = display.RotationAsDegree(); 2020 results->orientationAngle = display.RotationAsDegree();
2021 results->orientationType = 2021 results->orientationType =
2022 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); 2022 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display);
2023 gfx::DeviceDisplayInfo info; 2023 gfx::DeviceDisplayInfo info;
2024 results->depth = info.GetBitsPerPixel(); 2024 results->depth = info.GetBitsPerPixel();
2025 results->depthPerComponent = info.GetBitsPerComponent(); 2025 results->depthPerComponent = info.GetBitsPerComponent();
2026 results->isMonochrome = (results->depthPerComponent == 0); 2026 results->isMonochrome = (results->depthPerComponent == 0);
2027 } 2027 }
2028 2028
2029 } // namespace content 2029 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698