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

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

Issue 2398203002: Linux Aura: Fix overlay shadows on notifications (Closed)
Patch Set: Created 4 years, 2 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
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 <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 TYPE_MENU, // An undecorated Window, with transient properties 159 TYPE_MENU, // An undecorated Window, with transient properties
160 // specialized to menus. 160 // specialized to menus.
161 TYPE_TOOLTIP, 161 TYPE_TOOLTIP,
162 TYPE_BUBBLE, 162 TYPE_BUBBLE,
163 TYPE_DRAG, // An undecorated Window, used during a drag-and-drop to 163 TYPE_DRAG, // An undecorated Window, used during a drag-and-drop to
164 // show the drag image. 164 // show the drag image.
165 }; 165 };
166 166
167 enum WindowOpacity { 167 enum WindowOpacity {
168 // Infer fully opaque or not. For WinAura, top-level windows that are not 168 // Infer fully opaque or not. For WinAura, top-level windows that are not
169 // of TYPE_WINDOW are translucent so that they can be made to fade in. In 169 // of TYPE_WINDOW are translucent so that they can be made to fade in.
170 // all other cases, windows are fully opaque. 170 // For LinuxAura, only windows that are TYPE_DRAG are translucent. In all
171 // other cases, windows are fully opaque.
171 INFER_OPACITY, 172 INFER_OPACITY,
172 // Fully opaque. 173 // Fully opaque.
173 OPAQUE_WINDOW, 174 OPAQUE_WINDOW,
174 // Possibly translucent/transparent. 175 // Possibly translucent/transparent. Widgets that fade in or out using
176 // SetOpacity() but do not make use of an alpha channel should use
177 // INFER_OPACITY.
175 TRANSLUCENT_WINDOW, 178 TRANSLUCENT_WINDOW,
176 }; 179 };
177 180
178 enum Activatable { 181 enum Activatable {
179 // Infer whether the window should be activatable from the window type. 182 // Infer whether the window should be activatable from the window type.
180 ACTIVATABLE_DEFAULT, 183 ACTIVATABLE_DEFAULT,
181 184
182 ACTIVATABLE_YES, 185 ACTIVATABLE_YES,
183 ACTIVATABLE_NO 186 ACTIVATABLE_NO
184 }; 187 };
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 bool movement_disabled_; 978 bool movement_disabled_;
976 979
977 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 980 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
978 981
979 DISALLOW_COPY_AND_ASSIGN(Widget); 982 DISALLOW_COPY_AND_ASSIGN(Widget);
980 }; 983 };
981 984
982 } // namespace views 985 } // namespace views
983 986
984 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 987 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698