| 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 <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 TYPE_MENU, // An undecorated Window, with transient properties | 158 TYPE_MENU, // An undecorated Window, with transient properties |
| 159 // specialized to menus. | 159 // specialized to menus. |
| 160 TYPE_TOOLTIP, | 160 TYPE_TOOLTIP, |
| 161 TYPE_BUBBLE, | 161 TYPE_BUBBLE, |
| 162 TYPE_DRAG, // An undecorated Window, used during a drag-and-drop to | 162 TYPE_DRAG, // An undecorated Window, used during a drag-and-drop to |
| 163 // show the drag image. | 163 // show the drag image. |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 enum WindowOpacity { | 166 enum WindowOpacity { |
| 167 // Infer fully opaque or not. For WinAura, top-level windows that are not | 167 // Infer fully opaque or not. For WinAura, top-level windows that are not |
| 168 // of TYPE_WINDOW are translucent so that they can be made to fade in. In | 168 // of TYPE_WINDOW are translucent so that they can be made to fade in. |
| 169 // all other cases, windows are fully opaque. | 169 // For LinuxAura, only windows that are TYPE_DRAG are translucent. In all |
| 170 // other cases, windows are fully opaque. |
| 170 INFER_OPACITY, | 171 INFER_OPACITY, |
| 171 // Fully opaque. | 172 // Fully opaque. |
| 172 OPAQUE_WINDOW, | 173 OPAQUE_WINDOW, |
| 173 // Possibly translucent/transparent. | 174 // Possibly translucent/transparent. Widgets that fade in or out using |
| 175 // SetOpacity() but do not make use of an alpha channel should use |
| 176 // INFER_OPACITY. |
| 174 TRANSLUCENT_WINDOW, | 177 TRANSLUCENT_WINDOW, |
| 175 }; | 178 }; |
| 176 | 179 |
| 177 enum Activatable { | 180 enum Activatable { |
| 178 // Infer whether the window should be activatable from the window type. | 181 // Infer whether the window should be activatable from the window type. |
| 179 ACTIVATABLE_DEFAULT, | 182 ACTIVATABLE_DEFAULT, |
| 180 | 183 |
| 181 ACTIVATABLE_YES, | 184 ACTIVATABLE_YES, |
| 182 ACTIVATABLE_NO | 185 ACTIVATABLE_NO |
| 183 }; | 186 }; |
| (...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 967 bool movement_disabled_; | 970 bool movement_disabled_; |
| 968 | 971 |
| 969 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; | 972 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; |
| 970 | 973 |
| 971 DISALLOW_COPY_AND_ASSIGN(Widget); | 974 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 972 }; | 975 }; |
| 973 | 976 |
| 974 } // namespace views | 977 } // namespace views |
| 975 | 978 |
| 976 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 979 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |