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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <stack> | 10 #include <stack> |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 // both the NonClientView and WidgetDelegate are notified. | 656 // both the NonClientView and WidgetDelegate are notified. |
657 void SetInactiveRenderingDisabled(bool value); | 657 void SetInactiveRenderingDisabled(bool value); |
658 | 658 |
659 // Persists the window's restored position and "show" state using the | 659 // Persists the window's restored position and "show" state using the |
660 // window delegate. | 660 // window delegate. |
661 void SaveWindowPlacement(); | 661 void SaveWindowPlacement(); |
662 | 662 |
663 // Sizes and positions the window just after it is created. | 663 // Sizes and positions the window just after it is created. |
664 void SetInitialBounds(const gfx::Rect& bounds); | 664 void SetInitialBounds(const gfx::Rect& bounds); |
665 | 665 |
| 666 // Sizes and positions the frameless window just after it is created. |
| 667 void SetInitialBoundsForFramelessWindow(const gfx::Rect& bounds); |
| 668 |
666 // Returns the bounds and "show" state from the delegate. Returns true if | 669 // Returns the bounds and "show" state from the delegate. Returns true if |
667 // the delegate wants to use a specified bounds. | 670 // the delegate wants to use a specified bounds. |
668 bool GetSavedWindowPlacement(gfx::Rect* bounds, | 671 bool GetSavedWindowPlacement(gfx::Rect* bounds, |
669 ui::WindowShowState* show_state); | 672 ui::WindowShowState* show_state); |
670 | 673 |
671 // Sets a different InputMethod instance to this widget. The instance | 674 // Sets a different InputMethod instance to this widget. The instance |
672 // must not be initialized, the ownership will be assumed by the widget. | 675 // must not be initialized, the ownership will be assumed by the widget. |
673 // It's only for testing purpose. | 676 // It's only for testing purpose. |
674 void ReplaceInputMethod(InputMethod* input_method); | 677 void ReplaceInputMethod(InputMethod* input_method); |
675 | 678 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 // duplicate move events even though the mouse hasn't moved. | 759 // duplicate move events even though the mouse hasn't moved. |
757 bool last_mouse_event_was_move_; | 760 bool last_mouse_event_was_move_; |
758 gfx::Point last_mouse_event_position_; | 761 gfx::Point last_mouse_event_position_; |
759 | 762 |
760 DISALLOW_COPY_AND_ASSIGN(Widget); | 763 DISALLOW_COPY_AND_ASSIGN(Widget); |
761 }; | 764 }; |
762 | 765 |
763 } // namespace views | 766 } // namespace views |
764 | 767 |
765 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 768 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |