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

Unified Diff: ash/shelf/shelf_bezel_event_filter.h

Issue 2237613002: mash: Migrate some misc ShelfLayoutManager deps to ash common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move ShelfBezelEventHandler to WmShelfAura. Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: ash/shelf/shelf_bezel_event_filter.h
diff --git a/ash/shelf/shelf_bezel_event_filter.h b/ash/shelf/shelf_bezel_event_filter.h
deleted file mode 100644
index ff7d14d034512bf54b17b35569edaff4c529507f..0000000000000000000000000000000000000000
--- a/ash/shelf/shelf_bezel_event_filter.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// 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_SHELF_SHELF_BEZEL_EVENT_FILTER_H_
-#define ASH_SHELF_SHELF_BEZEL_EVENT_FILTER_H_
-
-#include "base/macros.h"
-#include "ui/events/event_handler.h"
-
-namespace gfx {
-class Point;
-class Rect;
-}
-
-namespace ash {
-class ShelfLayoutManager;
-
-// Detects and forwards touch gestures that occur on a bezel sensor to the
-// shelf.
-class ShelfBezelEventFilter : public ui::EventHandler {
- public:
- explicit ShelfBezelEventFilter(ShelfLayoutManager* shelf_layout_manager);
- ~ShelfBezelEventFilter() override;
-
- // Overridden from ui::EventHandler:
- void OnGestureEvent(ui::GestureEvent* event) override;
-
- private:
- bool IsShelfOnBezel(const gfx::Rect& screen, const gfx::Point& point) const;
-
- ShelfLayoutManager* shelf_layout_manager_;
- bool in_touch_drag_;
-
- DISALLOW_COPY_AND_ASSIGN(ShelfBezelEventFilter);
-};
-
-} // namespace ash
-
-#endif // ASH_SHELF_SHELF_BEZEL_EVENT_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698