| 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 |
| 11 #include "base/observer_list.h" | 11 #include "base/observer_list.h" |
| 12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
| 14 #include "content/common/text_input_state.h" | 14 #include "content/common/text_input_state.h" |
| 15 #include "ui/gfx/geometry/rect.h" | 15 #include "ui/gfx/geometry/rect.h" |
| 16 #include "ui/gfx/range/range.h" | 16 #include "ui/gfx/range/range.h" |
| 17 #include "ui/gfx/selection_bound.h" | 17 #include "ui/gfx/selection_bound.h" |
| 18 | 18 |
| 19 struct ViewHostMsg_SelectionBounds_Params; | 19 struct ViewHostMsg_SelectionBounds_Params; |
| 20 | 20 |
| 21 namespace content { | 21 namespace content { |
| 22 | 22 |
| 23 class RenderWidgetHostImpl; | 23 class RenderWidgetHostImpl; |
| 24 class RenderWidgetHostView; | |
| 25 class RenderWidgetHostViewBase; | 24 class RenderWidgetHostViewBase; |
| 26 | 25 |
| 27 // A class which receives updates of TextInputState from multiple sources and | 26 // A class which receives updates of TextInputState from multiple sources and |
| 28 // decides what the new TextInputState is. It also notifies the observers when | 27 // decides what the new TextInputState is. It also notifies the observers when |
| 29 // text input state is updated. | 28 // text input state is updated. |
| 30 class CONTENT_EXPORT TextInputManager { | 29 class CONTENT_EXPORT TextInputManager { |
| 31 public: | 30 public: |
| 32 // The tab's top-level RWHV should be an observer of TextInputManager to get | 31 // The tab's top-level RWHV should be an observer of TextInputManager to get |
| 33 // notifications about changes in TextInputState or other IME related state | 32 // notifications about changes in TextInputState or other IME related state |
| 34 // for child frames. | 33 // for child frames. |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 ViewMap<CompositionRangeInfo> composition_range_info_map_; | 232 ViewMap<CompositionRangeInfo> composition_range_info_map_; |
| 234 ViewMap<TextSelection> text_selection_map_; | 233 ViewMap<TextSelection> text_selection_map_; |
| 235 | 234 |
| 236 base::ObserverList<Observer> observer_list_; | 235 base::ObserverList<Observer> observer_list_; |
| 237 | 236 |
| 238 DISALLOW_COPY_AND_ASSIGN(TextInputManager); | 237 DISALLOW_COPY_AND_ASSIGN(TextInputManager); |
| 239 }; | 238 }; |
| 240 } | 239 } |
| 241 | 240 |
| 242 #endif // CONTENT_BROWSER_RENDERER_HOST_TEXT_INPUT_MANAGER_H__ | 241 #endif // CONTENT_BROWSER_RENDERER_HOST_TEXT_INPUT_MANAGER_H__ |
| OLD | NEW |