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

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

Issue 173803002: Redesigns the text input focus handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added an unittest and thread checker. Created 6 years, 8 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 | Annotate | Revision Log
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 27 matching lines...) Expand all
38 namespace gfx { 38 namespace gfx {
39 class Canvas; 39 class Canvas;
40 class Point; 40 class Point;
41 class Rect; 41 class Rect;
42 } 42 }
43 43
44 namespace ui { 44 namespace ui {
45 class Accelerator; 45 class Accelerator;
46 class Compositor; 46 class Compositor;
47 class DefaultThemeProvider; 47 class DefaultThemeProvider;
48 class InputMethod;
48 class Layer; 49 class Layer;
49 class NativeTheme; 50 class NativeTheme;
50 class OSExchangeData; 51 class OSExchangeData;
51 class ThemeProvider; 52 class ThemeProvider;
52 } 53 }
53 54
54 namespace views { 55 namespace views {
55 56
56 class DesktopWindowTreeHost; 57 class DesktopWindowTreeHost;
57 class InputMethod; 58 class InputMethod;
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 // Returns the FocusManager for this widget. 523 // Returns the FocusManager for this widget.
523 // Note that all widgets in a widget hierarchy share the same focus manager. 524 // Note that all widgets in a widget hierarchy share the same focus manager.
524 FocusManager* GetFocusManager(); 525 FocusManager* GetFocusManager();
525 const FocusManager* GetFocusManager() const; 526 const FocusManager* GetFocusManager() const;
526 527
527 // Returns the InputMethod for this widget. 528 // Returns the InputMethod for this widget.
528 // Note that all widgets in a widget hierarchy share the same input method. 529 // Note that all widgets in a widget hierarchy share the same input method.
529 InputMethod* GetInputMethod(); 530 InputMethod* GetInputMethod();
530 const InputMethod* GetInputMethod() const; 531 const InputMethod* GetInputMethod() const;
531 532
533 // Returns the ui::InputMethod for this widget.
534 // TODO(yukishiino): Rename this method to GetInputMethod once we remove
535 // views::InputMethod.
536 ui::InputMethod* GetHostInputMethod();
537
532 // Starts a drag operation for the specified view. This blocks until the drag 538 // Starts a drag operation for the specified view. This blocks until the drag
533 // operation completes. |view| can be NULL. 539 // operation completes. |view| can be NULL.
534 // If the view is non-NULL it can be accessed during the drag by calling 540 // If the view is non-NULL it can be accessed during the drag by calling
535 // dragged_view(). If the view has not been deleted during the drag, 541 // dragged_view(). If the view has not been deleted during the drag,
536 // OnDragDone() is called on it. |location| is in the widget's coordinate 542 // OnDragDone() is called on it. |location| is in the widget's coordinate
537 // system. 543 // system.
538 void RunShellDrag(View* view, 544 void RunShellDrag(View* view,
539 const ui::OSExchangeData& data, 545 const ui::OSExchangeData& data,
540 const gfx::Point& location, 546 const gfx::Point& location,
541 int operation, 547 int operation,
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 // True when window movement via mouse interaction with the frame should be 900 // True when window movement via mouse interaction with the frame should be
895 // disabled. 901 // disabled.
896 bool movement_disabled_; 902 bool movement_disabled_;
897 903
898 DISALLOW_COPY_AND_ASSIGN(Widget); 904 DISALLOW_COPY_AND_ASSIGN(Widget);
899 }; 905 };
900 906
901 } // namespace views 907 } // namespace views
902 908
903 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 909 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698