OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEXT_INPUT_MANAGER_H__ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEXT_INPUT_MANAGER_H__ |
6 #define CONTENT_BROWSER_RENDERER_HOST_TEXT_INPUT_MANAGER_H__ | 6 #define CONTENT_BROWSER_RENDERER_HOST_TEXT_INPUT_MANAGER_H__ |
7 | 7 |
8 #include <unordered_map> | 8 #include <unordered_map> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 virtual void OnTextSelectionChanged( | 60 virtual void OnTextSelectionChanged( |
61 TextInputManager* text_input_manager, | 61 TextInputManager* text_input_manager, |
62 RenderWidgetHostViewBase* updated_view) {} | 62 RenderWidgetHostViewBase* updated_view) {} |
63 }; | 63 }; |
64 | 64 |
65 // Text selection bounds. | 65 // Text selection bounds. |
66 struct SelectionRegion { | 66 struct SelectionRegion { |
67 SelectionRegion(); | 67 SelectionRegion(); |
68 SelectionRegion(const SelectionRegion& other); | 68 SelectionRegion(const SelectionRegion& other); |
69 | 69 |
70 // The following variables are only used on Aura platforms. | |
71 // The begining of the selection region. | 70 // The begining of the selection region. |
72 gfx::SelectionBound anchor; | 71 gfx::SelectionBound anchor; |
73 // The end of the selection region (caret position). | 72 // The end of the selection region (caret position). |
74 gfx::SelectionBound focus; | 73 gfx::SelectionBound focus; |
75 | 74 |
76 // The following variables are only used on Mac platform. | 75 // The following variables are only used on Mac platform. |
77 // The current caret bounds. | 76 // The current caret bounds. |
78 gfx::Rect caret_rect; | 77 gfx::Rect caret_rect; |
79 // The current first selection bounds. | 78 // The current first selection bounds. |
80 gfx::Rect first_selection_rect; | 79 gfx::Rect first_selection_rect; |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 ViewMap<CompositionRangeInfo> composition_range_info_map_; | 228 ViewMap<CompositionRangeInfo> composition_range_info_map_; |
230 ViewMap<TextSelection> text_selection_map_; | 229 ViewMap<TextSelection> text_selection_map_; |
231 | 230 |
232 base::ObserverList<Observer> observer_list_; | 231 base::ObserverList<Observer> observer_list_; |
233 | 232 |
234 DISALLOW_COPY_AND_ASSIGN(TextInputManager); | 233 DISALLOW_COPY_AND_ASSIGN(TextInputManager); |
235 }; | 234 }; |
236 } | 235 } |
237 | 236 |
238 #endif // CONTENT_BROWSER_RENDERER_HOST_TEXT_INPUT_MANAGER_H__ | 237 #endif // CONTENT_BROWSER_RENDERER_HOST_TEXT_INPUT_MANAGER_H__ |
OLD | NEW |