| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "apps/native_app_window.h" | 7 #include "apps/native_app_window.h" |
| 8 #include "apps/shell_window.h" | 8 #include "apps/shell_window.h" |
| 9 #include "apps/shell_window_registry.h" | 9 #include "apps/shell_window_registry.h" |
| 10 #include "ash/ash_switches.h" | 10 #include "ash/ash_switches.h" |
| 11 #include "ash/display/display_controller.h" | 11 #include "ash/display/display_controller.h" |
| 12 #include "ash/launcher/launcher.h" | 12 #include "ash/launcher/launcher.h" |
| 13 #include "ash/launcher/launcher_model.h" | 13 #include "ash/launcher/launcher_model.h" |
| 14 #include "ash/launcher/launcher_util.h" | 14 #include "ash/launcher/launcher_util.h" |
| 15 #include "ash/launcher/launcher_view.h" | 15 #include "ash/launcher/launcher_view.h" |
| 16 #include "ash/shell.h" | 16 #include "ash/shell.h" |
| 17 #include "ash/test/launcher_view_test_api.h" | 17 #include "ash/test/launcher_view_test_api.h" |
| 18 #include "ash/test/shell_test_api.h" | 18 #include "ash/test/shell_test_api.h" |
| 19 #include "ash/wm/window_util.h" | 19 #include "ash/wm/window_util.h" |
| 20 #include "base/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
| 21 #include "chrome/browser/apps/app_browsertest_util.h" |
| 21 #include "chrome/browser/automation/automation_util.h" | 22 #include "chrome/browser/automation/automation_util.h" |
| 22 #include "chrome/browser/chrome_notification_types.h" | 23 #include "chrome/browser/chrome_notification_types.h" |
| 23 #include "chrome/browser/extensions/extension_apitest.h" | 24 #include "chrome/browser/extensions/extension_apitest.h" |
| 24 #include "chrome/browser/extensions/extension_browsertest.h" | 25 #include "chrome/browser/extensions/extension_browsertest.h" |
| 25 #include "chrome/browser/extensions/extension_function_test_utils.h" | 26 #include "chrome/browser/extensions/extension_function_test_utils.h" |
| 26 #include "chrome/browser/extensions/extension_service.h" | 27 #include "chrome/browser/extensions/extension_service.h" |
| 27 #include "chrome/browser/extensions/extension_system.h" | 28 #include "chrome/browser/extensions/extension_system.h" |
| 28 #include "chrome/browser/extensions/extension_test_message_listener.h" | 29 #include "chrome/browser/extensions/extension_test_message_listener.h" |
| 29 #include "chrome/browser/extensions/platform_app_browsertest_util.h" | |
| 30 #include "chrome/browser/profiles/profile.h" | 30 #include "chrome/browser/profiles/profile.h" |
| 31 #include "chrome/browser/ui/app_list/app_list_service.h" | 31 #include "chrome/browser/ui/app_list/app_list_service.h" |
| 32 #include "chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controll
er.h" | 32 #include "chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controll
er.h" |
| 33 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.h" | 33 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.h" |
| 34 #include "chrome/browser/ui/ash/launcher/launcher_item_controller.h" | 34 #include "chrome/browser/ui/ash/launcher/launcher_item_controller.h" |
| 35 #include "chrome/browser/ui/browser.h" | 35 #include "chrome/browser/ui/browser.h" |
| 36 #include "chrome/browser/ui/browser_commands.h" | 36 #include "chrome/browser/ui/browser_commands.h" |
| 37 #include "chrome/browser/ui/browser_finder.h" | 37 #include "chrome/browser/ui/browser_finder.h" |
| 38 #include "chrome/browser/ui/browser_list.h" | 38 #include "chrome/browser/ui/browser_list.h" |
| 39 #include "chrome/browser/ui/browser_window.h" | 39 #include "chrome/browser/ui/browser_window.h" |
| (...skipping 1533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1573 EXPECT_TRUE(ash::wm::IsWindowMinimized(window)); | 1573 EXPECT_TRUE(ash::wm::IsWindowMinimized(window)); |
| 1574 | 1574 |
| 1575 // Activate again. This doesn't create new browser. | 1575 // Activate again. This doesn't create new browser. |
| 1576 // It activates window. | 1576 // It activates window. |
| 1577 item_controller->Activate(); | 1577 item_controller->Activate(); |
| 1578 running_browser = chrome::GetTotalBrowserCount(); | 1578 running_browser = chrome::GetTotalBrowserCount(); |
| 1579 EXPECT_EQ(1u, running_browser); | 1579 EXPECT_EQ(1u, running_browser); |
| 1580 EXPECT_TRUE(item_controller->IsOpen()); | 1580 EXPECT_TRUE(item_controller->IsOpen()); |
| 1581 EXPECT_FALSE(ash::wm::IsWindowMinimized(window)); | 1581 EXPECT_FALSE(ash::wm::IsWindowMinimized(window)); |
| 1582 } | 1582 } |
| OLD | NEW |