Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(501)

Side by Side Diff: ash/wm/panels/panel_window_event_handler.h

Issue 17175019: Add double click and tap handler to minimize attached panels. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/wm/panels/panel_window_event_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 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.
4
5 #ifndef ASH_WM_PANELS_PANEL_WINDOW_EVENT_HANDLER_H_
6 #define ASH_WM_PANELS_PANEL_WINDOW_EVENT_HANDLER_H_
7
8 #include "ash/wm/toplevel_window_event_handler.h"
9
10 namespace aura {
11 class Window;
12 }
13
14 namespace ash {
15 namespace internal {
16
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();
23
24 // TopLevelWindowEventHandler:
25 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
26 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
27
28 private:
29 DISALLOW_COPY_AND_ASSIGN(PanelWindowEventHandler);
30 };
31
32 } // namespace internal
33 } // namespace ash
34
35 #endif // ASH_WM_PANELS_PANEL_WINDOW_EVENT_HANDLER_H_
OLDNEW
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/wm/panels/panel_window_event_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698