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

Unified Diff: ash/common/system/tray/tray_event_filter.h

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 10 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
« no previous file with comments | « ash/common/system/tray/tray_details_view_unittest.cc ('k') | ash/common/system/tray/tray_event_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/tray_event_filter.h
diff --git a/ash/common/system/tray/tray_event_filter.h b/ash/common/system/tray/tray_event_filter.h
deleted file mode 100644
index 8d7b50fcc098234c6ee1fd4892cb8d955700dc00..0000000000000000000000000000000000000000
--- a/ash/common/system/tray/tray_event_filter.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// 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_COMMON_SYSTEM_TRAY_TRAY_EVENT_FILTER_H_
-#define ASH_COMMON_SYSTEM_TRAY_TRAY_EVENT_FILTER_H_
-
-#include <set>
-
-#include "base/macros.h"
-#include "ui/views/pointer_watcher.h"
-
-namespace gfx {
-class Point;
-}
-
-namespace ui {
-class PointerEvent;
-}
-
-namespace ash {
-class TrayBubbleWrapper;
-
-// Handles events for a tray bubble, e.g. to close the system tray bubble when
-// the user clicks outside it.
-class TrayEventFilter : public views::PointerWatcher {
- public:
- TrayEventFilter();
- ~TrayEventFilter() override;
-
- void AddWrapper(TrayBubbleWrapper* wrapper);
- void RemoveWrapper(TrayBubbleWrapper* wrapper);
-
- // views::PointerWatcher:
- void OnPointerEventObserved(const ui::PointerEvent& event,
- const gfx::Point& location_in_screen,
- views::Widget* target) override;
-
- private:
- void ProcessPressedEvent(const gfx::Point& location_in_screen,
- views::Widget* target);
-
- std::set<TrayBubbleWrapper*> wrappers_;
-
- DISALLOW_COPY_AND_ASSIGN(TrayEventFilter);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_SYSTEM_TRAY_TRAY_EVENT_FILTER_H_
« no previous file with comments | « ash/common/system/tray/tray_details_view_unittest.cc ('k') | ash/common/system/tray/tray_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698