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

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

Issue 23093020: Set the WM_CLASS property of X11 windows in Linux Aura build. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Respond to reviews. Created 7 years, 3 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
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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 // aura::Window. Default is LAYER_TEXTURED. 209 // aura::Window. Default is LAYER_TEXTURED.
210 ui::LayerType layer_type; 210 ui::LayerType layer_type;
211 // Only used by Aura. Provides a context window whose RootWindow is 211 // Only used by Aura. Provides a context window whose RootWindow is
212 // consulted during widget creation to determine where in the Window 212 // consulted during widget creation to determine where in the Window
213 // hierarchy this widget should be placed. (This is separate from |parent|; 213 // hierarchy this widget should be placed. (This is separate from |parent|;
214 // if you pass a RootWindow to |parent|, your window will be parented to 214 // if you pass a RootWindow to |parent|, your window will be parented to
215 // |parent|. If you pass a RootWindow to |context|, we ask that RootWindow 215 // |parent|. If you pass a RootWindow to |context|, we ask that RootWindow
216 // where it wants your window placed.) NULL is not allowed if you are using 216 // where it wants your window placed.) NULL is not allowed if you are using
217 // aura. 217 // aura.
218 gfx::NativeView context; 218 gfx::NativeView context;
219 // Only used by X11, for root level windows. Specifies the res_name and
220 // res_class fields, respectively, of the WM_CLASS window property. Controls
221 // window grouping and desktop file matching in Linux window managers.
222 std::string wm_class_name;
223 std::string wm_class_class;
219 }; 224 };
220 225
221 Widget(); 226 Widget();
222 virtual ~Widget(); 227 virtual ~Widget();
223 228
224 // Creates a toplevel window with no context. These methods should only be 229 // Creates a toplevel window with no context. These methods should only be
225 // used in cases where there is no contextual information because we're 230 // used in cases where there is no contextual information because we're
226 // creating a toplevel window connected to no other event. 231 // creating a toplevel window connected to no other event.
227 // 232 //
228 // If you have any parenting or context information, or can pass that 233 // If you have any parenting or context information, or can pass that
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 // True when window movement via mouse interaction with the frame should be 861 // True when window movement via mouse interaction with the frame should be
857 // disabled. 862 // disabled.
858 bool movement_disabled_; 863 bool movement_disabled_;
859 864
860 DISALLOW_COPY_AND_ASSIGN(Widget); 865 DISALLOW_COPY_AND_ASSIGN(Widget);
861 }; 866 };
862 867
863 } // namespace views 868 } // namespace views
864 869
865 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 870 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698