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> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
16 #include "base/json/json_reader.h" | 16 #include "base/json/json_reader.h" |
17 #include "base/json/json_writer.h" | 17 #include "base/json/json_writer.h" |
18 #include "base/json/string_escape.h" | 18 #include "base/json/string_escape.h" |
19 #include "base/path_service.h" | 19 #include "base/path_service.h" |
20 #include "base/prefs/pref_service.h" | 20 #include "base/prefs/pref_service.h" |
21 #include "base/process.h" | 21 #include "base/process.h" |
22 #include "base/process_util.h" | 22 #include "base/process_util.h" |
| 23 #include "base/sequenced_task_runner.h" |
23 #include "base/stringprintf.h" | 24 #include "base/stringprintf.h" |
24 #include "base/task/sequenced_task_runner.h" | |
25 #include "base/threading/thread_restrictions.h" | 25 #include "base/threading/thread_restrictions.h" |
26 #include "base/time.h" | 26 #include "base/time.h" |
27 #include "base/utf_string_conversions.h" | 27 #include "base/utf_string_conversions.h" |
28 #include "chrome/app/chrome_command_ids.h" | 28 #include "chrome/app/chrome_command_ids.h" |
29 #include "chrome/browser/autocomplete/autocomplete_controller.h" | 29 #include "chrome/browser/autocomplete/autocomplete_controller.h" |
30 #include "chrome/browser/autocomplete/autocomplete_match.h" | 30 #include "chrome/browser/autocomplete/autocomplete_match.h" |
31 #include "chrome/browser/autocomplete/autocomplete_result.h" | 31 #include "chrome/browser/autocomplete/autocomplete_result.h" |
32 #include "chrome/browser/automation/automation_browser_tracker.h" | 32 #include "chrome/browser/automation/automation_browser_tracker.h" |
33 #include "chrome/browser/automation/automation_provider_json.h" | 33 #include "chrome/browser/automation/automation_provider_json.h" |
34 #include "chrome/browser/automation/automation_provider_list.h" | 34 #include "chrome/browser/automation/automation_provider_list.h" |
(...skipping 5906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5941 if (g_browser_process) | 5941 if (g_browser_process) |
5942 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); | 5942 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); |
5943 } | 5943 } |
5944 | 5944 |
5945 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, | 5945 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, |
5946 WebContents* tab) { | 5946 WebContents* tab) { |
5947 TabStripModel* tab_strip = browser->tab_strip_model(); | 5947 TabStripModel* tab_strip = browser->tab_strip_model(); |
5948 if (tab_strip->GetActiveWebContents() != tab) | 5948 if (tab_strip->GetActiveWebContents() != tab) |
5949 tab_strip->ActivateTabAt(tab_strip->GetIndexOfWebContents(tab), true); | 5949 tab_strip->ActivateTabAt(tab_strip->GetIndexOfWebContents(tab), true); |
5950 } | 5950 } |
OLD | NEW |