From fcdc0700d90834cd669059b639b49442fa35b80d Mon Sep 17 00:00:00 2001 From: "pkasting@chromium.org" Date: Mon, 20 Apr 2009 16:47:46 +0000 Subject: Hide the Fullscreen exit bubble if the mouse goes idle. It took a depressing amount of time for me to think my way through this algorithm :( Along the way I added an operator=() to convert from POINT to gfx::Point() since doing explicit temp conversion for a case like this annoys me. BUG=10568 Review URL: http://codereview.chromium.org/67265 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14031 0039d316-1c4b-4281-b951-d872f2087c98 --- base/gfx/point.cc | 6 ++++++ base/gfx/point.h | 1 + 2 files changed, 7 insertions(+) (limited to 'base') diff --git a/base/gfx/point.cc b/base/gfx/point.cc index cbe687b..8fb958e 100644 --- a/base/gfx/point.cc +++ b/base/gfx/point.cc @@ -20,6 +20,12 @@ Point::Point(int x, int y) : x_(x), y_(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_; diff --git a/base/gfx/point.h b/base/gfx/point.h index e930889..377efb1 100644 --- a/base/gfx/point.h +++ b/base/gfx/point.h @@ -26,6 +26,7 @@ class Point { Point(int x, int y); #if defined(OS_WIN) explicit Point(const POINT& point); + Point& operator=(const POINT& point); #elif defined(OS_MACOSX) explicit Point(const CGPoint& point); #endif -- cgit v1.1