OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <algorithm> | 5 #include <algorithm> |
6 | 6 |
7 #include "ash/accessibility_delegate.h" | 7 #include "ash/accessibility_delegate.h" |
8 #include "ash/drag_drop/drag_drop_controller.h" | 8 #include "ash/drag_drop/drag_drop_controller.h" |
9 #include "ash/root_window_controller.h" | 9 #include "ash/root_window_controller.h" |
10 #include "ash/screen_util.h" | 10 #include "ash/screen_util.h" |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 window_selector_->grid_list_[index]->window_list_.get(); | 196 window_selector_->grid_list_[index]->window_list_.get(); |
197 } | 197 } |
198 | 198 |
199 const aura::Window* GetSelectedWindow() { | 199 const aura::Window* GetSelectedWindow() { |
200 WindowSelector* ws = ash::Shell::GetInstance()-> | 200 WindowSelector* ws = ash::Shell::GetInstance()-> |
201 window_selector_controller()->window_selector_.get(); | 201 window_selector_controller()->window_selector_.get(); |
202 return ws->grid_list_[ws->selected_grid_index_]-> | 202 return ws->grid_list_[ws->selected_grid_index_]-> |
203 SelectedWindow()->SelectionWindow(); | 203 SelectedWindow()->SelectionWindow(); |
204 } | 204 } |
205 | 205 |
206 const bool selection_widget_active() { | 206 bool selection_widget_active() { |
207 WindowSelector* ws = ash::Shell::GetInstance()-> | 207 WindowSelector* ws = ash::Shell::GetInstance()-> |
208 window_selector_controller()->window_selector_.get(); | 208 window_selector_controller()->window_selector_.get(); |
209 return ws->grid_list_[ws->selected_grid_index_]->is_selecting(); | 209 return ws->grid_list_[ws->selected_grid_index_]->is_selecting(); |
210 } | 210 } |
211 | 211 |
212 bool showing_filter_widget() { | 212 bool showing_filter_widget() { |
213 WindowSelector* ws = ash::Shell::GetInstance()-> | 213 WindowSelector* ws = ash::Shell::GetInstance()-> |
214 window_selector_controller()->window_selector_.get(); | 214 window_selector_controller()->window_selector_.get(); |
215 return ws->text_filter_widget_->GetNativeWindow()->layer()-> | 215 return ws->text_filter_widget_->GetNativeWindow()->layer()-> |
216 GetTargetTransform().IsIdentity(); | 216 GetTargetTransform().IsIdentity(); |
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1189 // Switch to overview mode. | 1189 // Switch to overview mode. |
1190 ToggleOverview(); | 1190 ToggleOverview(); |
1191 ASSERT_TRUE(IsSelecting()); | 1191 ASSERT_TRUE(IsSelecting()); |
1192 | 1192 |
1193 // Tap should now exit overview mode. | 1193 // Tap should now exit overview mode. |
1194 generator.GestureTapAt(point_in_background_page); | 1194 generator.GestureTapAt(point_in_background_page); |
1195 EXPECT_FALSE(IsSelecting()); | 1195 EXPECT_FALSE(IsSelecting()); |
1196 } | 1196 } |
1197 | 1197 |
1198 } // namespace ash | 1198 } // namespace ash |
OLD | NEW |