| 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 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 void RenderWidgetHostViewAndroid::ImeCompositionRangeChanged( | 760 void RenderWidgetHostViewAndroid::ImeCompositionRangeChanged( |
| 761 const gfx::Range& range, | 761 const gfx::Range& range, |
| 762 const std::vector<gfx::Rect>& character_bounds) { | 762 const std::vector<gfx::Rect>& character_bounds) { |
| 763 std::vector<gfx::RectF> character_bounds_float; | 763 std::vector<gfx::RectF> character_bounds_float; |
| 764 for (const gfx::Rect& rect : character_bounds) { | 764 for (const gfx::Rect& rect : character_bounds) { |
| 765 character_bounds_float.emplace_back(rect); | 765 character_bounds_float.emplace_back(rect); |
| 766 } | 766 } |
| 767 ime_adapter_android_.SetCharacterBounds(character_bounds_float); | 767 ime_adapter_android_.SetCharacterBounds(character_bounds_float); |
| 768 } | 768 } |
| 769 | 769 |
| 770 void RenderWidgetHostViewAndroid::FocusedNodeChanged(bool is_editable_node) { | 770 void RenderWidgetHostViewAndroid::FocusedNodeChanged( |
| 771 bool is_editable_node, |
| 772 const gfx::Rect& node_bounds_in_screen) { |
| 771 ime_adapter_android_.FocusedNodeChanged(is_editable_node); | 773 ime_adapter_android_.FocusedNodeChanged(is_editable_node); |
| 772 } | 774 } |
| 773 | 775 |
| 774 void RenderWidgetHostViewAndroid::RenderProcessGone( | 776 void RenderWidgetHostViewAndroid::RenderProcessGone( |
| 775 base::TerminationStatus status, int error_code) { | 777 base::TerminationStatus status, int error_code) { |
| 776 Destroy(); | 778 Destroy(); |
| 777 } | 779 } |
| 778 | 780 |
| 779 void RenderWidgetHostViewAndroid::Destroy() { | 781 void RenderWidgetHostViewAndroid::Destroy() { |
| 780 host_->ViewDestroyed(); | 782 host_->ViewDestroyed(); |
| (...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1887 case ui::MotionEvent::ACTION_UP: | 1889 case ui::MotionEvent::ACTION_UP: |
| 1888 case ui::MotionEvent::ACTION_POINTER_UP: | 1890 case ui::MotionEvent::ACTION_POINTER_UP: |
| 1889 UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.TOUCH_RELEASED", | 1891 UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.TOUCH_RELEASED", |
| 1890 delta.InMicroseconds(), 1, 1000000, 50); | 1892 delta.InMicroseconds(), 1, 1000000, 50); |
| 1891 default: | 1893 default: |
| 1892 return; | 1894 return; |
| 1893 } | 1895 } |
| 1894 } | 1896 } |
| 1895 | 1897 |
| 1896 } // namespace content | 1898 } // namespace content |
| OLD | NEW |