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

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

Issue 2650833002: Set focusibility correctly when initializing a window in mus+ash. (Closed)
Patch Set: addressed feedback. Created 3 years, 10 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/mus/mus_client.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 <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 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
987 bool movement_disabled_; 991 bool movement_disabled_;
988 992
989 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 993 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
990 994
991 DISALLOW_COPY_AND_ASSIGN(Widget); 995 DISALLOW_COPY_AND_ASSIGN(Widget);
992 }; 996 };
993 997
994 } // namespace views 998 } // namespace views
995 999
996 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 1000 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/views/mus/mus_client.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698