Chromium Code Reviews| 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 259 gfx::NativeWindow context; | 259 gfx::NativeWindow context; |
| 260 // If true, forces the window to be shown in the taskbar, even for window | 260 // If true, forces the window to be shown in the taskbar, even for window |
| 261 // types that do not appear in the taskbar by default (popup and bubble). | 261 // types that do not appear in the taskbar by default (popup and bubble). |
| 262 bool force_show_in_taskbar; | 262 bool force_show_in_taskbar; |
| 263 // Only used by X11, for root level windows. Specifies the res_name and | 263 // Only used by X11, for root level windows. Specifies the res_name and |
| 264 // res_class fields, respectively, of the WM_CLASS window property. Controls | 264 // res_class fields, respectively, of the WM_CLASS window property. Controls |
| 265 // window grouping and desktop file matching in Linux window managers. | 265 // window grouping and desktop file matching in Linux window managers. |
| 266 std::string wm_role_name; | 266 std::string wm_role_name; |
| 267 std::string wm_class_name; | 267 std::string wm_class_name; |
| 268 std::string wm_class_class; | 268 std::string wm_class_class; |
| 269 | |
| 270 // Specifies a theme_provider to be used in place of | |
| 271 // |default_theme_provider_|. Widget does not take ownership. | |
| 272 ui::ThemeProvider* theme_provider; | |
| 269 }; | 273 }; |
| 270 | 274 |
| 271 Widget(); | 275 Widget(); |
| 272 ~Widget() override; | 276 ~Widget() override; |
| 273 | 277 |
| 274 // Creates a toplevel window with no context. These methods should only be | 278 // Creates a toplevel window with no context. These methods should only be |
| 275 // used in cases where there is no contextual information because we're | 279 // used in cases where there is no contextual information because we're |
| 276 // creating a toplevel window connected to no other event. | 280 // creating a toplevel window connected to no other event. |
| 277 // | 281 // |
| 278 // If you have any parenting or context information, or can pass that | 282 // If you have any parenting or context information, or can pass that |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 877 | 881 |
| 878 // The focus manager keeping track of focus for this Widget and any of its | 882 // The focus manager keeping track of focus for this Widget and any of its |
| 879 // children. NULL for non top-level widgets. | 883 // children. NULL for non top-level widgets. |
| 880 // WARNING: RootView's destructor calls into the FocusManager. As such, this | 884 // WARNING: RootView's destructor calls into the FocusManager. As such, this |
| 881 // must be destroyed AFTER root_view_. This is enforced in DestroyRootView(). | 885 // must be destroyed AFTER root_view_. This is enforced in DestroyRootView(). |
| 882 scoped_ptr<FocusManager> focus_manager_; | 886 scoped_ptr<FocusManager> focus_manager_; |
| 883 | 887 |
| 884 // A theme provider to use when no other theme provider is specified. | 888 // A theme provider to use when no other theme provider is specified. |
| 885 scoped_ptr<ui::DefaultThemeProvider> default_theme_provider_; | 889 scoped_ptr<ui::DefaultThemeProvider> default_theme_provider_; |
| 886 | 890 |
| 891 // The theme provider to use if specified. Otherwise |default_theme_provider_| | |
| 892 // is provided. This is not owned by Widget. | |
|
sadrul
2015/09/02 17:21:58
is *used?
jonross
2015/09/02 18:35:40
Done.
| |
| 893 ui::ThemeProvider* theme_provider_; | |
| 894 | |
| 887 // Valid for the lifetime of RunShellDrag(), indicates the view the drag | 895 // Valid for the lifetime of RunShellDrag(), indicates the view the drag |
| 888 // started from. | 896 // started from. |
| 889 View* dragged_view_; | 897 View* dragged_view_; |
| 890 | 898 |
| 891 // See class documentation for Widget above for a note about ownership. | 899 // See class documentation for Widget above for a note about ownership. |
| 892 InitParams::Ownership ownership_; | 900 InitParams::Ownership ownership_; |
| 893 | 901 |
| 894 // See set_is_secondary_widget(). | 902 // See set_is_secondary_widget(). |
| 895 bool is_secondary_widget_; | 903 bool is_secondary_widget_; |
| 896 | 904 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 956 bool movement_disabled_; | 964 bool movement_disabled_; |
| 957 | 965 |
| 958 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; | 966 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; |
| 959 | 967 |
| 960 DISALLOW_COPY_AND_ASSIGN(Widget); | 968 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 961 }; | 969 }; |
| 962 | 970 |
| 963 } // namespace views | 971 } // namespace views |
| 964 | 972 |
| 965 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 973 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |