diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-20 16:47:46 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-20 16:47:46 +0000 |
commit | fcdc0700d90834cd669059b639b49442fa35b80d (patch) | |
tree | e7b659b31b88b81ba4dd00a2f4c87893e1e8621e /base/gfx | |
parent | 07214a8e5f5b2c3aa5aa55d6c24e67f2e829a60a (diff) | |
download | chromium_src-fcdc0700d90834cd669059b639b49442fa35b80d.zip chromium_src-fcdc0700d90834cd669059b639b49442fa35b80d.tar.gz chromium_src-fcdc0700d90834cd669059b639b49442fa35b80d.tar.bz2 |
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
Diffstat (limited to 'base/gfx')
-rw-r--r-- | base/gfx/point.cc | 6 | ||||
-rw-r--r-- | base/gfx/point.h | 1 |
2 files changed, 7 insertions, 0 deletions
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 |