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

Side by Side Diff: ui/app_list/views/folder_header_view.cc

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 years, 7 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
« no previous file with comments | « ui/app_list/views/folder_header_view.h ('k') | ui/app_list/views/page_switcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #include "ui/app_list/views/folder_header_view.h" 5 #include "ui/app_list/views/folder_header_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "grit/ui_resources.h" 10 #include "grit/ui_resources.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 } 141 }
142 142
143 void FolderHeaderView::SetFolderNameForTest(const base::string16& name) { 143 void FolderHeaderView::SetFolderNameForTest(const base::string16& name) {
144 folder_name_view_->SetText(name); 144 folder_name_view_->SetText(name);
145 } 145 }
146 146
147 bool FolderHeaderView::IsFolderNameEnabledForTest() const { 147 bool FolderHeaderView::IsFolderNameEnabledForTest() const {
148 return folder_name_view_->enabled(); 148 return folder_name_view_->enabled();
149 } 149 }
150 150
151 gfx::Size FolderHeaderView::GetPreferredSize() { 151 gfx::Size FolderHeaderView::GetPreferredSize() const {
152 return gfx::Size(kPreferredWidth, kPreferredHeight); 152 return gfx::Size(kPreferredWidth, kPreferredHeight);
153 } 153 }
154 154
155 void FolderHeaderView::Layout() { 155 void FolderHeaderView::Layout() {
156 gfx::Rect rect(GetContentsBounds()); 156 gfx::Rect rect(GetContentsBounds());
157 if (rect.IsEmpty()) 157 if (rect.IsEmpty())
158 return; 158 return;
159 159
160 gfx::Rect back_bounds(rect); 160 gfx::Rect back_bounds(rect);
161 back_bounds.set_width(kIconDimension + 2 * kPadding); 161 back_bounds.set_width(kIconDimension + 2 * kPadding);
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 void FolderHeaderView::ItemHighlightedChanged() { 232 void FolderHeaderView::ItemHighlightedChanged() {
233 } 233 }
234 234
235 void FolderHeaderView::ItemIsInstallingChanged() { 235 void FolderHeaderView::ItemIsInstallingChanged() {
236 } 236 }
237 237
238 void FolderHeaderView::ItemPercentDownloadedChanged() { 238 void FolderHeaderView::ItemPercentDownloadedChanged() {
239 } 239 }
240 240
241 } // namespace app_list 241 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/views/folder_header_view.h ('k') | ui/app_list/views/page_switcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698