| 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 <memory> | 9 #include <memory> |
| 9 #include <set> | 10 #include <set> |
| 10 #include <stack> | 11 #include <stack> |
| 12 #include <string> |
| 11 #include <vector> | 13 #include <vector> |
| 12 | 14 |
| 13 #include "base/macros.h" | 15 #include "base/macros.h" |
| 14 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
| 15 #include "base/scoped_observer.h" | 17 #include "base/scoped_observer.h" |
| 16 #include "build/build_config.h" | 18 #include "build/build_config.h" |
| 17 #include "ui/base/ui_base_types.h" | 19 #include "ui/base/ui_base_types.h" |
| 18 #include "ui/events/event_source.h" | 20 #include "ui/events/event_source.h" |
| 19 #include "ui/gfx/geometry/rect.h" | 21 #include "ui/gfx/geometry/rect.h" |
| 20 #include "ui/gfx/native_widget_types.h" | 22 #include "ui/gfx/native_widget_types.h" |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 std::string wm_class_name; | 283 std::string wm_class_name; |
| 282 std::string wm_class_class; | 284 std::string wm_class_class; |
| 283 | 285 |
| 284 // If true then the widget uses software compositing. Defaults to false. | 286 // If true then the widget uses software compositing. Defaults to false. |
| 285 // Only used on Windows. | 287 // Only used on Windows. |
| 286 bool force_software_compositing; | 288 bool force_software_compositing; |
| 287 | 289 |
| 288 // Used if widget is not activatable to do determine if mouse events should | 290 // Used if widget is not activatable to do determine if mouse events should |
| 289 // be sent to the widget. | 291 // be sent to the widget. |
| 290 bool wants_mouse_events_when_inactive = false; | 292 bool wants_mouse_events_when_inactive = false; |
| 293 |
| 294 // A map of properties applied to windows when running in mus. |
| 295 std::map<std::string, std::vector<uint8_t>> mus_properties; |
| 291 }; | 296 }; |
| 292 | 297 |
| 293 Widget(); | 298 Widget(); |
| 294 ~Widget() override; | 299 ~Widget() override; |
| 295 | 300 |
| 296 // Creates a decorated window Widget with the specified properties. The | 301 // Creates a decorated window Widget with the specified properties. The |
| 297 // returned Widget is owned by its NativeWidget; see Widget class comment for | 302 // returned Widget is owned by its NativeWidget; see Widget class comment for |
| 298 // details. | 303 // details. |
| 299 static Widget* CreateWindowWithParent(WidgetDelegate* delegate, | 304 static Widget* CreateWindowWithParent(WidgetDelegate* delegate, |
| 300 gfx::NativeView parent); | 305 gfx::NativeView parent); |
| (...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 968 bool movement_disabled_; | 973 bool movement_disabled_; |
| 969 | 974 |
| 970 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; | 975 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; |
| 971 | 976 |
| 972 DISALLOW_COPY_AND_ASSIGN(Widget); | 977 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 973 }; | 978 }; |
| 974 | 979 |
| 975 } // namespace views | 980 } // namespace views |
| 976 | 981 |
| 977 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 982 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |