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

Unified Diff: ash/common/wm_shell_common.h

Issue 2115663002: Folds methods in WmShellCommon to WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 6 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/wm_shell.cc ('k') | ash/common/wm_shell_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm_shell_common.h
diff --git a/ash/common/wm_shell_common.h b/ash/common/wm_shell_common.h
deleted file mode 100644
index d504c4eba32ba2fc68220e11795c3fa66bfb38c3..0000000000000000000000000000000000000000
--- a/ash/common/wm_shell_common.h
+++ /dev/null
@@ -1,53 +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_COMMON_WM_SHELL_COMMON_H_
-#define ASH_COMMON_WM_SHELL_COMMON_H_
-
-#include <memory>
-
-#include "ash/ash_export.h"
-#include "base/macros.h"
-#include "base/observer_list.h"
-
-namespace ash {
-
-class MruWindowTracker;
-class ShellObserver;
-class WmWindow;
-
-// Contains code used by both shell implementations.
-class ASH_EXPORT WmShellCommon {
- public:
- WmShellCommon();
- ~WmShellCommon();
-
- MruWindowTracker* mru_window_tracker() { return mru_window_tracker_.get(); }
-
- void CreateMruWindowTracker();
- void DeleteMruWindowTracker();
-
- // ShellObserver related functions:
- void AddShellObserver(ShellObserver* observer);
- void RemoveShellObserver(ShellObserver* observer);
- base::ObserverList<ShellObserver>* shell_observers() {
- return &shell_observers_;
- }
-
- // Notifies |observers_| when entering or exiting pinned mode for
- // |pinned_window|. Entering or exiting can be checked by looking at
- // |pinned_window|'s window state.
- void NotifyPinnedStateChanged(WmWindow* pinned_window);
-
- private:
- std::unique_ptr<MruWindowTracker> mru_window_tracker_;
-
- base::ObserverList<ShellObserver> shell_observers_;
-
- DISALLOW_COPY_AND_ASSIGN(WmShellCommon);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_WM_SHELL_COMMON_H_
« no previous file with comments | « ash/common/wm_shell.cc ('k') | ash/common/wm_shell_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698