Only fsync leveldb's directory when the manifest is being updated.
[chromium-blink-merge.git] / ash / wm / gestures / shelf_gesture_handler.h
blob90dfd7c923e8ef3ca3cf557de31b57f128a5551c
1 // Copyright (c) 2012 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_GESTURES_SHELF_GESTURE_HANDLER_H_
6 #define ASH_WM_GESTURES_SHELF_GESTURE_HANDLER_H_
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
11 namespace ui {
12 class GestureEvent;
15 namespace ash {
16 namespace internal {
18 class TrayGestureHandler;
20 // This manages gestures on the shelf (e.g. launcher, status tray) that affects
21 // the shelf visibility.
22 class ShelfGestureHandler {
23 public:
24 ShelfGestureHandler();
25 virtual ~ShelfGestureHandler();
27 // Processes a gesture event and updates the status of the shelf when
28 // appropriate. Returns true of the gesture has been handled and it should not
29 // be processed any farther, false otherwise.
30 bool ProcessGestureEvent(const ui::GestureEvent& event);
32 private:
33 bool drag_in_progress_;
35 scoped_ptr<TrayGestureHandler> tray_handler_;
37 DISALLOW_COPY_AND_ASSIGN(ShelfGestureHandler);
40 } // namespace internal
41 } // namespace ash
43 #endif // ASH_WM_GESTURES_SHELF_GESTURE_HANDLER_H_