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

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

Issue 108193005: Fixing opacity for browser frame window on ASH/Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ChromeOS build changes Created 7 years 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/views_delegate.h ('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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 NATIVE_WIDGET_OWNS_WIDGET, 162 NATIVE_WIDGET_OWNS_WIDGET,
163 // Used when the Widget is owned by someone other than the NativeWidget, 163 // Used when the Widget is owned by someone other than the NativeWidget,
164 // e.g. a scoped_ptr in tests. 164 // e.g. a scoped_ptr in tests.
165 WIDGET_OWNS_NATIVE_WIDGET 165 WIDGET_OWNS_NATIVE_WIDGET
166 }; 166 };
167 167
168 InitParams(); 168 InitParams();
169 explicit InitParams(Type type); 169 explicit InitParams(Type type);
170 ~InitParams(); 170 ~InitParams();
171 171
172 // Will return the first of the following that isn't NULL: the native view,
173 // |parent|, |context|.
174 gfx::NativeView GetContext() const;
175
176 Type type; 172 Type type;
177 // If NULL, a default implementation will be constructed. 173 // If NULL, a default implementation will be constructed.
178 WidgetDelegate* delegate; 174 WidgetDelegate* delegate;
179 bool child; 175 bool child;
180 // If TRANSLUCENT_WINDOW, the widget may be fully or partially transparent. 176 // If TRANSLUCENT_WINDOW, the widget may be fully or partially transparent.
181 // If OPAQUE_WINDOW, we can perform optimizations based on the widget being 177 // If OPAQUE_WINDOW, we can perform optimizations based on the widget being
182 // fully opaque. Defaults to TRANSLUCENT_WINDOW if 178 // fully opaque. Defaults to TRANSLUCENT_WINDOW if
183 // ViewsDelegate::UseTransparentWindows(). Defaults to OPAQUE_WINDOW for 179 // ViewsDelegate::UseTransparentWindows(). Defaults to OPAQUE_WINDOW for
184 // non-window widgets. 180 // non-window widgets.
185 WindowOpacity opacity; 181 WindowOpacity opacity;
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 // True when window movement via mouse interaction with the frame should be 887 // True when window movement via mouse interaction with the frame should be
892 // disabled. 888 // disabled.
893 bool movement_disabled_; 889 bool movement_disabled_;
894 890
895 DISALLOW_COPY_AND_ASSIGN(Widget); 891 DISALLOW_COPY_AND_ASSIGN(Widget);
896 }; 892 };
897 893
898 } // namespace views 894 } // namespace views
899 895
900 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 896 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/views/views_delegate.h ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698