| OLD | NEW |
| 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 Loading... |
| 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 bool IsAccessibleWidget() const; | 213 bool IsAccessibleWidget() const; |
| 213 | 214 |
| 214 // Returns the ThemeProvider that provides theme resources for this Widget. | 215 // Returns the ThemeProvider that provides theme resources for this Widget. |
| 215 virtual ThemeProvider* GetThemeProvider() const; | 216 virtual ThemeProvider* GetThemeProvider() const; |
| 216 | 217 |
| 217 // Returns the FocusManager for this widget. | 218 // Returns the FocusManager for this widget. |
| 218 // Note that all widgets in a widget hierarchy share the same focus manager. | 219 // Note that all widgets in a widget hierarchy share the same focus manager. |
| 219 // TODO(beng): remove virtual. | 220 // TODO(beng): remove virtual. |
| 220 virtual FocusManager* GetFocusManager(); | 221 virtual FocusManager* GetFocusManager(); |
| 221 | 222 |
| 223 // Returns the InputMethod for this widget. |
| 224 // Note that all widgets in a widget hierarchy share the same input method. |
| 225 InputMethod* GetInputMethod() const; |
| 226 |
| 222 // Returns true if the native view |native_view| is contained in the | 227 // Returns true if the native view |native_view| is contained in the |
| 223 // views::View hierarchy rooted at this widget. | 228 // views::View hierarchy rooted at this widget. |
| 224 // TODO(beng): const. | 229 // TODO(beng): const. |
| 225 bool ContainsNativeView(gfx::NativeView native_view); | 230 bool ContainsNativeView(gfx::NativeView native_view); |
| 226 | 231 |
| 227 // Starts a drag operation for the specified view. This blocks until the drag | 232 // Starts a drag operation for the specified view. This blocks until the drag |
| 228 // operation completes. |view| can be NULL. | 233 // operation completes. |view| can be NULL. |
| 229 // If the view is non-NULL it can be accessed during the drag by calling | 234 // If the view is non-NULL it can be accessed during the drag by calling |
| 230 // dragged_view(). If the view has not been deleted during the drag, | 235 // dragged_view(). If the view has not been deleted during the drag, |
| 231 // OnDragDone() is called on it. | 236 // OnDragDone() is called on it. |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 | 343 |
| 339 // The compositor for accelerated drawing. | 344 // The compositor for accelerated drawing. |
| 340 scoped_refptr<ui::Compositor> compositor_; | 345 scoped_refptr<ui::Compositor> compositor_; |
| 341 | 346 |
| 342 DISALLOW_COPY_AND_ASSIGN(Widget); | 347 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 343 }; | 348 }; |
| 344 | 349 |
| 345 } // namespace views | 350 } // namespace views |
| 346 | 351 |
| 347 #endif // VIEWS_WIDGET_WIDGET_H_ | 352 #endif // VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |