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 25 matching lines...) Expand all Loading... |
36 | 36 |
37 namespace gfx { | 37 namespace gfx { |
38 class Canvas; | 38 class Canvas; |
39 class Point; | 39 class Point; |
40 class Rect; | 40 class Rect; |
41 } | 41 } |
42 | 42 |
43 namespace ui { | 43 namespace ui { |
44 class Accelerator; | 44 class Accelerator; |
45 class Compositor; | 45 class Compositor; |
| 46 class DefaultThemeProvider; |
46 class Layer; | 47 class Layer; |
47 class NativeTheme; | 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 DesktopRootWindowHost; | 55 class DesktopRootWindowHost; |
56 class InputMethod; | 56 class InputMethod; |
57 class NativeWidget; | 57 class NativeWidget; |
58 class NonClientFrameView; | 58 class NonClientFrameView; |
59 class ScopedEvent; | 59 class ScopedEvent; |
60 class View; | 60 class View; |
61 class WidgetDelegate; | 61 class WidgetDelegate; |
62 class WidgetObserver; | 62 class WidgetObserver; |
63 | 63 |
64 namespace internal { | 64 namespace internal { |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
753 // desired implementation before calling |InitWindow()|. | 753 // desired implementation before calling |InitWindow()|. |
754 NonClientView* non_client_view_; | 754 NonClientView* non_client_view_; |
755 | 755 |
756 // The focus manager keeping track of focus for this Widget and any of its | 756 // The focus manager keeping track of focus for this Widget and any of its |
757 // children. NULL for non top-level widgets. | 757 // children. NULL for non top-level widgets. |
758 // WARNING: RootView's destructor calls into the FocusManager. As such, this | 758 // WARNING: RootView's destructor calls into the FocusManager. As such, this |
759 // must be destroyed AFTER root_view_. This is enforced in DestroyRootView(). | 759 // must be destroyed AFTER root_view_. This is enforced in DestroyRootView(). |
760 scoped_ptr<FocusManager> focus_manager_; | 760 scoped_ptr<FocusManager> focus_manager_; |
761 | 761 |
762 // A theme provider to use when no other theme provider is specified. | 762 // A theme provider to use when no other theme provider is specified. |
763 scoped_ptr<DefaultThemeProvider> default_theme_provider_; | 763 scoped_ptr<ui::DefaultThemeProvider> default_theme_provider_; |
764 | 764 |
765 // Valid for the lifetime of RunShellDrag(), indicates the view the drag | 765 // Valid for the lifetime of RunShellDrag(), indicates the view the drag |
766 // started from. | 766 // started from. |
767 View* dragged_view_; | 767 View* dragged_view_; |
768 | 768 |
769 // The event stack. | 769 // The event stack. |
770 std::stack<ScopedEvent*> event_stack_; | 770 std::stack<ScopedEvent*> event_stack_; |
771 | 771 |
772 // See class documentation for Widget above for a note about ownership. | 772 // See class documentation for Widget above for a note about ownership. |
773 InitParams::Ownership ownership_; | 773 InitParams::Ownership ownership_; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
833 // True when window movement via mouse interaction with the frame should be | 833 // True when window movement via mouse interaction with the frame should be |
834 // disabled. | 834 // disabled. |
835 bool movement_disabled_; | 835 bool movement_disabled_; |
836 | 836 |
837 DISALLOW_COPY_AND_ASSIGN(Widget); | 837 DISALLOW_COPY_AND_ASSIGN(Widget); |
838 }; | 838 }; |
839 | 839 |
840 } // namespace views | 840 } // namespace views |
841 | 841 |
842 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 842 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |