| 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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 597 // are added to. The default implementation returns the contents view | 597 // are added to. The default implementation returns the contents view |
| 598 // if it exists and the root view otherwise. | 598 // if it exists and the root view otherwise. |
| 599 virtual View* GetChildViewParent(); | 599 virtual View* GetChildViewParent(); |
| 600 | 600 |
| 601 // True if the widget is considered top level widget. Top level widget | 601 // True if the widget is considered top level widget. Top level widget |
| 602 // is a widget of TYPE_WINDOW, TYPE_PANEL, TYPE_WINDOW_FRAMELESS, BUBBLE, | 602 // is a widget of TYPE_WINDOW, TYPE_PANEL, TYPE_WINDOW_FRAMELESS, BUBBLE, |
| 603 // POPUP or MENU, and has a focus manager and input method object associated | 603 // POPUP or MENU, and has a focus manager and input method object associated |
| 604 // with it. TYPE_CONTROL and TYPE_TOOLTIP is not considered top level. | 604 // with it. TYPE_CONTROL and TYPE_TOOLTIP is not considered top level. |
| 605 bool is_top_level() const { return is_top_level_; } | 605 bool is_top_level() const { return is_top_level_; } |
| 606 | 606 |
| 607 // Returns the work are bounds of the screen the Widget belongs to. | 607 // Returns the work area bounds of the screen the Widget belongs to. |
| 608 gfx::Rect GetWorkAreaBoundsInScreen() const; | 608 gfx::Rect GetWorkAreaBoundsInScreen() const; |
| 609 | 609 |
| 610 // Notification that our owner is closing. | 610 // Notification that our owner is closing. |
| 611 // NOTE: this is not invoked for aura as it's currently not needed there. | 611 // NOTE: this is not invoked for aura as it's currently not needed there. |
| 612 // Under aura menus close by way of activation getting reset when the owner | 612 // Under aura menus close by way of activation getting reset when the owner |
| 613 // closes. | 613 // closes. |
| 614 virtual void OnOwnerClosing(); | 614 virtual void OnOwnerClosing(); |
| 615 | 615 |
| 616 // Overridden from NativeWidgetDelegate: | 616 // Overridden from NativeWidgetDelegate: |
| 617 virtual bool IsModal() const OVERRIDE; | 617 virtual bool IsModal() const OVERRIDE; |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 794 | 794 |
| 795 // Is |root_layers_| out of date? | 795 // Is |root_layers_| out of date? |
| 796 bool root_layers_dirty_; | 796 bool root_layers_dirty_; |
| 797 | 797 |
| 798 DISALLOW_COPY_AND_ASSIGN(Widget); | 798 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 799 }; | 799 }; |
| 800 | 800 |
| 801 } // namespace views | 801 } // namespace views |
| 802 | 802 |
| 803 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 803 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |