| 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 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 } | 768 } |
| 769 | 769 |
| 770 if (!content_view_core_) | 770 if (!content_view_core_) |
| 771 return; | 771 return; |
| 772 | 772 |
| 773 content_view_core_->UpdateImeAdapter( | 773 content_view_core_->UpdateImeAdapter( |
| 774 GetNativeImeAdapter(), | 774 GetNativeImeAdapter(), |
| 775 static_cast<int>(params.type), params.flags, | 775 static_cast<int>(params.type), params.flags, |
| 776 params.value, params.selection_start, params.selection_end, | 776 params.value, params.selection_start, params.selection_end, |
| 777 params.composition_start, params.composition_end, | 777 params.composition_start, params.composition_end, |
| 778 params.show_ime_if_needed, params.is_non_ime_change, | 778 params.show_ime_if_needed, params.is_non_ime_change); |
| 779 params.batch_edit); | |
| 780 } | 779 } |
| 781 | 780 |
| 782 void RenderWidgetHostViewAndroid::UpdateBackgroundColor(SkColor color) { | 781 void RenderWidgetHostViewAndroid::UpdateBackgroundColor(SkColor color) { |
| 783 if (cached_background_color_ == color) | 782 if (cached_background_color_ == color) |
| 784 return; | 783 return; |
| 785 | 784 |
| 786 cached_background_color_ = color; | 785 cached_background_color_ = color; |
| 787 | 786 |
| 788 if (delegated_frame_host_) | 787 if (delegated_frame_host_) |
| 789 delegated_frame_host_->UpdateBackgroundColor(color); | 788 delegated_frame_host_->UpdateBackgroundColor(color); |
| (...skipping 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1984 case ui::MotionEvent::ACTION_UP: | 1983 case ui::MotionEvent::ACTION_UP: |
| 1985 case ui::MotionEvent::ACTION_POINTER_UP: | 1984 case ui::MotionEvent::ACTION_POINTER_UP: |
| 1986 UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.TOUCH_RELEASED", | 1985 UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.TOUCH_RELEASED", |
| 1987 delta.InMicroseconds(), 1, 1000000, 50); | 1986 delta.InMicroseconds(), 1, 1000000, 50); |
| 1988 default: | 1987 default: |
| 1989 return; | 1988 return; |
| 1990 } | 1989 } |
| 1991 } | 1990 } |
| 1992 | 1991 |
| 1993 } // namespace content | 1992 } // namespace content |
| OLD | NEW |