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

Unified Diff: ash/wm/aura/wm_globals_aura.h

Issue 2035543004: Shuffles and renames ash/common/wm classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: random changes for chrome tests 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
Index: ash/wm/aura/wm_globals_aura.h
diff --git a/ash/wm/aura/wm_globals_aura.h b/ash/wm/aura/wm_globals_aura.h
deleted file mode 100644
index 91b55c84b7150ef38b5d949f6d4801b0e219a660..0000000000000000000000000000000000000000
--- a/ash/wm/aura/wm_globals_aura.h
+++ /dev/null
@@ -1,90 +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_WM_AURA_WM_GLOBALS_AURA_H_
-#define ASH_WM_AURA_WM_GLOBALS_AURA_H_
-
-#include <set>
-
-#include "ash/ash_export.h"
-#include "ash/common/wm/wm_globals.h"
-#include "ash/display/window_tree_host_manager.h"
-#include "ash/shell_observer.h"
-#include "ash/wm/aura/wm_lookup_aura.h"
-#include "base/macros.h"
-#include "base/observer_list.h"
-#include "ui/wm/public/activation_change_observer.h"
-
-namespace ash {
-namespace wm {
-
-class ASH_EXPORT WmGlobalsAura : public WmGlobals,
- public aura::client::ActivationChangeObserver,
- public WindowTreeHostManager::Observer,
- public ShellObserver {
- public:
- WmGlobalsAura();
- ~WmGlobalsAura() override;
-
- static WmGlobalsAura* Get();
-
- // WmGlobals:
- WmWindow* NewContainerWindow() override;
- WmWindow* GetFocusedWindow() override;
- WmWindow* GetActiveWindow() override;
- WmWindow* GetPrimaryRootWindow() override;
- WmWindow* GetRootWindowForDisplayId(int64_t display_id) override;
- WmWindow* GetRootWindowForNewWindows() override;
- std::vector<WmWindow*> GetMruWindowList() override;
- std::vector<WmWindow*> GetMruWindowListIgnoreModals() override;
- bool IsForceMaximizeOnFirstRun() override;
- bool IsUserSessionBlocked() override;
- bool IsScreenLocked() override;
- void LockCursor() override;
- void UnlockCursor() override;
- std::vector<WmWindow*> GetAllRootWindows() override;
- void RecordUserMetricsAction(WmUserMetricsAction action) override;
- std::unique_ptr<WindowResizer> CreateDragWindowResizer(
- std::unique_ptr<WindowResizer> next_window_resizer,
- wm::WindowState* window_state) override;
- bool IsOverviewModeSelecting() override;
- bool IsOverviewModeRestoringMinimizedWindows() override;
- void AddActivationObserver(WmActivationObserver* observer) override;
- void RemoveActivationObserver(WmActivationObserver* observer) override;
- void AddDisplayObserver(WmDisplayObserver* observer) override;
- void RemoveDisplayObserver(WmDisplayObserver* observer) override;
- void AddOverviewModeObserver(WmOverviewModeObserver* observer) override;
- void RemoveOverviewModeObserver(WmOverviewModeObserver* observer) override;
-
- private:
- // aura::client::ActivationChangeObserver:
- void OnWindowActivated(ActivationReason reason,
- aura::Window* gained_active,
- aura::Window* lost_active) override;
- void OnAttemptToReactivateWindow(aura::Window* request_active,
- aura::Window* actual_active) override;
-
- // WindowTreeHostManager::Observer:
- void OnDisplayConfigurationChanging() override;
- void OnDisplayConfigurationChanged() override;
-
- // ShellObserver:
- void OnOverviewModeEnded() override;
-
- WmLookupAura wm_lookup_;
- bool added_activation_observer_ = false;
- base::ObserverList<WmActivationObserver> activation_observers_;
-
- bool added_display_observer_ = false;
- base::ObserverList<WmDisplayObserver> display_observers_;
-
- base::ObserverList<WmOverviewModeObserver> overview_mode_observers_;
-
- DISALLOW_COPY_AND_ASSIGN(WmGlobalsAura);
-};
-
-} // namespace wm
-} // namespace ash
-
-#endif // ASH_WM_AURA_WM_GLOBALS_AURA_H_

Powered by Google App Engine
This is Rietveld 408576698