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

Unified Diff: chrome/browser/ui/views/frame/app_non_client_frame_view_ash.cc

Issue 82483003: Add GetMinimumSize() for Borders, and make LabelButton auto-size to at least as (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 1 month 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
Index: chrome/browser/ui/views/frame/app_non_client_frame_view_ash.cc
===================================================================
--- chrome/browser/ui/views/frame/app_non_client_frame_view_ash.cc (revision 236640)
+++ chrome/browser/ui/views/frame/app_non_client_frame_view_ash.cc (working copy)
@@ -52,6 +52,10 @@
return gfx::Insets(0, kShadowSizeX, kShadowSizeBottom, 0);
}
+ virtual gfx::Size GetMinimumSize() const OVERRIDE {
+ return border_.size();
+ }
+
gfx::ImageSkia border_;
DISALLOW_COPY_AND_ASSIGN(ControlViewBorder);

Powered by Google App Engine
This is Rietveld 408576698