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 "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" | 5 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "ash/ash_switches.h" | 9 #include "ash/ash_switches.h" |
| 10 #include "ash/common/shelf/shelf_constants.h" |
10 #include "ash/common/wm/window_state.h" | 11 #include "ash/common/wm/window_state.h" |
11 #include "ash/shelf/shelf.h" | 12 #include "ash/shelf/shelf.h" |
12 #include "ash/shelf/shelf_button.h" | 13 #include "ash/shelf/shelf_button.h" |
13 #include "ash/shelf/shelf_constants.h" | |
14 #include "ash/shelf/shelf_model.h" | 14 #include "ash/shelf/shelf_model.h" |
15 #include "ash/shelf/shelf_util.h" | 15 #include "ash/shelf/shelf_util.h" |
16 #include "ash/shelf/shelf_view.h" | 16 #include "ash/shelf/shelf_view.h" |
17 #include "ash/shell.h" | 17 #include "ash/shell.h" |
18 #include "ash/test/shelf_test_api.h" | 18 #include "ash/test/shelf_test_api.h" |
19 #include "ash/test/shelf_view_test_api.h" | 19 #include "ash/test/shelf_view_test_api.h" |
20 #include "ash/test/shell_test_api.h" | 20 #include "ash/test/shell_test_api.h" |
21 #include "ash/wm/window_state_aura.h" | 21 #include "ash/wm/window_state_aura.h" |
22 #include "ash/wm/window_util.h" | 22 #include "ash/wm/window_util.h" |
23 #include "base/macros.h" | 23 #include "base/macros.h" |
(...skipping 2267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2291 // Close all windows. | 2291 // Close all windows. |
2292 CloseBrowserWindow(browser(), menu1.get(), LauncherContextMenu::MENU_CLOSE); | 2292 CloseBrowserWindow(browser(), menu1.get(), LauncherContextMenu::MENU_CLOSE); |
2293 EXPECT_EQ(0u, BrowserList::GetInstance()->size()); | 2293 EXPECT_EQ(0u, BrowserList::GetInstance()->size()); |
2294 | 2294 |
2295 // Check if "Close" is removed from the context menu. | 2295 // Check if "Close" is removed from the context menu. |
2296 std::unique_ptr<LauncherContextMenu> menu2 = | 2296 std::unique_ptr<LauncherContextMenu> menu2 = |
2297 CreateLauncherContextMenu(ash::TYPE_BROWSER_SHORTCUT); | 2297 CreateLauncherContextMenu(ash::TYPE_BROWSER_SHORTCUT); |
2298 ASSERT_FALSE( | 2298 ASSERT_FALSE( |
2299 IsItemPresentInMenu(menu2.get(), LauncherContextMenu::MENU_CLOSE)); | 2299 IsItemPresentInMenu(menu2.get(), LauncherContextMenu::MENU_CLOSE)); |
2300 } | 2300 } |
OLD | NEW |