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

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

Issue 8273040: Minimum size for aura window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed comment, add tests Created 9 years, 2 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 | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698