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

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

Issue 173803002: Redesigns the text input focus handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced. 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
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/widget.h » ('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_NATIVE_WIDGET_PRIVATE_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "ui/base/ui_base_types.h" 9 #include "ui/base/ui_base_types.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
11 #include "ui/views/ime/input_method_delegate.h"
12 #include "ui/views/widget/native_widget.h" 11 #include "ui/views/widget/native_widget.h"
13 12
14 namespace gfx { 13 namespace gfx {
15 class FontList; 14 class FontList;
16 class ImageSkia; 15 class ImageSkia;
17 class Rect; 16 class Rect;
18 } 17 }
19 18
20 namespace ui { 19 namespace ui {
20 class InputMethod;
21 class NativeTheme; 21 class NativeTheme;
22 class OSExchangeData; 22 class OSExchangeData;
23 } 23 }
24 24
25 namespace views { 25 namespace views {
26 class InputMethod; 26 class InputMethod;
27 class InputMethodDelegate;
27 class TooltipManager; 28 class TooltipManager;
28 namespace internal { 29 namespace internal {
29 30
30 //////////////////////////////////////////////////////////////////////////////// 31 ////////////////////////////////////////////////////////////////////////////////
31 // NativeWidgetPrivate interface 32 // NativeWidgetPrivate interface
32 // 33 //
33 // A NativeWidget subclass internal to views that provides Widget a conduit for 34 // A NativeWidget subclass internal to views that provides Widget a conduit for
34 // communication with a backend-specific native widget implementation. 35 // communication with a backend-specific native widget implementation.
35 // 36 //
36 // Many of the methods here are pass-thrus for Widget, and as such there is no 37 // Many of the methods here are pass-thrus for Widget, and as such there is no
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 139
139 // Returns the InputMethod for this native widget. 140 // Returns the InputMethod for this native widget.
140 // Note that all widgets in a widget hierarchy share the same input method. 141 // Note that all widgets in a widget hierarchy share the same input method.
141 // TODO(suzhe): rename to GetInputMethod() when NativeWidget implementation 142 // TODO(suzhe): rename to GetInputMethod() when NativeWidget implementation
142 // class doesn't inherit Widget anymore. 143 // class doesn't inherit Widget anymore.
143 virtual InputMethod* CreateInputMethod() = 0; 144 virtual InputMethod* CreateInputMethod() = 0;
144 145
145 // Returns the InputMethodDelegate for this native widget. 146 // Returns the InputMethodDelegate for this native widget.
146 virtual InputMethodDelegate* GetInputMethodDelegate() = 0; 147 virtual InputMethodDelegate* GetInputMethodDelegate() = 0;
147 148
149 // Returns the ui::InputMethod for this native widget.
150 // TODO(yukishiino): Rename this method to GetInputMethod once we remove
151 // views::InputMethod.
152 virtual ui::InputMethod* GetHostInputMethod() = 0;
148 153
149 // Centers the window and sizes it to the specified size. 154 // Centers the window and sizes it to the specified size.
150 virtual void CenterWindow(const gfx::Size& size) = 0; 155 virtual void CenterWindow(const gfx::Size& size) = 0;
151 156
152 // Retrieves the window's current restored bounds and "show" state, for 157 // Retrieves the window's current restored bounds and "show" state, for
153 // persisting. 158 // persisting.
154 virtual void GetWindowPlacement( 159 virtual void GetWindowPlacement(
155 gfx::Rect* bounds, 160 gfx::Rect* bounds,
156 ui::WindowShowState* show_state) const = 0; 161 ui::WindowShowState* show_state) const = 0;
157 162
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 230
226 // Overridden from NativeWidget: 231 // Overridden from NativeWidget:
227 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; 232 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE;
228 virtual ui::EventHandler* GetEventHandler() = 0; 233 virtual ui::EventHandler* GetEventHandler() = 0;
229 }; 234 };
230 235
231 } // namespace internal 236 } // namespace internal
232 } // namespace views 237 } // namespace views
233 238
234 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ 239 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698