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

Side by Side Diff: ui/views/window/custom_frame_view.h

Issue 554183002: Update the maximize button when size constraints change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
OLDNEW
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_WINDOW_CUSTOM_FRAME_VIEW_H_ 5 #ifndef UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_
6 #define UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ 6 #define UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 // The icon of this window. May be NULL. 140 // The icon of this window. May be NULL.
141 ImageButton* window_icon_; 141 ImageButton* window_icon_;
142 142
143 // Window caption buttons. 143 // Window caption buttons.
144 ImageButton* minimize_button_; 144 ImageButton* minimize_button_;
145 ImageButton* maximize_button_; 145 ImageButton* maximize_button_;
146 ImageButton* restore_button_; 146 ImageButton* restore_button_;
147 ImageButton* close_button_; 147 ImageButton* close_button_;
148 148
149 // Should maximize button be shown?
150 bool should_show_maximize_button_;
151
152 // Background painter for the window frame. 149 // Background painter for the window frame.
153 scoped_ptr<FrameBackground> frame_background_; 150 scoped_ptr<FrameBackground> frame_background_;
154 151
155 // The horizontal boundaries for the title bar to layout within. Restricted 152 // The horizontal boundaries for the title bar to layout within. Restricted
156 // by the space used by the leading and trailing buttons. 153 // by the space used by the leading and trailing buttons.
157 int minimum_title_bar_x_; 154 int minimum_title_bar_x_;
158 int maximum_title_bar_x_; 155 int maximum_title_bar_x_;
159 156
160 DISALLOW_COPY_AND_ASSIGN(CustomFrameView); 157 DISALLOW_COPY_AND_ASSIGN(CustomFrameView);
161 }; 158 };
162 159
163 } // namespace views 160 } // namespace views
164 161
165 #endif // UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ 162 #endif // UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698