| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 bool IsAccessibleWidget() const; | 218 bool IsAccessibleWidget() const; |
| 218 | 219 |
| 219 // Returns the ThemeProvider that provides theme resources for this Widget. | 220 // Returns the ThemeProvider that provides theme resources for this Widget. |
| 220 virtual ThemeProvider* GetThemeProvider() const; | 221 virtual ThemeProvider* GetThemeProvider() const; |
| 221 | 222 |
| 222 // Returns the FocusManager for this widget. | 223 // Returns the FocusManager for this widget. |
| 223 // Note that all widgets in a widget hierarchy share the same focus manager. | 224 // Note that all widgets in a widget hierarchy share the same focus manager. |
| 224 // TODO(beng): remove virtual. | 225 // TODO(beng): remove virtual. |
| 225 virtual FocusManager* GetFocusManager(); | 226 virtual FocusManager* GetFocusManager(); |
| 226 | 227 |
| 228 // Returns the InputMethod for this widget. |
| 229 // Note that all widgets in a widget hierarchy share the same input method. |
| 230 InputMethod* GetInputMethod(); |
| 231 |
| 227 // Returns true if the native view |native_view| is contained in the | 232 // Returns true if the native view |native_view| is contained in the |
| 228 // views::View hierarchy rooted at this widget. | 233 // views::View hierarchy rooted at this widget. |
| 229 // TODO(beng): const. | 234 // TODO(beng): const. |
| 230 bool ContainsNativeView(gfx::NativeView native_view); | 235 bool ContainsNativeView(gfx::NativeView native_view); |
| 231 | 236 |
| 232 // Starts a drag operation for the specified view. This blocks until the drag | 237 // Starts a drag operation for the specified view. This blocks until the drag |
| 233 // operation completes. |view| can be NULL. | 238 // operation completes. |view| can be NULL. |
| 234 // If the view is non-NULL it can be accessed during the drag by calling | 239 // If the view is non-NULL it can be accessed during the drag by calling |
| 235 // dragged_view(). If the view has not been deleted during the drag, | 240 // dragged_view(). If the view has not been deleted during the drag, |
| 236 // OnDragDone() is called on it. | 241 // OnDragDone() is called on it. |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 | 364 |
| 360 // The compositor for accelerated drawing. | 365 // The compositor for accelerated drawing. |
| 361 scoped_refptr<ui::Compositor> compositor_; | 366 scoped_refptr<ui::Compositor> compositor_; |
| 362 | 367 |
| 363 DISALLOW_COPY_AND_ASSIGN(Widget); | 368 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 364 }; | 369 }; |
| 365 | 370 |
| 366 } // namespace views | 371 } // namespace views |
| 367 | 372 |
| 368 #endif // VIEWS_WIDGET_WIDGET_H_ | 373 #endif // VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |