| Index: ash/pointer_watcher_delegate_aura.h
|
| diff --git a/ash/pointer_watcher_delegate_aura.h b/ash/pointer_watcher_delegate_aura.h
|
| deleted file mode 100644
|
| index 2c47e20ed72cf1d40c71f6284897a36e5c0b26a9..0000000000000000000000000000000000000000
|
| --- a/ash/pointer_watcher_delegate_aura.h
|
| +++ /dev/null
|
| @@ -1,64 +0,0 @@
|
| -// Copyright 2016 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.
|
| -
|
| -#include "ash/ash_export.h"
|
| -#include "ash/common/pointer_watcher_delegate.h"
|
| -#include "base/macros.h"
|
| -#include "base/observer_list.h"
|
| -#include "ui/events/event_handler.h"
|
| -
|
| -namespace gfx {
|
| -class Point;
|
| -}
|
| -
|
| -namespace ui {
|
| -class LocatedEvent;
|
| -class PointerEvent;
|
| -}
|
| -
|
| -namespace views {
|
| -class Widget;
|
| -}
|
| -
|
| -namespace ash {
|
| -
|
| -// Support for PointerWatchers in non-mus ash, implemented with a pre-target
|
| -// EventHandler on the Shell.
|
| -class ASH_EXPORT PointerWatcherDelegateAura : public PointerWatcherDelegate,
|
| - public ui::EventHandler {
|
| - public:
|
| - PointerWatcherDelegateAura();
|
| - ~PointerWatcherDelegateAura() override;
|
| -
|
| - // PointerWatcherDelegate:
|
| - void AddPointerWatcher(views::PointerWatcher* watcher,
|
| - bool wants_moves) override;
|
| - void RemovePointerWatcher(views::PointerWatcher* watcher) override;
|
| -
|
| - // ui::EventHandler:
|
| - void OnMouseEvent(ui::MouseEvent* event) override;
|
| - void OnTouchEvent(ui::TouchEvent* event) override;
|
| -
|
| - private:
|
| - gfx::Point GetLocationInScreen(const ui::LocatedEvent& event) const;
|
| - views::Widget* GetTargetWidget(const ui::LocatedEvent& event) const;
|
| -
|
| - // Calls OnPointerEventObserved() on the appropriate set of watchers as
|
| - // determined by the type of event. |original_event| is the original
|
| - // event supplied to OnMouseEvent()/OnTouchEvent(), |pointer_event| is
|
| - // |original_event| converted to a PointerEvent.
|
| - void NotifyWatchers(const ui::PointerEvent& pointer_event,
|
| - const ui::LocatedEvent& original_event);
|
| -
|
| - // The true parameter to ObserverList indicates the list must be empty on
|
| - // destruction. Two sets of observers are maintained, one for observers not
|
| - // needing moves |non_move_watchers_| and |move_watchers_| for those
|
| - // observers wanting moves too.
|
| - base::ObserverList<views::PointerWatcher, true> non_move_watchers_;
|
| - base::ObserverList<views::PointerWatcher, true> move_watchers_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(PointerWatcherDelegateAura);
|
| -};
|
| -
|
| -} // namespace ash
|
|
|