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

Unified Diff: ui/gfx/size.h

Issue 11377068: ui: Make gfx::Size::Scale() mutate the class. Add gfx::ScaleSize() similar to Rect/Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebaseTOGO Created 8 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
« no previous file with comments | « ui/gfx/rect_f.h ('k') | ui/gfx/size_f.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/size.h
diff --git a/ui/gfx/size.h b/ui/gfx/size.h
index 4425207a18fa4b25b3a8bb433a4bd7b9da9940a8..a525251b648ebe294e7827952fd195ac28c91f37 100644
--- a/ui/gfx/size.h
+++ b/ui/gfx/size.h
@@ -47,14 +47,6 @@ class UI_EXPORT Size : public SizeBase<Size, int> {
return SizeF(width(), height());
}
- SizeF Scale(float scale) const WARN_UNUSED_RESULT {
- return Scale(scale, scale);
- }
-
- SizeF Scale(float x_scale, float y_scale) const WARN_UNUSED_RESULT {
- return SizeF(width() * x_scale, height() * y_scale);
- }
-
std::string ToString() const;
};
« no previous file with comments | « ui/gfx/rect_f.h ('k') | ui/gfx/size_f.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698