diff options
author | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-30 22:13:32 +0000 |
---|---|---|
committer | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-30 22:13:32 +0000 |
commit | b99603ceb9cbec4a3b1ca9ac535f6b1cbc951bb8 (patch) | |
tree | 2f9074d5ad8acf95156fc9c390646eca935d232e /ppapi/cpp/rect.cc | |
parent | 004f2cf5d5eb19764260b1f513738be15ae77d47 (diff) | |
download | chromium_src-b99603ceb9cbec4a3b1ca9ac535f6b1cbc951bb8.zip chromium_src-b99603ceb9cbec4a3b1ca9ac535f6b1cbc951bb8.tar.gz chromium_src-b99603ceb9cbec4a3b1ca9ac535f6b1cbc951bb8.tar.bz2 |
Move some functions out of win_util and into hwnd_util, and into a new win/shell file.
This also moves two functions that were only called once from win_util and inwo window_win and download_util, respectively.
TEST=it compiles
BUG=none
Review URL: http://codereview.chromium.org/6035011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70321 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp/rect.cc')
-rw-r--r-- | ppapi/cpp/rect.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/ppapi/cpp/rect.cc b/ppapi/cpp/rect.cc index b57be2d..ef347dc 100644 --- a/ppapi/cpp/rect.cc +++ b/ppapi/cpp/rect.cc @@ -34,13 +34,6 @@ void Rect::Offset(int32_t horizontal, int32_t vertical) { rect_.point.y += vertical; } -void Rect::swap(Rect& other) { - std::swap(rect_.point.x, other.rect_.point.x); - std::swap(rect_.point.y, other.rect_.point.y); - std::swap(rect_.size.width, other.rect_.size.width); - std::swap(rect_.size.height, other.rect_.size.height); -} - bool Rect::Contains(int32_t point_x, int32_t point_y) const { return (point_x >= x()) && (point_x < right()) && (point_y >= y()) && (point_y < bottom()); |