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

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

Issue 1380973003: Add a flag use_software_compositing to the Widget::InitParams structure. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix alignment Created 5 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
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <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
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 // If true then the widget uses software compositing. Defaults to false.
271 // Only used on Windows.
272 bool force_software_compositing;
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 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 bool movement_disabled_; 960 bool movement_disabled_;
957 961
958 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 962 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
959 963
960 DISALLOW_COPY_AND_ASSIGN(Widget); 964 DISALLOW_COPY_AND_ASSIGN(Widget);
961 }; 965 };
962 966
963 } // namespace views 967 } // namespace views
964 968
965 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 969 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698