| 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 static Widget* CreateWindowWithContext(WidgetDelegate* delegate, | 258 static Widget* CreateWindowWithContext(WidgetDelegate* delegate, |
| 259 gfx::NativeView context); | 259 gfx::NativeView context); |
| 260 static Widget* CreateWindowWithContextAndBounds(WidgetDelegate* delegate, | 260 static Widget* CreateWindowWithContextAndBounds(WidgetDelegate* delegate, |
| 261 gfx::NativeView context, | 261 gfx::NativeView context, |
| 262 const gfx::Rect& bounds); | 262 const gfx::Rect& bounds); |
| 263 | 263 |
| 264 // Creates an undecorated child window Widget parented to |parent|. | 264 // Creates an undecorated child window Widget parented to |parent|. |
| 265 static Widget* CreateWindowAsFramelessChild(WidgetDelegate* widget_delegate, | 265 static Widget* CreateWindowAsFramelessChild(WidgetDelegate* widget_delegate, |
| 266 gfx::NativeView parent); | 266 gfx::NativeView parent); |
| 267 | 267 |
| 268 // Enumerates all windows pertaining to us and notifies their | |
| 269 // view hierarchies that the locale has changed. | |
| 270 // TODO(beng): remove post-Aurafication of ChromeOS. | |
| 271 static void NotifyLocaleChanged(); | |
| 272 | |
| 273 // Closes all Widgets that aren't identified as "secondary widgets". Called | 268 // Closes all Widgets that aren't identified as "secondary widgets". Called |
| 274 // during application shutdown when the last non-secondary widget is closed. | 269 // during application shutdown when the last non-secondary widget is closed. |
| 275 static void CloseAllSecondaryWidgets(); | 270 static void CloseAllSecondaryWidgets(); |
| 276 | 271 |
| 277 // Converts a rectangle from one Widget's coordinate system to another's. | 272 // Converts a rectangle from one Widget's coordinate system to another's. |
| 278 // Returns false if the conversion couldn't be made, because either these two | 273 // Returns false if the conversion couldn't be made, because either these two |
| 279 // Widgets do not have a common ancestor or they are not on the screen yet. | 274 // Widgets do not have a common ancestor or they are not on the screen yet. |
| 280 // The value of |*rect| won't be changed when false is returned. | 275 // The value of |*rect| won't be changed when false is returned. |
| 281 static bool ConvertRect(const Widget* source, | 276 static bool ConvertRect(const Widget* source, |
| 282 const Widget* target, | 277 const Widget* target, |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 887 // True when window movement via mouse interaction with the frame should be | 882 // True when window movement via mouse interaction with the frame should be |
| 888 // disabled. | 883 // disabled. |
| 889 bool movement_disabled_; | 884 bool movement_disabled_; |
| 890 | 885 |
| 891 DISALLOW_COPY_AND_ASSIGN(Widget); | 886 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 892 }; | 887 }; |
| 893 | 888 |
| 894 } // namespace views | 889 } // namespace views |
| 895 | 890 |
| 896 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 891 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |