| 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/panels/base_panel_browser_test.h" | 5 #include "chrome/browser/ui/panels/base_panel_browser_test.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 12 #include "base/string_number_conversions.h" | 12 #include "base/string_number_conversions.h" |
| 13 #include "chrome/browser/extensions/extension_service.h" | 13 #include "chrome/browser/extensions/extension_service.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
| 16 #include "chrome/browser/ui/panels/native_panel.h" | 16 #include "chrome/browser/ui/panels/native_panel.h" |
| 17 #include "chrome/browser/ui/panels/panel_mouse_watcher.h" | 17 #include "chrome/browser/ui/panels/panel_mouse_watcher.h" |
| 18 #include "chrome/browser/ui/panels/panel_strip.h" | 18 #include "chrome/browser/ui/panels/panel_strip.h" |
| 19 #include "chrome/browser/ui/panels/test_panel_active_state_observer.h" | 19 #include "chrome/browser/ui/panels/test_panel_active_state_observer.h" |
| 20 #include "chrome/browser/ui/panels/test_panel_mouse_watcher.h" | 20 #include "chrome/browser/ui/panels/test_panel_mouse_watcher.h" |
| 21 #include "chrome/common/chrome_notification_types.h" | 21 #include "chrome/common/chrome_notification_types.h" |
| 22 #include "chrome/common/chrome_paths.h" | 22 #include "chrome/common/chrome_paths.h" |
| 23 #include "chrome/common/chrome_switches.h" | 23 #include "chrome/common/chrome_switches.h" |
| 24 #include "chrome/common/extensions/extension_manifest_constants.h" | 24 #include "chrome/common/extensions/extension_manifest_constants.h" |
| 25 #include "chrome/test/base/interactive_test_utils.h" |
| 25 #include "chrome/test/base/ui_test_utils.h" | 26 #include "chrome/test/base/ui_test_utils.h" |
| 26 #include "content/public/browser/notification_service.h" | 27 #include "content/public/browser/notification_service.h" |
| 27 #include "content/public/common/url_constants.h" | 28 #include "content/public/common/url_constants.h" |
| 28 #include "content/public/test/web_contents_tester.h" | 29 #include "content/public/test/web_contents_tester.h" |
| 29 #include "sync/api/string_ordinal.h" | 30 #include "sync/api/string_ordinal.h" |
| 30 | 31 |
| 31 #if defined(OS_LINUX) | 32 #if defined(OS_LINUX) |
| 32 #include "chrome/browser/ui/browser_window.h" | 33 #include "chrome/browser/ui/browser_window.h" |
| 33 #include "ui/base/x/x11_util.h" | 34 #include "ui/base/x/x11_util.h" |
| 34 #endif | 35 #endif |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 } | 464 } |
| 464 | 465 |
| 465 void BasePanelBrowserTest::MoveMouse(const gfx::Point& position) { | 466 void BasePanelBrowserTest::MoveMouse(const gfx::Point& position) { |
| 466 PanelManager::GetInstance()->mouse_watcher()->NotifyMouseMovement(position); | 467 PanelManager::GetInstance()->mouse_watcher()->NotifyMouseMovement(position); |
| 467 } | 468 } |
| 468 | 469 |
| 469 std::string BasePanelBrowserTest::MakePanelName(int index) { | 470 std::string BasePanelBrowserTest::MakePanelName(int index) { |
| 470 std::string panel_name("Panel"); | 471 std::string panel_name("Panel"); |
| 471 return panel_name + base::IntToString(index); | 472 return panel_name + base::IntToString(index); |
| 472 } | 473 } |
| OLD | NEW |