| 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/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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 #include "chrome/browser/ui/app_modal_dialogs/javascript_app_modal_dialog.h" | 101 #include "chrome/browser/ui/app_modal_dialogs/javascript_app_modal_dialog.h" |
| 102 #include "chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h" | 102 #include "chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h" |
| 103 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h" | 103 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h" |
| 104 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" | 104 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" |
| 105 #include "chrome/browser/ui/browser_commands.h" | 105 #include "chrome/browser/ui/browser_commands.h" |
| 106 #include "chrome/browser/ui/browser_finder.h" | 106 #include "chrome/browser/ui/browser_finder.h" |
| 107 #include "chrome/browser/ui/browser_list.h" | 107 #include "chrome/browser/ui/browser_list.h" |
| 108 #include "chrome/browser/ui/browser_window.h" | 108 #include "chrome/browser/ui/browser_window.h" |
| 109 #include "chrome/browser/ui/extensions/application_launch.h" | 109 #include "chrome/browser/ui/extensions/application_launch.h" |
| 110 #include "chrome/browser/ui/find_bar/find_bar.h" | 110 #include "chrome/browser/ui/find_bar/find_bar.h" |
| 111 #include "chrome/browser/ui/fullscreen_controller.h" | 111 #include "chrome/browser/ui/fullscreen/fullscreen_controller.h" |
| 112 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h" | 112 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h" |
| 113 #include "chrome/browser/ui/login/login_prompt.h" | 113 #include "chrome/browser/ui/login/login_prompt.h" |
| 114 #include "chrome/browser/ui/media_stream_infobar_delegate.h" | 114 #include "chrome/browser/ui/media_stream_infobar_delegate.h" |
| 115 #include "chrome/browser/ui/omnibox/location_bar.h" | 115 #include "chrome/browser/ui/omnibox/location_bar.h" |
| 116 #include "chrome/browser/ui/omnibox/omnibox_edit_model.h" | 116 #include "chrome/browser/ui/omnibox/omnibox_edit_model.h" |
| 117 #include "chrome/browser/ui/omnibox/omnibox_view.h" | 117 #include "chrome/browser/ui/omnibox/omnibox_view.h" |
| 118 #include "chrome/browser/ui/search_engines/keyword_editor_controller.h" | 118 #include "chrome/browser/ui/search_engines/keyword_editor_controller.h" |
| 119 #include "chrome/browser/ui/startup/startup_types.h" | 119 #include "chrome/browser/ui/startup/startup_types.h" |
| 120 #include "chrome/browser/ui/tab_contents/tab_contents.h" | 120 #include "chrome/browser/ui/tab_contents/tab_contents.h" |
| 121 #include "chrome/browser/view_type_utils.h" | 121 #include "chrome/browser/view_type_utils.h" |
| 122 #include "chrome/common/automation_constants.h" | 122 #include "chrome/common/automation_constants.h" |
| (...skipping 6612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6735 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); | 6735 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); |
| 6736 } | 6736 } |
| 6737 | 6737 |
| 6738 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, | 6738 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, |
| 6739 WebContents* tab) { | 6739 WebContents* tab) { |
| 6740 if (browser->GetActiveWebContents() != tab) { | 6740 if (browser->GetActiveWebContents() != tab) { |
| 6741 browser->ActivateTabAt(browser->GetIndexOfController( | 6741 browser->ActivateTabAt(browser->GetIndexOfController( |
| 6742 &tab->GetController()), true); | 6742 &tab->GetController()), true); |
| 6743 } | 6743 } |
| 6744 } | 6744 } |
| OLD | NEW |