Windows should animate when they are about to get docked at screen edges.
[chromium-blink-merge.git] / ash / wm / panels / panel_window_event_handler.h
blob2823b885cc70c8792e189141a8c3157628cc1d76
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 "ash/wm/toplevel_window_event_handler.h"
10 namespace aura {
11 class Window;
14 namespace ash {
15 namespace internal {
17 // PanelWindowEventHandler minimizes panels when the user double clicks or
18 // double taps on the panel header.
19 class PanelWindowEventHandler : public ToplevelWindowEventHandler {
20 public:
21 explicit PanelWindowEventHandler(aura::Window* owner);
22 virtual ~PanelWindowEventHandler();
24 // TopLevelWindowEventHandler:
25 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
26 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
28 private:
29 DISALLOW_COPY_AND_ASSIGN(PanelWindowEventHandler);
32 } // namespace internal
33 } // namespace ash
35 #endif // ASH_WM_PANELS_PANEL_WINDOW_EVENT_HANDLER_H_