| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/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 25 matching lines...) Expand all Loading... |
| 36 #include "chrome/browser/automation/automation_provider_observers.h" | 36 #include "chrome/browser/automation/automation_provider_observers.h" |
| 37 #include "chrome/browser/automation/automation_tab_tracker.h" | 37 #include "chrome/browser/automation/automation_tab_tracker.h" |
| 38 #include "chrome/browser/automation/automation_util.h" | 38 #include "chrome/browser/automation/automation_util.h" |
| 39 #include "chrome/browser/automation/automation_window_tracker.h" | 39 #include "chrome/browser/automation/automation_window_tracker.h" |
| 40 #include "chrome/browser/bookmarks/bookmark_model.h" | 40 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 41 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 41 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
| 42 #include "chrome/browser/bookmarks/bookmark_storage.h" | 42 #include "chrome/browser/bookmarks/bookmark_storage.h" |
| 43 #include "chrome/browser/browser_process.h" | 43 #include "chrome/browser/browser_process.h" |
| 44 #include "chrome/browser/browser_shutdown.h" | 44 #include "chrome/browser/browser_shutdown.h" |
| 45 #include "chrome/browser/content_settings/host_content_settings_map.h" | 45 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 46 #include "chrome/browser/debugger/devtools_window.h" | 46 #include "chrome/browser/devtools/devtools_window.h" |
| 47 #include "chrome/browser/download/download_prefs.h" | 47 #include "chrome/browser/download/download_prefs.h" |
| 48 #include "chrome/browser/download/download_service.h" | 48 #include "chrome/browser/download/download_service.h" |
| 49 #include "chrome/browser/download/download_service_factory.h" | 49 #include "chrome/browser/download/download_service_factory.h" |
| 50 #include "chrome/browser/download/download_shelf.h" | 50 #include "chrome/browser/download/download_shelf.h" |
| 51 #include "chrome/browser/download/save_package_file_picker.h" | 51 #include "chrome/browser/download/save_package_file_picker.h" |
| 52 #include "chrome/browser/extensions/browser_action_test_util.h" | 52 #include "chrome/browser/extensions/browser_action_test_util.h" |
| 53 #include "chrome/browser/extensions/crx_installer.h" | 53 #include "chrome/browser/extensions/crx_installer.h" |
| 54 #include "chrome/browser/extensions/extension_action.h" | 54 #include "chrome/browser/extensions/extension_action.h" |
| 55 #include "chrome/browser/extensions/extension_action_manager.h" | 55 #include "chrome/browser/extensions/extension_action_manager.h" |
| 56 #include "chrome/browser/extensions/extension_host.h" | 56 #include "chrome/browser/extensions/extension_host.h" |
| (...skipping 6219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6276 if (g_browser_process) | 6276 if (g_browser_process) |
| 6277 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); | 6277 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); |
| 6278 } | 6278 } |
| 6279 | 6279 |
| 6280 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, | 6280 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, |
| 6281 WebContents* tab) { | 6281 WebContents* tab) { |
| 6282 TabStripModel* tab_strip = browser->tab_strip_model(); | 6282 TabStripModel* tab_strip = browser->tab_strip_model(); |
| 6283 if (tab_strip->GetActiveWebContents() != tab) | 6283 if (tab_strip->GetActiveWebContents() != tab) |
| 6284 tab_strip->ActivateTabAt(tab_strip->GetIndexOfWebContents(tab), true); | 6284 tab_strip->ActivateTabAt(tab_strip->GetIndexOfWebContents(tab), true); |
| 6285 } | 6285 } |
| OLD | NEW |