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

Unified Diff: ash/common/wm/mru_window_tracker.h

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 10 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/maximize_mode/workspace_backdrop_delegate.cc ('k') | ash/common/wm/mru_window_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/mru_window_tracker.h
diff --git a/ash/common/wm/mru_window_tracker.h b/ash/common/wm/mru_window_tracker.h
deleted file mode 100644
index 1c820e398fc7e9ec9ffeee2a420916b995f47ee5..0000000000000000000000000000000000000000
--- a/ash/common/wm/mru_window_tracker.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright 2013 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_MRU_WINDOW_TRACKER_H_
-#define ASH_COMMON_WM_MRU_WINDOW_TRACKER_H_
-
-#include <list>
-#include <vector>
-
-#include "ash/ash_export.h"
-#include "ash/common/wm_activation_observer.h"
-#include "base/macros.h"
-#include "ui/aura/window_observer.h"
-
-namespace ash {
-
-class WmWindow;
-
-// Maintains a most recently used list of windows. This is used for window
-// cycling using Alt+Tab and overview mode.
-class ASH_EXPORT MruWindowTracker : public WmActivationObserver,
- public aura::WindowObserver {
- public:
- using WindowList = std::vector<WmWindow*>;
-
- MruWindowTracker();
- ~MruWindowTracker() override;
-
- // Returns the set of windows which can be cycled through using the tracked
- // list of most recently used windows.
- WindowList BuildMruWindowList() const;
-
- // This does the same thing as the above, but ignores the system modal dialog
- // state and hence the returned list could contain more windows if a system
- // modal dialog window is present.
- WindowList BuildWindowListIgnoreModal() const;
-
- // Starts or stops ignoring window activations. If no longer ignoring
- // activations the currently active window is moved to the front of the
- // MRU window list. Used by WindowCycleList to avoid adding all cycled
- // windows to the front of the MRU window list.
- void SetIgnoreActivations(bool ignore);
-
- private:
- // Updates the mru_windows_ list to insert/move |active_window| at/to the
- // front.
- void SetActiveWindow(WmWindow* active_window);
-
- // Overridden from WmActivationObserver:
- void OnWindowActivated(WmWindow* gained_active,
- WmWindow* lost_active) override;
-
- // Overridden from aura::WindowObserver:
- void OnWindowDestroyed(aura::Window* window) override;
-
- // List of windows that have been activated in containers that we cycle
- // through, sorted by most recently used.
- std::list<WmWindow*> mru_windows_;
-
- bool ignore_window_activations_;
-
- DISALLOW_COPY_AND_ASSIGN(MruWindowTracker);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_WM_MRU_WINDOW_TRACKER_H_
« no previous file with comments | « ash/common/wm/maximize_mode/workspace_backdrop_delegate.cc ('k') | ash/common/wm/mru_window_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698