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

Unified Diff: cc/geometry.h

Issue 11358240: ui: Add methods to Rect classes to get points at each of the rect's corners. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update cc 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 | « cc/cc.gyp ('k') | cc/gl_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/geometry.h
diff --git a/cc/geometry.h b/cc/geometry.h
deleted file mode 100644
index 5a0bf3d04e0b57022480c2c1b79263de59562561..0000000000000000000000000000000000000000
--- a/cc/geometry.h
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright 2010 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.
-
-#ifndef CC_GEOMETRY_H_
-#define CC_GEOMETRY_H_
-
-#include "ui/gfx/rect.h"
-#include "ui/gfx/rect_f.h"
-#include "ui/gfx/vector2d.h"
-#include "ui/gfx/vector2d_f.h"
-
-namespace cc {
-
-inline gfx::Point BottomRight(gfx::Rect rect) {
- return gfx::Point(rect.right(), rect.bottom());
-}
-
-inline gfx::PointF BottomRight(gfx::RectF rect) {
- return gfx::PointF(rect.right(), rect.bottom());
-}
-
-} // namespace cc
-
-#endif // CC_GEOMETRY_H_
« no previous file with comments | « cc/cc.gyp ('k') | cc/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698