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

Unified Diff: ash/mus/bridge/wm_window_mus.h

Issue 2625873007: Promotes WmWindowMus functions to WmWindowAura and nukes WmWindowMus (Closed)
Patch Set: merge Created 3 years, 11 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/mus/bridge/wm_shell_mus.cc ('k') | ash/mus/bridge/wm_window_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/bridge/wm_window_mus.h
diff --git a/ash/mus/bridge/wm_window_mus.h b/ash/mus/bridge/wm_window_mus.h
deleted file mode 100644
index 548309478f0d2f1be8e57acc36341cd66290fb95..0000000000000000000000000000000000000000
--- a/ash/mus/bridge/wm_window_mus.h
+++ /dev/null
@@ -1,66 +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.
-
-#ifndef ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_
-#define ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_
-
-#include <memory>
-
-#include "ash/aura/wm_window_aura.h"
-#include "base/macros.h"
-
-namespace aura {
-class Window;
-}
-
-namespace views {
-class Widget;
-}
-
-namespace ash {
-namespace mus {
-
-// WmWindow implementation for mus.
-//
-// WmWindowMus is tied to the life of the underlying aura::Window (it is stored
-// as an owned property).
-class WmWindowMus : public WmWindowAura {
- public:
- explicit WmWindowMus(aura::Window* window);
- // NOTE: this class is owned by the corresponding window. You shouldn't delete
- // TODO(sky): friend deleter and make private.
- ~WmWindowMus() override;
-
- // Returns a WmWindow for an aura::Window, creating if necessary.
- static WmWindowMus* Get(aura::Window* window) {
- return const_cast<WmWindowMus*>(
- Get(const_cast<const aura::Window*>(window)));
- }
- static const WmWindowMus* Get(const aura::Window* window);
-
- static WmWindowMus* Get(views::Widget* widget);
-
- static WmWindowMus* AsWmWindowMus(WmWindow* window) {
- return static_cast<WmWindowMus*>(window);
- }
- static const WmWindowMus* AsWmWindowMus(const WmWindow* window) {
- return static_cast<const WmWindowMus*>(window);
- }
-
- // Returns true if this window is considered a shell window container.
- bool IsContainer() const;
-
- // WmWindow:
- WmShell* GetShell() const override;
- void CloseWidget() override;
- void AddLimitedPreTargetHandler(ui::EventHandler* handler) override;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(WmWindowMus);
-};
-
-} // namespace mus
-} // namespace ash
-
-#endif // ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_
« no previous file with comments | « ash/mus/bridge/wm_shell_mus.cc ('k') | ash/mus/bridge/wm_window_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698