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

Unified Diff: ash/common/system/tray/tri_view.cc

Issue 2605513002: [ash-md] Changed the system info row height to 40 (instead of 48). (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/system/tray/tri_view.h ('k') | ash/common/system/tray/tri_view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/tri_view.cc
diff --git a/ash/common/system/tray/tri_view.cc b/ash/common/system/tray/tri_view.cc
index 5333a1ad9f664c64255ddb2edf41343d5fc54860..2f0f55b9e7f92cffb57c9a28fa74f1e26b363ddc 100644
--- a/ash/common/system/tray/tri_view.cc
+++ b/ash/common/system/tray/tri_view.cc
@@ -78,6 +78,22 @@ TriView::~TriView() {
enable_hierarchy_changed_dcheck_ = false;
}
+void TriView::SetMinHeight(int height) {
+ gfx::Size min_size;
+
+ min_size = GetMinSize(TriView::Container::START);
+ min_size.set_height(height);
+ SetMinSize(TriView::Container::START, min_size);
+
+ min_size = GetMinSize(TriView::Container::CENTER);
+ min_size.set_height(height);
+ SetMinSize(TriView::Container::CENTER, min_size);
+
+ min_size = GetMinSize(TriView::Container::END);
+ min_size.set_height(height);
+ SetMinSize(TriView::Container::END, min_size);
+}
+
void TriView::SetMinSize(Container container, const gfx::Size& size) {
GetLayoutManager(container)->SetMinSize(size);
}
« no previous file with comments | « ash/common/system/tray/tri_view.h ('k') | ash/common/system/tray/tri_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698