diff options
Diffstat (limited to 'chromium/ash/wm/gestures/shelf_gesture_handler.h')
-rw-r--r-- | chromium/ash/wm/gestures/shelf_gesture_handler.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/chromium/ash/wm/gestures/shelf_gesture_handler.h b/chromium/ash/wm/gestures/shelf_gesture_handler.h new file mode 100644 index 00000000000..90dfd7c923e --- /dev/null +++ b/chromium/ash/wm/gestures/shelf_gesture_handler.h @@ -0,0 +1,43 @@ +// Copyright (c) 2012 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_GESTURES_SHELF_GESTURE_HANDLER_H_ +#define ASH_WM_GESTURES_SHELF_GESTURE_HANDLER_H_ + +#include "base/basictypes.h" +#include "base/memory/scoped_ptr.h" + +namespace ui { +class GestureEvent; +} + +namespace ash { +namespace internal { + +class TrayGestureHandler; + +// This manages gestures on the shelf (e.g. launcher, status tray) that affects +// the shelf visibility. +class ShelfGestureHandler { + public: + ShelfGestureHandler(); + virtual ~ShelfGestureHandler(); + + // Processes a gesture event and updates the status of the shelf when + // appropriate. Returns true of the gesture has been handled and it should not + // be processed any farther, false otherwise. + bool ProcessGestureEvent(const ui::GestureEvent& event); + + private: + bool drag_in_progress_; + + scoped_ptr<TrayGestureHandler> tray_handler_; + + DISALLOW_COPY_AND_ASSIGN(ShelfGestureHandler); +}; + +} // namespace internal +} // namespace ash + +#endif // ASH_WM_GESTURES_SHELF_GESTURE_HANDLER_H_ |