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

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

Issue 2650833002: Set focusibility correctly when initializing a window in mus+ash. (Closed)
Patch Set: Created 3 years, 11 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 <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 SHADOW_TYPE_NONE, // Don't draw any shadow. 207 SHADOW_TYPE_NONE, // Don't draw any shadow.
208 SHADOW_TYPE_DROP, // Draw a drop shadow that emphasizes Z-order 208 SHADOW_TYPE_DROP, // Draw a drop shadow that emphasizes Z-order
209 // relationship to other windows. 209 // relationship to other windows.
210 }; 210 };
211 211
212 InitParams(); 212 InitParams();
213 explicit InitParams(Type type); 213 explicit InitParams(Type type);
214 InitParams(const InitParams& other); 214 InitParams(const InitParams& other);
215 ~InitParams(); 215 ~InitParams();
216 216
217 // Returns the activatablity based on |activatable|, but also handles the
218 // case where |activatable| is |ACTIVATABLE_DEFAULT|.
219 bool CanActivate() const;
220
217 Type type; 221 Type type;
218 // If null, a default implementation will be constructed. The default 222 // If null, a default implementation will be constructed. The default
219 // implementation deletes itself when the Widget closes. 223 // implementation deletes itself when the Widget closes.
220 WidgetDelegate* delegate; 224 WidgetDelegate* delegate;
221 // Internal name. Propagated to the NativeWidget. Useful for debugging. 225 // Internal name. Propagated to the NativeWidget. Useful for debugging.
222 std::string name; 226 std::string name;
223 bool child; 227 bool child;
224 // If TRANSLUCENT_WINDOW, the widget may be fully or partially transparent. 228 // If TRANSLUCENT_WINDOW, the widget may be fully or partially transparent.
225 // If OPAQUE_WINDOW, we can perform optimizations based on the widget being 229 // If OPAQUE_WINDOW, we can perform optimizations based on the widget being
226 // fully opaque. 230 // fully opaque.
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 bool movement_disabled_; 982 bool movement_disabled_;
979 983
980 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 984 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
981 985
982 DISALLOW_COPY_AND_ASSIGN(Widget); 986 DISALLOW_COPY_AND_ASSIGN(Widget);
983 }; 987 };
984 988
985 } // namespace views 989 } // namespace views
986 990
987 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 991 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698