summaryrefslogtreecommitdiff
path: root/chromium/ash/wm/panels/panel_window_event_handler.h
blob: 2823b885cc70c8792e189141a8c3157628cc1d76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ASH_WM_PANELS_PANEL_WINDOW_EVENT_HANDLER_H_
#define ASH_WM_PANELS_PANEL_WINDOW_EVENT_HANDLER_H_

#include "ash/wm/toplevel_window_event_handler.h"

namespace aura {
class Window;
}

namespace ash {
namespace internal {

// PanelWindowEventHandler minimizes panels when the user double clicks or
// double taps on the panel header.
class PanelWindowEventHandler : public ToplevelWindowEventHandler {
 public:
  explicit PanelWindowEventHandler(aura::Window* owner);
  virtual ~PanelWindowEventHandler();

  // TopLevelWindowEventHandler:
  virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
  virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;

 private:
  DISALLOW_COPY_AND_ASSIGN(PanelWindowEventHandler);
};

}  // namespace internal
}  // namespace ash

#endif  // ASH_WM_PANELS_PANEL_WINDOW_EVENT_HANDLER_H_