| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/launcher_context_menu.h" | 5 #include "chrome/browser/ui/ash/launcher/launcher_context_menu.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "ash/public/cpp/shelf_item.h" | 9 #include "ash/public/cpp/shelf_item.h" |
| 10 #include "ash/root_window_controller.h" | 10 #include "ash/root_window_controller.h" |
| 11 #include "ash/shell.h" | 11 #include "ash/shell.h" |
| 12 #include "ash/test/ash_test_base.h" | 12 #include "ash/test/ash_test_base.h" |
| 13 #include "ash/test/ash_test_helper.h" | 13 #include "ash/test/ash_test_helper.h" |
| 14 #include "ash/test/shell_test_api.h" | 14 #include "ash/test/shell_test_api.h" |
| 15 #include "ash/test/test_shell_delegate.h" | 15 #include "ash/test/test_shell_delegate.h" |
| 16 #include "ash/wm_window.h" | |
| 17 #include "base/macros.h" | 16 #include "base/macros.h" |
| 18 #include "base/memory/ptr_util.h" | 17 #include "base/memory/ptr_util.h" |
| 19 #include "chrome/app/chrome_command_ids.h" | 18 #include "chrome/app/chrome_command_ids.h" |
| 20 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 19 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
| 21 #include "chrome/browser/profiles/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
| 22 #include "chrome/browser/ui/app_list/arc/arc_app_test.h" | 21 #include "chrome/browser/ui/app_list/arc/arc_app_test.h" |
| 23 #include "chrome/browser/ui/ash/launcher/arc_app_shelf_id.h" | 22 #include "chrome/browser/ui/ash/launcher/arc_app_shelf_id.h" |
| 24 #include "chrome/browser/ui/ash/launcher/arc_launcher_context_menu.h" | 23 #include "chrome/browser/ui/ash/launcher/arc_launcher_context_menu.h" |
| 25 #include "chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controll
er.h" | 24 #include "chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controll
er.h" |
| 26 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" | 25 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 ash::TYPE_BROWSER_SHORTCUT, GetShelf(primary_id))); | 323 ash::TYPE_BROWSER_SHORTCUT, GetShelf(primary_id))); |
| 325 std::unique_ptr<LauncherContextMenu> secondary_menu(CreateLauncherContextMenu( | 324 std::unique_ptr<LauncherContextMenu> secondary_menu(CreateLauncherContextMenu( |
| 326 ash::TYPE_BROWSER_SHORTCUT, GetShelf(secondary_id))); | 325 ash::TYPE_BROWSER_SHORTCUT, GetShelf(secondary_id))); |
| 327 EXPECT_FALSE(IsItemPresentInMenu(primary_menu.get(), | 326 EXPECT_FALSE(IsItemPresentInMenu(primary_menu.get(), |
| 328 LauncherContextMenu::MENU_AUTO_HIDE)); | 327 LauncherContextMenu::MENU_AUTO_HIDE)); |
| 329 EXPECT_TRUE(IsItemPresentInMenu(secondary_menu.get(), | 328 EXPECT_TRUE(IsItemPresentInMenu(secondary_menu.get(), |
| 330 LauncherContextMenu::MENU_AUTO_HIDE)); | 329 LauncherContextMenu::MENU_AUTO_HIDE)); |
| 331 } | 330 } |
| 332 | 331 |
| 333 } // namespace | 332 } // namespace |
| OLD | NEW |