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_impl.h" | 5 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "ash/ash_switches.h" | 9 #include "ash/common/ash_switches.h" |
10 #include "ash/common/shelf/shelf_constants.h" | 10 #include "ash/common/shelf/shelf_constants.h" |
11 #include "ash/common/shelf/shelf_model.h" | 11 #include "ash/common/shelf/shelf_model.h" |
12 #include "ash/common/wm/window_state.h" | 12 #include "ash/common/wm/window_state.h" |
13 #include "ash/shelf/shelf.h" | 13 #include "ash/shelf/shelf.h" |
14 #include "ash/shelf/shelf_button.h" | 14 #include "ash/shelf/shelf_button.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" |
(...skipping 2275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2295 // Close all windows. | 2295 // Close all windows. |
2296 CloseBrowserWindow(browser(), menu1.get(), LauncherContextMenu::MENU_CLOSE); | 2296 CloseBrowserWindow(browser(), menu1.get(), LauncherContextMenu::MENU_CLOSE); |
2297 EXPECT_EQ(0u, BrowserList::GetInstance()->size()); | 2297 EXPECT_EQ(0u, BrowserList::GetInstance()->size()); |
2298 | 2298 |
2299 // Check if "Close" is removed from the context menu. | 2299 // Check if "Close" is removed from the context menu. |
2300 std::unique_ptr<LauncherContextMenu> menu2 = | 2300 std::unique_ptr<LauncherContextMenu> menu2 = |
2301 CreateLauncherContextMenu(ash::TYPE_BROWSER_SHORTCUT); | 2301 CreateLauncherContextMenu(ash::TYPE_BROWSER_SHORTCUT); |
2302 ASSERT_FALSE( | 2302 ASSERT_FALSE( |
2303 IsItemPresentInMenu(menu2.get(), LauncherContextMenu::MENU_CLOSE)); | 2303 IsItemPresentInMenu(menu2.get(), LauncherContextMenu::MENU_CLOSE)); |
2304 } | 2304 } |
OLD | NEW |