| 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 "ash/shelf/shelf_window_watcher.h" | 5 #include "ash/shelf/shelf_window_watcher.h" |
| 6 | 6 |
| 7 #include "ash/ash_switches.h" | 7 #include "ash/ash_switches.h" |
| 8 #include "ash/shelf/shelf_item_types.h" | 8 #include "ash/shelf/shelf_item_types.h" |
| 9 #include "ash/shelf/shelf_model.h" | 9 #include "ash/shelf/shelf_model.h" |
| 10 #include "ash/shelf/shelf_util.h" | 10 #include "ash/shelf/shelf_util.h" |
| 11 #include "ash/shell.h" | 11 #include "ash/shell.h" |
| 12 #include "ash/shell_window_ids.h" | 12 #include "ash/shell_window_ids.h" |
| 13 #include "ash/test/ash_test_base.h" | 13 #include "ash/test/ash_test_base.h" |
| 14 #include "ash/test/shell_test_api.h" | 14 #include "ash/test/shell_test_api.h" |
| 15 #include "ash/wm/window_resizer.h" | 15 #include "ash/wm/window_resizer.h" |
| 16 #include "ash/wm/window_state.h" | 16 #include "ash/wm/window_state.h" |
| 17 #include "ash/wm/window_state_aura.h" |
| 17 #include "ash/wm/window_util.h" | 18 #include "ash/wm/window_util.h" |
| 18 #include "base/command_line.h" | 19 #include "base/command_line.h" |
| 19 #include "ui/aura/client/aura_constants.h" | 20 #include "ui/aura/client/aura_constants.h" |
| 20 #include "ui/aura/window.h" | 21 #include "ui/aura/window.h" |
| 21 #include "ui/base/hit_test.h" | 22 #include "ui/base/hit_test.h" |
| 22 | 23 |
| 23 namespace ash { | 24 namespace ash { |
| 24 | 25 |
| 25 class ShelfWindowWatcherTest : public test::AshTestBase { | 26 class ShelfWindowWatcherTest : public test::AshTestBase { |
| 26 public: | 27 public: |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 // container before fininshing the dragging. | 276 // container before fininshing the dragging. |
| 276 EXPECT_TRUE(wm::GetWindowState(window.get())->is_dragged()); | 277 EXPECT_TRUE(wm::GetWindowState(window.get())->is_dragged()); |
| 277 new_parent->AddChild(window.get()); | 278 new_parent->AddChild(window.get()); |
| 278 EXPECT_EQ(1, model_->item_count()); | 279 EXPECT_EQ(1, model_->item_count()); |
| 279 } | 280 } |
| 280 EXPECT_FALSE(wm::GetWindowState(window.get())->is_dragged()); | 281 EXPECT_FALSE(wm::GetWindowState(window.get())->is_dragged()); |
| 281 EXPECT_EQ(1, model_->item_count()); | 282 EXPECT_EQ(1, model_->item_count()); |
| 282 } | 283 } |
| 283 | 284 |
| 284 } // namespace ash | 285 } // namespace ash |
| OLD | NEW |