| Index: ash/common/shelf/shelf_tooltip_manager.cc
|
| diff --git a/ash/common/shelf/shelf_tooltip_manager.cc b/ash/common/shelf/shelf_tooltip_manager.cc
|
| index 85028953f4e6d3b9f1953e7db6886f1b5cf4316e..adf34ca93f3c851741f58c2ec767d66af9e2f721 100644
|
| --- a/ash/common/shelf/shelf_tooltip_manager.cc
|
| +++ b/ash/common/shelf/shelf_tooltip_manager.cc
|
| @@ -198,18 +198,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::OnPointerEventObserved(
|
| + 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::OnMouseEvent(ui::MouseEvent* event) {
|
|
|