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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 #include "extensions/common/permissions/permissions_data.h" | 145 #include "extensions/common/permissions/permissions_data.h" |
146 #include "extensions/common/url_pattern.h" | 146 #include "extensions/common/url_pattern.h" |
147 #include "extensions/common/url_pattern_set.h" | 147 #include "extensions/common/url_pattern_set.h" |
148 #include "net/cookies/cookie_store.h" | 148 #include "net/cookies/cookie_store.h" |
149 #include "third_party/WebKit/public/web/WebInputEvent.h" | 149 #include "third_party/WebKit/public/web/WebInputEvent.h" |
150 #include "ui/base/ui_base_types.h" | 150 #include "ui/base/ui_base_types.h" |
151 #include "ui/events/event_constants.h" | 151 #include "ui/events/event_constants.h" |
152 #include "ui/events/keycodes/keyboard_codes.h" | 152 #include "ui/events/keycodes/keyboard_codes.h" |
153 | 153 |
154 #if defined(ENABLE_CONFIGURATION_POLICY) | 154 #if defined(ENABLE_CONFIGURATION_POLICY) |
155 #include "chrome/browser/policy/policy_service.h" | 155 #include "components/policy/core/common/policy_service.h" |
156 #endif | 156 #endif |
157 | 157 |
158 #if defined(OS_CHROMEOS) | 158 #if defined(OS_CHROMEOS) |
159 #include "chromeos/dbus/dbus_thread_manager.h" | 159 #include "chromeos/dbus/dbus_thread_manager.h" |
160 #endif | 160 #endif |
161 | 161 |
162 #if defined(OS_MACOSX) | 162 #if defined(OS_MACOSX) |
163 #include <mach/mach.h> | 163 #include <mach/mach.h> |
164 #include <mach/mach_vm.h> | 164 #include <mach/mach_vm.h> |
165 #endif | 165 #endif |
(...skipping 5290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5456 if (g_browser_process) | 5456 if (g_browser_process) |
5457 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); | 5457 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); |
5458 } | 5458 } |
5459 | 5459 |
5460 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, | 5460 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, |
5461 WebContents* tab) { | 5461 WebContents* tab) { |
5462 TabStripModel* tab_strip = browser->tab_strip_model(); | 5462 TabStripModel* tab_strip = browser->tab_strip_model(); |
5463 if (tab_strip->GetActiveWebContents() != tab) | 5463 if (tab_strip->GetActiveWebContents() != tab) |
5464 tab_strip->ActivateTabAt(tab_strip->GetIndexOfWebContents(tab), true); | 5464 tab_strip->ActivateTabAt(tab_strip->GetIndexOfWebContents(tab), true); |
5465 } | 5465 } |
OLD | NEW |