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

Unified Diff: athena/wm/window_overview_mode.cc

Issue 480293003: Adding functions to the window_list_provider for accessing the activities window list (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated the other functions as well Created 6 years, 3 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: athena/wm/window_overview_mode.cc
diff --git a/athena/wm/window_overview_mode.cc b/athena/wm/window_overview_mode.cc
index 7b3c73e0fc77156a093cf49fe34945a4f3cc8441..2263b13fb3b7186d71caf415d780fc11ec6b15ee 100644
--- a/athena/wm/window_overview_mode.cc
+++ b/athena/wm/window_overview_mode.cc
@@ -180,7 +180,8 @@ class WindowOverviewModeImpl : public WindowOverviewMode,
virtual ~WindowOverviewModeImpl() {
container_->set_target_handler(container_->delegate());
RemoveAnimationObserver();
- aura::Window::Windows windows = window_list_provider_->GetWindowList();
+ aura::Window::Windows windows =
+ window_list_provider_->GetCurrentWindowList();
if (windows.empty())
return;
std::for_each(windows.begin(), windows.end(),
@@ -193,7 +194,8 @@ class WindowOverviewModeImpl : public WindowOverviewMode,
// positions. The transforms are set in the |kWindowOverviewState| property of
// the windows.
void ComputeTerminalStatesForAllWindows() {
- aura::Window::Windows windows = window_list_provider_->GetWindowList();
+ aura::Window::Windows windows =
+ window_list_provider_->GetCurrentWindowList();
size_t index = 0;
for (aura::Window::Windows::const_reverse_iterator iter = windows.rbegin();
@@ -252,7 +254,8 @@ class WindowOverviewModeImpl : public WindowOverviewMode,
// Sets the initial position for the windows for the overview mode.
void SetInitialWindowStates() {
- aura::Window::Windows windows = window_list_provider_->GetWindowList();
+ aura::Window::Windows windows =
+ window_list_provider_->GetCurrentWindowList();
// The initial overview state of the topmost three windows.
const float kInitialProgress[] = { 0.5f, 0.05f, 0.01f };
size_t index = 0;
@@ -312,7 +315,8 @@ class WindowOverviewModeImpl : public WindowOverviewMode,
void DoScroll(float delta_y) {
const float kEpsilon = 1e-3f;
float delta_y_p = std::abs(delta_y) / GetScrollableHeight();
- aura::Window::Windows windows = window_list_provider_->GetWindowList();
+ aura::Window::Windows windows =
+ window_list_provider_->GetCurrentWindowList();
if (delta_y < 0) {
// Scroll up. Start with the top-most (i.e. behind-most in terms of
// z-index) window, and try to scroll them up.
@@ -505,7 +509,8 @@ class WindowOverviewModeImpl : public WindowOverviewMode,
dragged_window_->layer()->SetOpacity(kMinOpacity);
}
- const aura::Window::Windows list = window_list_provider_->GetWindowList();
+ const aura::Window::Windows list =
+ window_list_provider_->GetCurrentWindowList();
CHECK(!list.empty());
if (list.front() == dragged_window_) {
// There's no window behind |dragged_window_|. So move the windows in
« athena/wm/window_list_provider_impl.cc ('K') | « athena/wm/window_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698