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

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

Issue 15240002: Cross-platform DefaultThemeProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comment. Created 7 years, 7 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
« no previous file with comments | « ui/views/widget/default_theme_provider.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « ui/views/widget/default_theme_provider.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698