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

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: Addressed review comments from sky. Created 6 years, 7 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 29 matching lines...) Expand all
40 namespace gfx { 40 namespace gfx {
41 class Canvas; 41 class Canvas;
42 class Point; 42 class Point;
43 class Rect; 43 class Rect;
44 } 44 }
45 45
46 namespace ui { 46 namespace ui {
47 class Accelerator; 47 class Accelerator;
48 class Compositor; 48 class Compositor;
49 class DefaultThemeProvider; 49 class DefaultThemeProvider;
50 class InputMethod;
50 class Layer; 51 class Layer;
51 class NativeTheme; 52 class NativeTheme;
52 class OSExchangeData; 53 class OSExchangeData;
53 class ThemeProvider; 54 class ThemeProvider;
54 } 55 }
55 56
56 namespace views { 57 namespace views {
57 58
58 class DesktopWindowTreeHost; 59 class DesktopWindowTreeHost;
59 class InputMethod; 60 class InputMethod;
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 // Returns the FocusManager for this widget. 535 // Returns the FocusManager for this widget.
535 // Note that all widgets in a widget hierarchy share the same focus manager. 536 // Note that all widgets in a widget hierarchy share the same focus manager.
536 FocusManager* GetFocusManager(); 537 FocusManager* GetFocusManager();
537 const FocusManager* GetFocusManager() const; 538 const FocusManager* GetFocusManager() const;
538 539
539 // Returns the InputMethod for this widget. 540 // Returns the InputMethod for this widget.
540 // Note that all widgets in a widget hierarchy share the same input method. 541 // Note that all widgets in a widget hierarchy share the same input method.
541 InputMethod* GetInputMethod(); 542 InputMethod* GetInputMethod();
542 const InputMethod* GetInputMethod() const; 543 const InputMethod* GetInputMethod() const;
543 544
545 // Returns the ui::InputMethod for this widget.
546 // TODO(yukishiino): Rename this method to GetInputMethod once we remove
547 // views::InputMethod.
548 ui::InputMethod* GetHostInputMethod();
549
544 // Starts a drag operation for the specified view. This blocks until the drag 550 // Starts a drag operation for the specified view. This blocks until the drag
545 // operation completes. |view| can be NULL. 551 // operation completes. |view| can be NULL.
546 // If the view is non-NULL it can be accessed during the drag by calling 552 // If the view is non-NULL it can be accessed during the drag by calling
547 // dragged_view(). If the view has not been deleted during the drag, 553 // dragged_view(). If the view has not been deleted during the drag,
548 // OnDragDone() is called on it. |location| is in the widget's coordinate 554 // OnDragDone() is called on it. |location| is in the widget's coordinate
549 // system. 555 // system.
550 void RunShellDrag(View* view, 556 void RunShellDrag(View* view,
551 const ui::OSExchangeData& data, 557 const ui::OSExchangeData& data,
552 const gfx::Point& location, 558 const gfx::Point& location,
553 int operation, 559 int operation,
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 bool movement_disabled_; 919 bool movement_disabled_;
914 920
915 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 921 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
916 922
917 DISALLOW_COPY_AND_ASSIGN(Widget); 923 DISALLOW_COPY_AND_ASSIGN(Widget);
918 }; 924 };
919 925
920 } // namespace views 926 } // namespace views
921 927
922 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 928 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698