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

Unified Diff: ui/gfx/size_base.h

Issue 11081007: Remove implicit flooring Scale() method from Point and Size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « ui/gfx/size.h ('k') | ui/gfx/size_conversions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/size_base.h
diff --git a/ui/gfx/size_base.h b/ui/gfx/size_base.h
index 788120b71251238599dc7ccdabed8552831f02aa..d66ca67ce41d3267136a4081221a5cf246db9045 100644
--- a/ui/gfx/size_base.h
+++ b/ui/gfx/size_base.h
@@ -32,15 +32,6 @@ class UI_EXPORT SizeBase {
set_height(height_ + height);
}
- Class Scale(float scale) const WARN_UNUSED_RESULT {
- return Scale(scale, scale);
- }
-
- Class Scale(float x_scale, float y_scale) const WARN_UNUSED_RESULT {
- return Class(static_cast<Type>(width_ * x_scale),
- static_cast<Type>(height_ * y_scale));
- }
-
void set_width(Type width) { width_ = width; }
void set_height(Type height) { height_ = height; }
« no previous file with comments | « ui/gfx/size.h ('k') | ui/gfx/size_conversions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698