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

Unified Diff: gfx/point.cc

Issue 6246027: Move src/gfx/ to src/ui/gfx... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | « gfx/point.h ('k') | gfx/rect.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gfx/point.cc
===================================================================
--- gfx/point.cc (revision 73487)
+++ gfx/point.cc (working copy)
@@ -1,56 +0,0 @@
-// Copyright (c) 2006-2008 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 "gfx/point.h"
-
-#if defined(OS_WIN)
-#include <windows.h>
-#endif
-
-#include <ostream>
-
-namespace gfx {
-
-Point::Point() : x_(0), y_(0) {
-}
-
-Point::Point(int x, int y) : x_(x), y_(y) {
-}
-
-#if defined(OS_WIN)
-Point::Point(DWORD point) {
- POINTS points = MAKEPOINTS(point);
- x_ = points.x;
- y_ = points.y;
-}
-
-Point::Point(const POINT& point) : x_(point.x), y_(point.y) {
-}
-
-Point& Point::operator=(const POINT& point) {
- x_ = point.x;
- y_ = point.y;
- return *this;
-}
-
-POINT Point::ToPOINT() const {
- POINT p;
- p.x = x_;
- p.y = y_;
- return p;
-}
-#elif defined(OS_MACOSX)
-Point::Point(const CGPoint& point) : x_(point.x), y_(point.y) {
-}
-
-CGPoint Point::ToCGPoint() const {
- return CGPointMake(x_, y_);
-}
-#endif
-
-std::ostream& operator<<(std::ostream& out, const gfx::Point& p) {
- return out << p.x() << "," << p.y();
-}
-
-} // namespace gfx
« no previous file with comments | « gfx/point.h ('k') | gfx/rect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698