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

Unified Diff: mash/wm/frame/move_event_handler.h

Issue 2029883002: Moves mash/wm into ash/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_static_assert
Patch Set: move comment Created 4 years, 7 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 | « mash/wm/frame/header_painter_util.cc ('k') | mash/wm/frame/move_event_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/frame/move_event_handler.h
diff --git a/mash/wm/frame/move_event_handler.h b/mash/wm/frame/move_event_handler.h
deleted file mode 100644
index a62f52be2feb94d10182938f455a2d513f40fd91..0000000000000000000000000000000000000000
--- a/mash/wm/frame/move_event_handler.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright 2015 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 MASH_WM_FRAME_MOVE_EVENT_HANDLER_H_
-#define MASH_WM_FRAME_MOVE_EVENT_HANDLER_H_
-
-#include <memory>
-
-#include "ash/common/wm/wm_toplevel_window_event_handler.h"
-#include "base/macros.h"
-#include "ui/aura/window_observer.h"
-#include "ui/events/event_handler.h"
-
-namespace aura {
-class Window;
-}
-
-namespace mus {
-class Window;
-class WindowManagerClient;
-}
-
-namespace ui {
-class CancelModeEvent;
-}
-
-namespace mash {
-namespace wm {
-
-class WmWindowMus;
-
-// EventHandler attached to windows that may be dragged and/or resized. This
-// forwards to WmToplevelWindowEventHandler to handle the actual drag/resize.
-class MoveEventHandler : public ui::EventHandler, public aura::WindowObserver {
- public:
- MoveEventHandler(mus::Window* mus_window,
- mus::WindowManagerClient* window_manager_client,
- aura::Window* aura_window);
- ~MoveEventHandler() override;
-
- private:
- // Removes observer and EventHandler installed on |root_window_|.
- void Detach();
-
- // Overridden from ui::EventHandler:
- void OnMouseEvent(ui::MouseEvent* event) override;
- void OnGestureEvent(ui::GestureEvent* event) override;
- void OnCancelMode(ui::CancelModeEvent* event) override;
-
- // Overridden from aura::WindowObserver:
- void OnWindowDestroying(aura::Window* window) override;
-
- WmWindowMus* wm_window_;
- mus::WindowManagerClient* window_manager_client_;
- // The root window of the aura::Window supplied to the constructor.
- // MoveEventHandler is added as a pre-target handler (and observer) of this.
- aura::Window* root_window_;
- ash::wm::WmToplevelWindowEventHandler toplevel_window_event_handler_;
-
- DISALLOW_COPY_AND_ASSIGN(MoveEventHandler);
-};
-
-} // namespace wm
-} // namespace mash
-
-#endif // MASH_WM_FRAME_MOVE_EVENT_HANDLER_H_
« no previous file with comments | « mash/wm/frame/header_painter_util.cc ('k') | mash/wm/frame/move_event_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698