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

Unified Diff: base/gfx/size.h

Issue 7344: Convert GetPreferredSize from:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/debugger/debugger_view.h » ('j') | chrome/browser/drag_utils.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/gfx/size.h
===================================================================
--- base/gfx/size.h (revision 3391)
+++ base/gfx/size.h (working copy)
@@ -37,6 +37,11 @@
height_ = height;
}
+ void Enlarge(int width, int height) {
+ width_ += width;
+ height_ += height;
+ }
+
void set_width(int width) { width_ = width; }
void set_height(int height) { height_ = height; }
« no previous file with comments | « no previous file | chrome/browser/debugger/debugger_view.h » ('j') | chrome/browser/drag_utils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698