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/android/build_info.h" | 9 #include "base/android/build_info.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 // this method. | 731 // this method. |
732 base::ScopedClosureRunner ack_caller; | 732 base::ScopedClosureRunner ack_caller; |
733 if (params.is_non_ime_change) | 733 if (params.is_non_ime_change) |
734 ack_caller.Reset(base::Bind(&SendImeEventAck, host_)); | 734 ack_caller.Reset(base::Bind(&SendImeEventAck, host_)); |
735 | 735 |
736 if (!IsShowing()) | 736 if (!IsShowing()) |
737 return; | 737 return; |
738 | 738 |
739 content_view_core_->UpdateImeAdapter( | 739 content_view_core_->UpdateImeAdapter( |
740 GetNativeImeAdapter(), | 740 GetNativeImeAdapter(), |
741 static_cast<int>(params.type), params.flags, | 741 static_cast<int>(params.type), params.mode, params.flags, |
742 params.value, params.selection_start, params.selection_end, | 742 params.value, params.selection_start, params.selection_end, |
743 params.composition_start, params.composition_end, | 743 params.composition_start, params.composition_end, |
744 params.show_ime_if_needed, params.is_non_ime_change); | 744 params.show_ime_if_needed, params.is_non_ime_change); |
745 } | 745 } |
746 | 746 |
747 void RenderWidgetHostViewAndroid::OnDidChangeBodyBackgroundColor( | 747 void RenderWidgetHostViewAndroid::OnDidChangeBodyBackgroundColor( |
748 SkColor color) { | 748 SkColor color) { |
749 if (cached_background_color_ == color) | 749 if (cached_background_color_ == color) |
750 return; | 750 return; |
751 | 751 |
(...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1898 results->orientationAngle = display.RotationAsDegree(); | 1898 results->orientationAngle = display.RotationAsDegree(); |
1899 results->orientationType = | 1899 results->orientationType = |
1900 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); | 1900 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); |
1901 gfx::DeviceDisplayInfo info; | 1901 gfx::DeviceDisplayInfo info; |
1902 results->depth = info.GetBitsPerPixel(); | 1902 results->depth = info.GetBitsPerPixel(); |
1903 results->depthPerComponent = info.GetBitsPerComponent(); | 1903 results->depthPerComponent = info.GetBitsPerComponent(); |
1904 results->isMonochrome = (results->depthPerComponent == 0); | 1904 results->isMonochrome = (results->depthPerComponent == 0); |
1905 } | 1905 } |
1906 | 1906 |
1907 } // namespace content | 1907 } // namespace content |
OLD | NEW |