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 #ifndef UI_VIEWS_WIDGET_WIDGET_H_ | 5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_ |
6 #define UI_VIEWS_WIDGET_WIDGET_H_ | 6 #define UI_VIEWS_WIDGET_WIDGET_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <stack> | 9 #include <stack> |
10 #include <vector> | 10 #include <vector> |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 return const_cast<ui::NativeTheme*>( | 560 return const_cast<ui::NativeTheme*>( |
561 const_cast<const Widget*>(this)->GetNativeTheme()); | 561 const_cast<const Widget*>(this)->GetNativeTheme()); |
562 } | 562 } |
563 const ui::NativeTheme* GetNativeTheme() const; | 563 const ui::NativeTheme* GetNativeTheme() const; |
564 | 564 |
565 // Returns the FocusManager for this widget. | 565 // Returns the FocusManager for this widget. |
566 // Note that all widgets in a widget hierarchy share the same focus manager. | 566 // Note that all widgets in a widget hierarchy share the same focus manager. |
567 FocusManager* GetFocusManager(); | 567 FocusManager* GetFocusManager(); |
568 const FocusManager* GetFocusManager() const; | 568 const FocusManager* GetFocusManager() const; |
569 | 569 |
| 570 // Returns the focused text input client within this widget. |
| 571 ui::TextInputClient* GetFocusedTextInputClient(); |
| 572 |
570 // Returns the InputMethod for this widget. | 573 // Returns the InputMethod for this widget. |
571 // Note that all widgets in a widget hierarchy share the same input method. | 574 // Note that all widgets in a widget hierarchy share the same input method. |
572 InputMethod* GetInputMethod(); | 575 InputMethod* GetInputMethod(); |
573 const InputMethod* GetInputMethod() const; | 576 const InputMethod* GetInputMethod() const; |
574 | 577 |
575 // Returns the ui::InputMethod for this widget. | 578 // Returns the ui::InputMethod for this widget. |
576 // TODO(yukishiino): Rename this method to GetInputMethod once we remove | 579 // TODO(yukishiino): Rename this method to GetInputMethod once we remove |
577 // views::InputMethod. | 580 // views::InputMethod. |
578 ui::InputMethod* GetHostInputMethod(); | 581 ui::InputMethod* GetHostInputMethod(); |
579 | 582 |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
977 bool movement_disabled_; | 980 bool movement_disabled_; |
978 | 981 |
979 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; | 982 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; |
980 | 983 |
981 DISALLOW_COPY_AND_ASSIGN(Widget); | 984 DISALLOW_COPY_AND_ASSIGN(Widget); |
982 }; | 985 }; |
983 | 986 |
984 } // namespace views | 987 } // namespace views |
985 | 988 |
986 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 989 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |