Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(816)

Side by Side Diff: ui/views/widget/widget.h

Issue 860983004: text input focus: Supports Window::GetFocusedTextInputClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698