| 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 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 733 // this method. | 733 // this method. |
| 734 base::ScopedClosureRunner ack_caller; | 734 base::ScopedClosureRunner ack_caller; |
| 735 if (params.is_non_ime_change) | 735 if (params.is_non_ime_change) |
| 736 ack_caller.Reset(base::Bind(&SendImeEventAck, host_)); | 736 ack_caller.Reset(base::Bind(&SendImeEventAck, host_)); |
| 737 | 737 |
| 738 if (!IsShowing()) | 738 if (!IsShowing()) |
| 739 return; | 739 return; |
| 740 | 740 |
| 741 content_view_core_->UpdateImeAdapter( | 741 content_view_core_->UpdateImeAdapter( |
| 742 GetNativeImeAdapter(), | 742 GetNativeImeAdapter(), |
| 743 static_cast<int>(params.type), params.flags, | 743 static_cast<int>(params.type), params.mode, params.flags, |
| 744 params.value, params.selection_start, params.selection_end, | 744 params.value, params.selection_start, params.selection_end, |
| 745 params.composition_start, params.composition_end, | 745 params.composition_start, params.composition_end, |
| 746 params.show_ime_if_needed, params.is_non_ime_change); | 746 params.show_ime_if_needed, params.is_non_ime_change); |
| 747 } | 747 } |
| 748 | 748 |
| 749 void RenderWidgetHostViewAndroid::OnDidChangeBodyBackgroundColor( | 749 void RenderWidgetHostViewAndroid::OnDidChangeBodyBackgroundColor( |
| 750 SkColor color) { | 750 SkColor color) { |
| 751 if (cached_background_color_ == color) | 751 if (cached_background_color_ == color) |
| 752 return; | 752 return; |
| 753 | 753 |
| (...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1922 results->orientationAngle = display.RotationAsDegree(); | 1922 results->orientationAngle = display.RotationAsDegree(); |
| 1923 results->orientationType = | 1923 results->orientationType = |
| 1924 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); | 1924 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); |
| 1925 gfx::DeviceDisplayInfo info; | 1925 gfx::DeviceDisplayInfo info; |
| 1926 results->depth = info.GetBitsPerPixel(); | 1926 results->depth = info.GetBitsPerPixel(); |
| 1927 results->depthPerComponent = info.GetBitsPerComponent(); | 1927 results->depthPerComponent = info.GetBitsPerComponent(); |
| 1928 results->isMonochrome = (results->depthPerComponent == 0); | 1928 results->isMonochrome = (results->depthPerComponent == 0); |
| 1929 } | 1929 } |
| 1930 | 1930 |
| 1931 } // namespace content | 1931 } // namespace content |
| OLD | NEW |