Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / ash / wm / panels / panel_window_event_handler.h
blob35e63aada634e3118da776358852f32fbae76a1d
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef ASH_WM_PANELS_PANEL_WINDOW_EVENT_HANDLER_H_
6 #define ASH_WM_PANELS_PANEL_WINDOW_EVENT_HANDLER_H_
8 #include "ui/events/event_handler.h"
10 namespace ash {
12 // PanelWindowEventHandler minimizes panels when the user double clicks or
13 // double taps on the panel header.
14 class PanelWindowEventHandler : public ui::EventHandler {
15 public:
16 PanelWindowEventHandler();
17 virtual ~PanelWindowEventHandler();
19 // ui::EventHandler:
20 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
21 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
23 private:
24 DISALLOW_COPY_AND_ASSIGN(PanelWindowEventHandler);
27 } // namespace ash
29 #endif // ASH_WM_PANELS_PANEL_WINDOW_EVENT_HANDLER_H_