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

Unified Diff: ui/gfx/size_base_impl.h

Issue 10996037: Do not convert from RectF to Rect by flooring. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing mac build. Created 8 years, 3 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_base.h ('k') | ui/gfx/size_f.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/size_base_impl.h
diff --git a/ui/gfx/size_base_impl.h b/ui/gfx/size_base_impl.h
deleted file mode 100644
index 4eca7410f075fea8a8ca73e6cf329216e36e2e70..0000000000000000000000000000000000000000
--- a/ui/gfx/size_base_impl.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ui/gfx/size_base.h"
-
-#include "base/logging.h"
-#include "base/stringprintf.h"
-
-// This file provides the implementation for SizeBaese template and
-// used to instantiate the base class for Size and SizeF classes.
-#if !defined(UI_IMPLEMENTATION)
-#error "This file is intended for UI implementation only"
-#endif
-
-namespace gfx {
-
-template<typename Class, typename Type>
-SizeBase<Class, Type>::SizeBase(Type width, Type height) {
- set_width(width);
- set_height(height);
-}
-
-template<typename Class, typename Type>
-SizeBase<Class, Type>::~SizeBase() {}
-
-template<typename Class, typename Type>
-void SizeBase<Class, Type>::set_width(Type width) {
- if (width < 0) {
- NOTREACHED() << "negative width:" << width;
- width = 0;
- }
- width_ = width;
-}
-
-template<typename Class, typename Type>
-void SizeBase<Class, Type>::set_height(Type height) {
- if (height < 0) {
- NOTREACHED() << "negative height:" << height;
- height = 0;
- }
- height_ = height;
-}
-
-} // namespace gfx
« no previous file with comments | « ui/gfx/size_base.h ('k') | ui/gfx/size_f.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698