| OLD | NEW |
| 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 27 matching lines...) Expand all Loading... |
| 38 namespace gfx { | 38 namespace gfx { |
| 39 class Canvas; | 39 class Canvas; |
| 40 class Point; | 40 class Point; |
| 41 class Rect; | 41 class Rect; |
| 42 } | 42 } |
| 43 | 43 |
| 44 namespace ui { | 44 namespace ui { |
| 45 class Accelerator; | 45 class Accelerator; |
| 46 class Compositor; | 46 class Compositor; |
| 47 class Layer; | 47 class Layer; |
| 48 class NativeTheme; |
| 48 class OSExchangeData; | 49 class OSExchangeData; |
| 49 class ThemeProvider; | 50 class ThemeProvider; |
| 50 } | 51 } |
| 51 | 52 |
| 52 namespace views { | 53 namespace views { |
| 53 | 54 |
| 54 class DefaultThemeProvider; | 55 class DefaultThemeProvider; |
| 55 class DesktopRootWindowHost; | 56 class DesktopRootWindowHost; |
| 56 class InputMethod; | 57 class InputMethod; |
| 57 class NativeWidget; | 58 class NativeWidget; |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 | 425 |
| 425 // Returns whether the Widget is visible to the user. | 426 // Returns whether the Widget is visible to the user. |
| 426 virtual bool IsVisible() const; | 427 virtual bool IsVisible() const; |
| 427 | 428 |
| 428 // Returns whether the Widget is customized for accessibility. | 429 // Returns whether the Widget is customized for accessibility. |
| 429 bool IsAccessibleWidget() const; | 430 bool IsAccessibleWidget() const; |
| 430 | 431 |
| 431 // Returns the ThemeProvider that provides theme resources for this Widget. | 432 // Returns the ThemeProvider that provides theme resources for this Widget. |
| 432 virtual ui::ThemeProvider* GetThemeProvider() const; | 433 virtual ui::ThemeProvider* GetThemeProvider() const; |
| 433 | 434 |
| 435 ui::NativeTheme* GetNativeTheme(); |
| 436 |
| 434 // Returns the FocusManager for this widget. | 437 // Returns the FocusManager for this widget. |
| 435 // Note that all widgets in a widget hierarchy share the same focus manager. | 438 // Note that all widgets in a widget hierarchy share the same focus manager. |
| 436 FocusManager* GetFocusManager(); | 439 FocusManager* GetFocusManager(); |
| 437 const FocusManager* GetFocusManager() const; | 440 const FocusManager* GetFocusManager() const; |
| 438 | 441 |
| 439 // Returns the InputMethod for this widget. | 442 // Returns the InputMethod for this widget. |
| 440 // Note that all widgets in a widget hierarchy share the same input method. | 443 // Note that all widgets in a widget hierarchy share the same input method. |
| 441 InputMethod* GetInputMethod(); | 444 InputMethod* GetInputMethod(); |
| 442 | 445 |
| 443 // Starts a drag operation for the specified view. This blocks until the drag | 446 // Starts a drag operation for the specified view. This blocks until the drag |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 799 | 802 |
| 800 // Is |root_layers_| out of date? | 803 // Is |root_layers_| out of date? |
| 801 bool root_layers_dirty_; | 804 bool root_layers_dirty_; |
| 802 | 805 |
| 803 DISALLOW_COPY_AND_ASSIGN(Widget); | 806 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 804 }; | 807 }; |
| 805 | 808 |
| 806 } // namespace views | 809 } // namespace views |
| 807 | 810 |
| 808 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 811 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |