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

Side by Side Diff: ash/wm/overview/window_selector_unittest.cc

Issue 551373005: Enable ash shell and unit tests in GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: non-exported base for windows 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 unified diff | Download patch
« no previous file with comments | « ash/wm/maximize_mode/workspace_backdrop_delegate.h ('k') | ui/views/examples/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ash/wm/maximize_mode/workspace_backdrop_delegate.h ('k') | ui/views/examples/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698