| Index: ash/shelf/shelf_tooltip_manager.cc
|
| diff --git a/ash/shelf/shelf_tooltip_manager.cc b/ash/shelf/shelf_tooltip_manager.cc
|
| index 35a83a23d6808631583798d291725a3777f2df40..7837d8ff906a680fa9b6775b16d76c4e26fe45b2 100644
|
| --- a/ash/shelf/shelf_tooltip_manager.cc
|
| +++ b/ash/shelf/shelf_tooltip_manager.cc
|
| @@ -173,18 +173,13 @@ void ShelfTooltipManager::ShowTooltipWithDelay(views::View* view) {
|
| }
|
| }
|
|
|
| -void ShelfTooltipManager::OnMousePressed(const ui::MouseEvent& event,
|
| - const gfx::Point& location_in_screen,
|
| - views::Widget* target) {
|
| - // Close on any mouse press events inside or outside the tooltip.
|
| - Close();
|
| -}
|
| -
|
| -void ShelfTooltipManager::OnTouchPressed(const ui::TouchEvent& event,
|
| - const gfx::Point& location_in_screen,
|
| - views::Widget* target) {
|
| - // Close on any touch press events inside or outside the tooltip.
|
| - Close();
|
| +void ShelfTooltipManager::OnPointerWatcherEvent(
|
| + const ui::PointerEvent& event,
|
| + const gfx::Point& location_in_screen,
|
| + views::Widget* target) {
|
| + // Close on any press events inside or outside the tooltip.
|
| + if (event.type() == ui::ET_POINTER_DOWN)
|
| + Close();
|
| }
|
|
|
| void ShelfTooltipManager::OnEvent(ui::Event* event) {
|
|
|