OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_WIDGET_WIDGET_H_ | 5 #ifndef VIEWS_WIDGET_WIDGET_H_ |
6 #define VIEWS_WIDGET_WIDGET_H_ | 6 #define VIEWS_WIDGET_WIDGET_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <stack> | 9 #include <stack> |
10 | 10 |
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 bool widget_closed_; | 702 bool widget_closed_; |
703 | 703 |
704 // The saved "show" state for this window. See note in SetInitialBounds | 704 // The saved "show" state for this window. See note in SetInitialBounds |
705 // that explains why we save this. | 705 // that explains why we save this. |
706 ui::WindowShowState saved_show_state_; | 706 ui::WindowShowState saved_show_state_; |
707 | 707 |
708 // The restored bounds used for the initial show. This is only used if | 708 // The restored bounds used for the initial show. This is only used if |
709 // |saved_show_state_| is maximized. | 709 // |saved_show_state_| is maximized. |
710 gfx::Rect initial_restored_bounds_; | 710 gfx::Rect initial_restored_bounds_; |
711 | 711 |
712 // The smallest size the window can be. | 712 // The smallest size the user can resize the window. |
713 gfx::Size minimum_size_; | 713 gfx::Size minimum_size_; |
714 | 714 |
715 // Focus is automatically set to the view provided by the delegate | 715 // Focus is automatically set to the view provided by the delegate |
716 // when the widget is shown. Set this value to false to override | 716 // when the widget is shown. Set this value to false to override |
717 // initial focus for the widget. | 717 // initial focus for the widget. |
718 bool focus_on_creation_; | 718 bool focus_on_creation_; |
719 | 719 |
720 scoped_ptr<InputMethod> input_method_; | 720 scoped_ptr<InputMethod> input_method_; |
721 | 721 |
722 // See |is_top_level()| accessor. | 722 // See |is_top_level()| accessor. |
(...skipping 15 matching lines...) Expand all Loading... |
738 // duplicate move events even though the mouse hasn't moved. | 738 // duplicate move events even though the mouse hasn't moved. |
739 bool last_mouse_event_was_move_; | 739 bool last_mouse_event_was_move_; |
740 gfx::Point last_mouse_event_position_; | 740 gfx::Point last_mouse_event_position_; |
741 | 741 |
742 DISALLOW_COPY_AND_ASSIGN(Widget); | 742 DISALLOW_COPY_AND_ASSIGN(Widget); |
743 }; | 743 }; |
744 | 744 |
745 } // namespace views | 745 } // namespace views |
746 | 746 |
747 #endif // VIEWS_WIDGET_WIDGET_H_ | 747 #endif // VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |