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/automation/testing_automation_provider.h" | 5 #include "chrome/browser/automation/testing_automation_provider.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "chrome/browser/automation/automation_provider_list.h" | 34 #include "chrome/browser/automation/automation_provider_list.h" |
35 #include "chrome/browser/automation/automation_provider_observers.h" | 35 #include "chrome/browser/automation/automation_provider_observers.h" |
36 #include "chrome/browser/automation/automation_tab_tracker.h" | 36 #include "chrome/browser/automation/automation_tab_tracker.h" |
37 #include "chrome/browser/automation/automation_util.h" | 37 #include "chrome/browser/automation/automation_util.h" |
38 #include "chrome/browser/automation/automation_window_tracker.h" | 38 #include "chrome/browser/automation/automation_window_tracker.h" |
39 #include "chrome/browser/bookmarks/bookmark_model.h" | 39 #include "chrome/browser/bookmarks/bookmark_model.h" |
40 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 40 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
41 #include "chrome/browser/bookmarks/bookmark_storage.h" | 41 #include "chrome/browser/bookmarks/bookmark_storage.h" |
42 #include "chrome/browser/browser_process.h" | 42 #include "chrome/browser/browser_process.h" |
43 #include "chrome/browser/browser_shutdown.h" | 43 #include "chrome/browser/browser_shutdown.h" |
| 44 #include "chrome/browser/chrome_notification_types.h" |
44 #include "chrome/browser/content_settings/host_content_settings_map.h" | 45 #include "chrome/browser/content_settings/host_content_settings_map.h" |
45 #include "chrome/browser/devtools/devtools_window.h" | 46 #include "chrome/browser/devtools/devtools_window.h" |
46 #include "chrome/browser/download/download_prefs.h" | 47 #include "chrome/browser/download/download_prefs.h" |
47 #include "chrome/browser/download/download_service.h" | 48 #include "chrome/browser/download/download_service.h" |
48 #include "chrome/browser/download/download_service_factory.h" | 49 #include "chrome/browser/download/download_service_factory.h" |
49 #include "chrome/browser/download/download_shelf.h" | 50 #include "chrome/browser/download/download_shelf.h" |
50 #include "chrome/browser/download/save_package_file_picker.h" | 51 #include "chrome/browser/download/save_package_file_picker.h" |
51 #include "chrome/browser/extensions/browser_action_test_util.h" | 52 #include "chrome/browser/extensions/browser_action_test_util.h" |
52 #include "chrome/browser/extensions/crx_installer.h" | 53 #include "chrome/browser/extensions/crx_installer.h" |
53 #include "chrome/browser/extensions/extension_action.h" | 54 #include "chrome/browser/extensions/extension_action.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 #include "chrome/browser/ui/login/login_prompt.h" | 103 #include "chrome/browser/ui/login/login_prompt.h" |
103 #include "chrome/browser/ui/omnibox/location_bar.h" | 104 #include "chrome/browser/ui/omnibox/location_bar.h" |
104 #include "chrome/browser/ui/omnibox/omnibox_edit_model.h" | 105 #include "chrome/browser/ui/omnibox/omnibox_edit_model.h" |
105 #include "chrome/browser/ui/omnibox/omnibox_view.h" | 106 #include "chrome/browser/ui/omnibox/omnibox_view.h" |
106 #include "chrome/browser/ui/search_engines/keyword_editor_controller.h" | 107 #include "chrome/browser/ui/search_engines/keyword_editor_controller.h" |
107 #include "chrome/browser/ui/startup/startup_types.h" | 108 #include "chrome/browser/ui/startup/startup_types.h" |
108 #include "chrome/common/automation_constants.h" | 109 #include "chrome/common/automation_constants.h" |
109 #include "chrome/common/automation_id.h" | 110 #include "chrome/common/automation_id.h" |
110 #include "chrome/common/automation_messages.h" | 111 #include "chrome/common/automation_messages.h" |
111 #include "chrome/common/chrome_constants.h" | 112 #include "chrome/common/chrome_constants.h" |
112 #include "chrome/common/chrome_notification_types.h" | |
113 #include "chrome/common/chrome_paths.h" | 113 #include "chrome/common/chrome_paths.h" |
114 #include "chrome/common/chrome_switches.h" | 114 #include "chrome/common/chrome_switches.h" |
115 #include "chrome/common/extensions/background_info.h" | 115 #include "chrome/common/extensions/background_info.h" |
116 #include "chrome/common/extensions/extension.h" | 116 #include "chrome/common/extensions/extension.h" |
117 #include "chrome/common/extensions/manifest_url_handler.h" | 117 #include "chrome/common/extensions/manifest_url_handler.h" |
118 #include "chrome/common/extensions/permissions/permission_set.h" | 118 #include "chrome/common/extensions/permissions/permission_set.h" |
119 #include "chrome/common/extensions/permissions/permissions_data.h" | 119 #include "chrome/common/extensions/permissions/permissions_data.h" |
120 #include "chrome/common/pref_names.h" | 120 #include "chrome/common/pref_names.h" |
121 #include "chrome/common/render_messages.h" | 121 #include "chrome/common/render_messages.h" |
122 #include "content/public/browser/browser_child_process_host_iterator.h" | 122 #include "content/public/browser/browser_child_process_host_iterator.h" |
(...skipping 5482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5605 if (g_browser_process) | 5605 if (g_browser_process) |
5606 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); | 5606 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); |
5607 } | 5607 } |
5608 | 5608 |
5609 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, | 5609 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, |
5610 WebContents* tab) { | 5610 WebContents* tab) { |
5611 TabStripModel* tab_strip = browser->tab_strip_model(); | 5611 TabStripModel* tab_strip = browser->tab_strip_model(); |
5612 if (tab_strip->GetActiveWebContents() != tab) | 5612 if (tab_strip->GetActiveWebContents() != tab) |
5613 tab_strip->ActivateTabAt(tab_strip->GetIndexOfWebContents(tab), true); | 5613 tab_strip->ActivateTabAt(tab_strip->GetIndexOfWebContents(tab), true); |
5614 } | 5614 } |
OLD | NEW |