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

Side by Side Diff: ash/wm/window_state_unittest.cc

Issue 2445583002: Relocate display_manager from ash to ui (Closed)
Patch Set: fix windows build Created 4 years, 1 month 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/system_gesture_event_filter_unittest.cc ('k') | ash/wm/window_util_unittest.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ash/common/wm/window_state.h" 5 #include "ash/common/wm/window_state.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "ash/common/material_design/material_design_controller.h" 9 #include "ash/common/material_design/material_design_controller.h"
10 #include "ash/common/wm/window_state.h" 10 #include "ash/common/wm/window_state.h"
11 #include "ash/common/wm/wm_event.h" 11 #include "ash/common/wm/wm_event.h"
12 #include "ash/display/display_manager.h"
13 #include "ash/test/ash_md_test_base.h" 12 #include "ash/test/ash_md_test_base.h"
14 #include "ash/wm/window_state_aura.h" 13 #include "ash/wm/window_state_aura.h"
15 #include "ui/aura/client/aura_constants.h" 14 #include "ui/aura/client/aura_constants.h"
16 #include "ui/aura/test/test_window_delegate.h" 15 #include "ui/aura/test/test_window_delegate.h"
17 #include "ui/aura/window.h" 16 #include "ui/aura/window.h"
17 #include "ui/display/manager/display_manager.h"
18 #include "ui/display/screen.h" 18 #include "ui/display/screen.h"
19 19
20 namespace ash { 20 namespace ash {
21 namespace wm { 21 namespace wm {
22 namespace { 22 namespace {
23 23
24 class AlwaysMaximizeTestState : public WindowState::State { 24 class AlwaysMaximizeTestState : public WindowState::State {
25 public: 25 public:
26 explicit AlwaysMaximizeTestState(WindowStateType initial_state_type) 26 explicit AlwaysMaximizeTestState(WindowStateType initial_state_type)
27 : state_type_(initial_state_type) {} 27 : state_type_(initial_state_type) {}
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 EXPECT_EQ(work_area, window->bounds()); 389 EXPECT_EQ(work_area, window->bounds());
390 window->SetBounds(new_bounds); 390 window->SetBounds(new_bounds);
391 EXPECT_EQ(work_area, window->bounds()); 391 EXPECT_EQ(work_area, window->bounds());
392 } 392 }
393 393
394 // TODO(skuhne): Add more unit test to verify the correctness for the restore 394 // TODO(skuhne): Add more unit test to verify the correctness for the restore
395 // operation. 395 // operation.
396 396
397 } // namespace wm 397 } // namespace wm
398 } // namespace ash 398 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/system_gesture_event_filter_unittest.cc ('k') | ash/wm/window_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698