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

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

Issue 6675005: Integrate the new input method API for Views into Chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 VIEWS_WIDGET_WIDGET_H_ 5 #ifndef VIEWS_WIDGET_WIDGET_H_
6 #define VIEWS_WIDGET_WIDGET_H_ 6 #define VIEWS_WIDGET_WIDGET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 15 matching lines...) Expand all
26 class Accelerator; 26 class Accelerator;
27 class Compositor; 27 class Compositor;
28 class OSExchangeData; 28 class OSExchangeData;
29 class ThemeProvider; 29 class ThemeProvider;
30 } 30 }
31 using ui::ThemeProvider; 31 using ui::ThemeProvider;
32 32
33 namespace views { 33 namespace views {
34 34
35 class DefaultThemeProvider; 35 class DefaultThemeProvider;
36 class InputMethod;
36 class NativeWidget; 37 class NativeWidget;
37 class RootView; 38 class RootView;
38 class TooltipManager; 39 class TooltipManager;
39 class View; 40 class View;
40 class WidgetDelegate; 41 class WidgetDelegate;
41 class Window; 42 class Window;
42 43
43 //////////////////////////////////////////////////////////////////////////////// 44 ////////////////////////////////////////////////////////////////////////////////
44 // Widget class 45 // Widget class
45 // 46 //
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 bool IsAccessibleWidget() const; 215 bool IsAccessibleWidget() const;
215 216
216 // Returns the ThemeProvider that provides theme resources for this Widget. 217 // Returns the ThemeProvider that provides theme resources for this Widget.
217 virtual ThemeProvider* GetThemeProvider() const; 218 virtual ThemeProvider* GetThemeProvider() const;
218 219
219 // Returns the FocusManager for this widget. 220 // Returns the FocusManager for this widget.
220 // Note that all widgets in a widget hierarchy share the same focus manager. 221 // Note that all widgets in a widget hierarchy share the same focus manager.
221 // TODO(beng): remove virtual. 222 // TODO(beng): remove virtual.
222 virtual FocusManager* GetFocusManager(); 223 virtual FocusManager* GetFocusManager();
223 224
225 // Returns the InputMethod for this widget.
226 // Note that all widgets in a widget hierarchy share the same input method.
227 InputMethod* GetInputMethod();
228
224 // Returns true if the native view |native_view| is contained in the 229 // Returns true if the native view |native_view| is contained in the
225 // views::View hierarchy rooted at this widget. 230 // views::View hierarchy rooted at this widget.
226 // TODO(beng): const. 231 // TODO(beng): const.
227 bool ContainsNativeView(gfx::NativeView native_view); 232 bool ContainsNativeView(gfx::NativeView native_view);
228 233
229 // Starts a drag operation for the specified view. This blocks until the drag 234 // Starts a drag operation for the specified view. This blocks until the drag
230 // operation completes. |view| can be NULL. 235 // operation completes. |view| can be NULL.
231 // If the view is non-NULL it can be accessed during the drag by calling 236 // If the view is non-NULL it can be accessed during the drag by calling
232 // dragged_view(). If the view has not been deleted during the drag, 237 // dragged_view(). If the view has not been deleted during the drag,
233 // OnDragDone() is called on it. 238 // OnDragDone() is called on it.
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 345
341 // The compositor for accelerated drawing. 346 // The compositor for accelerated drawing.
342 scoped_refptr<ui::Compositor> compositor_; 347 scoped_refptr<ui::Compositor> compositor_;
343 348
344 DISALLOW_COPY_AND_ASSIGN(Widget); 349 DISALLOW_COPY_AND_ASSIGN(Widget);
345 }; 350 };
346 351
347 } // namespace views 352 } // namespace views
348 353
349 #endif // VIEWS_WIDGET_WIDGET_H_ 354 #endif // VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698