| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 TYPE_WINDOW_FRAMELESS, | 152 TYPE_WINDOW_FRAMELESS, |
| 153 // An undecorated Window. | 153 // An undecorated Window. |
| 154 TYPE_CONTROL, // A control, like a button. | 154 TYPE_CONTROL, // A control, like a button. |
| 155 TYPE_POPUP, // An undecorated Window, with transient properties. | 155 TYPE_POPUP, // An undecorated Window, with transient properties. |
| 156 TYPE_MENU, // An undecorated Window, with transient properties | 156 TYPE_MENU, // An undecorated Window, with transient properties |
| 157 // specialized to menus. | 157 // specialized to menus. |
| 158 TYPE_TOOLTIP, | 158 TYPE_TOOLTIP, |
| 159 TYPE_BUBBLE, | 159 TYPE_BUBBLE, |
| 160 TYPE_DRAG, // An undecorated Window, used during a drag-and-drop to | 160 TYPE_DRAG, // An undecorated Window, used during a drag-and-drop to |
| 161 // show the drag image. | 161 // show the drag image. |
| 162 TYPE_DRAG_BROWSER, |
| 162 }; | 163 }; |
| 163 | 164 |
| 164 enum WindowOpacity { | 165 enum WindowOpacity { |
| 165 // Infer fully opaque or not. For WinAura, top-level windows that are not | 166 // Infer fully opaque or not. For WinAura, top-level windows that are not |
| 166 // of TYPE_WINDOW are translucent so that they can be made to fade in. In | 167 // of TYPE_WINDOW are translucent so that they can be made to fade in. In |
| 167 // all other cases, windows are fully opaque. | 168 // all other cases, windows are fully opaque. |
| 168 INFER_OPACITY, | 169 INFER_OPACITY, |
| 169 // Fully opaque. | 170 // Fully opaque. |
| 170 OPAQUE_WINDOW, | 171 OPAQUE_WINDOW, |
| 171 // Possibly translucent/transparent. | 172 // Possibly translucent/transparent. |
| (...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 956 bool movement_disabled_; | 957 bool movement_disabled_; |
| 957 | 958 |
| 958 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; | 959 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; |
| 959 | 960 |
| 960 DISALLOW_COPY_AND_ASSIGN(Widget); | 961 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 961 }; | 962 }; |
| 962 | 963 |
| 963 } // namespace views | 964 } // namespace views |
| 964 | 965 |
| 965 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 966 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |