diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-05 05:41:09 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-05 05:41:09 +0000 |
commit | a52ca4671f27eb2eae418eecea0e5db58ff7bf08 (patch) | |
tree | c1a1c922e2eba3ee67750b6a62837741ac5311b3 /views/view_win.cc | |
parent | 848cd2743e2c4135976acf975b15e6f3c18edf8c (diff) | |
download | chromium_src-a52ca4671f27eb2eae418eecea0e5db58ff7bf08.zip chromium_src-a52ca4671f27eb2eae418eecea0e5db58ff7bf08.tar.gz chromium_src-a52ca4671f27eb2eae418eecea0e5db58ff7bf08.tar.bz2 |
Implement some basic functionality in RootView and View.
Review URL: http://codereview.chromium.org/119231
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17714 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/view_win.cc')
-rw-r--r-- | views/view_win.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/views/view_win.cc b/views/view_win.cc index cff8e53..c61363d 100644 --- a/views/view_win.cc +++ b/views/view_win.cc @@ -50,22 +50,6 @@ ViewAccessibilityWrapper* View::GetViewAccessibilityWrapper() { return accessibility_.get(); } -bool View::HitTest(const gfx::Point& l) const { - if (l.x() >= 0 && l.x() < static_cast<int>(width()) && - l.y() >= 0 && l.y() < static_cast<int>(height())) { - if (HasHitTestMask()) { - gfx::Path mask; - GetHitTestMask(&mask); - ScopedHRGN rgn(mask.CreateHRGN()); - return !!PtInRegion(rgn, l.x(), l.y()); - } - // No mask, but inside our bounds. - return true; - } - // Outside our bounds. - return false; -} - void View::Focus() { // Set the native focus to the root view window so it receives the keyboard // messages. |