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

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: Reset the text input client in FocusController. 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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 // Returns the FocusManager for this widget. 532 // Returns the FocusManager for this widget.
532 // Note that all widgets in a widget hierarchy share the same focus manager. 533 // Note that all widgets in a widget hierarchy share the same focus manager.
533 FocusManager* GetFocusManager(); 534 FocusManager* GetFocusManager();
534 const FocusManager* GetFocusManager() const; 535 const FocusManager* GetFocusManager() const;
535 536
536 // Returns the InputMethod for this widget. 537 // Returns the InputMethod for this widget.
537 // Note that all widgets in a widget hierarchy share the same input method. 538 // Note that all widgets in a widget hierarchy share the same input method.
538 InputMethod* GetInputMethod(); 539 InputMethod* GetInputMethod();
539 const InputMethod* GetInputMethod() const; 540 const InputMethod* GetInputMethod() const;
540 541
542 // Returns the ui::InputMethod for this widget.
543 // TODO(yukishiino): Rename this method to GetInputMethod once we remove
544 // views::InputMethod.
545 ui::InputMethod* GetHostInputMethod();
546
541 // Starts a drag operation for the specified view. This blocks until the drag 547 // Starts a drag operation for the specified view. This blocks until the drag
542 // operation completes. |view| can be NULL. 548 // operation completes. |view| can be NULL.
543 // If the view is non-NULL it can be accessed during the drag by calling 549 // If the view is non-NULL it can be accessed during the drag by calling
544 // dragged_view(). If the view has not been deleted during the drag, 550 // dragged_view(). If the view has not been deleted during the drag,
545 // OnDragDone() is called on it. |location| is in the widget's coordinate 551 // OnDragDone() is called on it. |location| is in the widget's coordinate
546 // system. 552 // system.
547 void RunShellDrag(View* view, 553 void RunShellDrag(View* view,
548 const ui::OSExchangeData& data, 554 const ui::OSExchangeData& data,
549 const gfx::Point& location, 555 const gfx::Point& location,
550 int operation, 556 int operation,
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 // True when window movement via mouse interaction with the frame should be 911 // True when window movement via mouse interaction with the frame should be
906 // disabled. 912 // disabled.
907 bool movement_disabled_; 913 bool movement_disabled_;
908 914
909 DISALLOW_COPY_AND_ASSIGN(Widget); 915 DISALLOW_COPY_AND_ASSIGN(Widget);
910 }; 916 };
911 917
912 } // namespace views 918 } // namespace views
913 919
914 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 920 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698