Chromium Code Reviews| Index: ash/launcher/launcher_tooltip_manager.cc |
| diff --git a/ash/launcher/launcher_tooltip_manager.cc b/ash/launcher/launcher_tooltip_manager.cc |
| index 2d92e0f5e3bb9c88901b068f92c2caf32c462e95..4397adc5e3e55e22d8ac96d8086130b2ce7d1ea3 100644 |
| --- a/ash/launcher/launcher_tooltip_manager.cc |
| +++ b/ash/launcher/launcher_tooltip_manager.cc |
| @@ -256,6 +256,12 @@ void LauncherTooltipManager::OnMouseEvent(ui::MouseEvent* event) { |
| DCHECK(view_); |
| DCHECK(launcher_view_); |
| + // When mouse button is pressed in anywhere, tooltip should to be closed. |
|
Mr4D (OOO till 08-26)
2013/09/03 15:00:27
Could you change the comment to something like:
P
simonhong_
2013/09/04 00:41:01
Done.
|
| + if (event->type() == ui::ET_MOUSE_PRESSED) { |
| + CloseSoon(); |
| + return; |
| + } |
| + |
| aura::Window* target = static_cast<aura::Window*>(event->target()); |
| if (widget_->GetNativeWindow()->GetRootWindow() != target->GetRootWindow()) { |
| CloseSoon(); |