summaryrefslogtreecommitdiffstats
path: root/views/event.h
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-15 20:10:16 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-15 20:10:16 +0000
commit7e7c82a55f155887f30816d30d54ce5e8d8f38c4 (patch)
tree0d4e6bad63be82a95570f068c4e425ce087841dd /views/event.h
parent4110e83d3fa76393b865b078948a724f831f816b (diff)
downloadchromium_src-7e7c82a55f155887f30816d30d54ce5e8d8f38c4.zip
chromium_src-7e7c82a55f155887f30816d30d54ce5e8d8f38c4.tar.gz
chromium_src-7e7c82a55f155887f30816d30d54ce5e8d8f38c4.tar.bz2
Attempt 2 at:
Changes the tab close button to a dot, unless you're near the button or the tab is selected. The only difference between this and the first is that I missed a remove from the set if the view was deleted, which resulted in a crash. I've added an interactive test case that covers this. BUG=45743 TEST=none Review URL: http://codereview.chromium.org/2863003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49828 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/event.h')
-rw-r--r--views/event.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/views/event.h b/views/event.h
index 6f96a71..91c0a53 100644
--- a/views/event.h
+++ b/views/event.h
@@ -41,6 +41,8 @@ class Event {
ET_MOUSE_MOVED,
ET_MOUSE_ENTERED,
ET_MOUSE_EXITED,
+ ET_MOUSE_NEAR,
+ ET_MOUSE_EXITED_NEAR,
ET_KEY_PRESSED,
ET_KEY_RELEASED,
ET_MOUSEWHEEL,
@@ -100,7 +102,9 @@ class Event {
type_ == ET_MOUSE_MOVED ||
type_ == ET_MOUSE_ENTERED ||
type_ == ET_MOUSE_EXITED ||
- type_ == ET_MOUSEWHEEL;
+ type_ == ET_MOUSEWHEEL ||
+ type_ == ET_MOUSE_NEAR ||
+ type_ == ET_MOUSE_EXITED_NEAR;
}
#if defined(OS_WIN)