summaryrefslogtreecommitdiffstats
path: root/ash/launcher/launcher_tooltip_manager.cc
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-18 06:08:18 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-18 06:08:18 +0000
commitd44efe090c5dd46b2857aaaca9c939dfbb3cba0b (patch)
tree2f80a7dbeaebadad5a0755dc3d8b349d31b390fc /ash/launcher/launcher_tooltip_manager.cc
parentefb6409dd196bc229910962753836e9d512905d3 (diff)
downloadchromium_src-d44efe090c5dd46b2857aaaca9c939dfbb3cba0b.zip
chromium_src-d44efe090c5dd46b2857aaaca9c939dfbb3cba0b.tar.gz
chromium_src-d44efe090c5dd46b2857aaaca9c939dfbb3cba0b.tar.bz2
events: Update mouse-event handlers to not return EventResult.
This is the last step. Once this is done, we can possibly hide EventResult. BUG=163618 Review URL: https://codereview.chromium.org/11592011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173653 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/launcher/launcher_tooltip_manager.cc')
-rw-r--r--ash/launcher/launcher_tooltip_manager.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/ash/launcher/launcher_tooltip_manager.cc b/ash/launcher/launcher_tooltip_manager.cc
index dfc2a4b..2435d4f 100644
--- a/ash/launcher/launcher_tooltip_manager.cc
+++ b/ash/launcher/launcher_tooltip_manager.cc
@@ -243,11 +243,11 @@ bool LauncherTooltipManager::IsVisible() {
return widget_ && widget_->IsVisible();
}
-ui::EventResult LauncherTooltipManager::OnMouseEvent(ui::MouseEvent* event) {
+void LauncherTooltipManager::OnMouseEvent(ui::MouseEvent* event) {
DCHECK(event->target());
DCHECK(event);
if (!widget_ || !widget_->IsVisible())
- return ui::ER_UNHANDLED;
+ return;
DCHECK(view_);
DCHECK(launcher_view_);
@@ -255,7 +255,7 @@ ui::EventResult LauncherTooltipManager::OnMouseEvent(ui::MouseEvent* event) {
aura::Window* target = static_cast<aura::Window*>(event->target());
if (widget_->GetNativeWindow()->GetRootWindow() != target->GetRootWindow()) {
CloseSoon();
- return ui::ER_UNHANDLED;
+ return;
}
gfx::Point location_in_launcher_view = event->location();
@@ -274,8 +274,6 @@ ui::EventResult LauncherTooltipManager::OnMouseEvent(ui::MouseEvent* event) {
// the closing event rather than directly calling Close().
CloseSoon();
}
-
- return ui::ER_UNHANDLED;
}
void LauncherTooltipManager::OnTouchEvent(ui::TouchEvent* event) {