OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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/automation_provider.h" | 5 #include "chrome/browser/automation/automation_provider.h" |
6 | 6 |
| 7 #include "app/message_box_flags.h" |
7 #include "base/file_version_info.h" | 8 #include "base/file_version_info.h" |
8 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
9 #include "base/path_service.h" | 10 #include "base/path_service.h" |
10 #include "base/string_util.h" | 11 #include "base/string_util.h" |
11 #include "base/thread.h" | 12 #include "base/thread.h" |
12 #include "chrome/app/chrome_dll_resource.h" | 13 #include "chrome/app/chrome_dll_resource.h" |
13 #include "chrome/browser/app_modal_dialog.h" | 14 #include "chrome/browser/app_modal_dialog.h" |
14 #include "chrome/browser/app_modal_dialog_queue.h" | 15 #include "chrome/browser/app_modal_dialog_queue.h" |
15 #include "chrome/browser/automation/automation_provider_list.h" | 16 #include "chrome/browser/automation/automation_provider_list.h" |
16 #include "chrome/browser/automation/url_request_failed_dns_job.h" | 17 #include "chrome/browser/automation/url_request_failed_dns_job.h" |
17 #include "chrome/browser/automation/url_request_mock_http_job.h" | 18 #include "chrome/browser/automation/url_request_mock_http_job.h" |
18 #include "chrome/browser/automation/url_request_slow_download_job.h" | 19 #include "chrome/browser/automation/url_request_slow_download_job.h" |
19 #include "chrome/browser/browser_window.h" | 20 #include "chrome/browser/browser_window.h" |
20 #include "chrome/browser/dom_operation_notification_details.h" | 21 #include "chrome/browser/dom_operation_notification_details.h" |
21 #include "chrome/browser/download/download_manager.h" | 22 #include "chrome/browser/download/download_manager.h" |
22 #include "chrome/browser/find_bar.h" | 23 #include "chrome/browser/find_bar.h" |
23 #include "chrome/browser/find_bar_controller.h" | 24 #include "chrome/browser/find_bar_controller.h" |
24 #include "chrome/browser/find_notification_details.h" | 25 #include "chrome/browser/find_notification_details.h" |
25 #include "chrome/browser/location_bar.h" | 26 #include "chrome/browser/location_bar.h" |
26 #include "chrome/browser/renderer_host/render_view_host.h" | 27 #include "chrome/browser/renderer_host/render_view_host.h" |
27 #include "chrome/browser/ssl/ssl_manager.h" | 28 #include "chrome/browser/ssl/ssl_manager.h" |
28 #include "chrome/browser/ssl/ssl_blocking_page.h" | 29 #include "chrome/browser/ssl/ssl_blocking_page.h" |
29 #include "chrome/browser/tab_contents/tab_contents.h" | 30 #include "chrome/browser/tab_contents/tab_contents.h" |
30 #include "chrome/browser/tab_contents/tab_contents_view.h" | 31 #include "chrome/browser/tab_contents/tab_contents_view.h" |
31 #include "chrome/common/chrome_paths.h" | 32 #include "chrome/common/chrome_paths.h" |
32 #include "chrome/common/message_box_flags.h" | |
33 #include "chrome/common/notification_registrar.h" | 33 #include "chrome/common/notification_registrar.h" |
34 #include "chrome/common/platform_util.h" | 34 #include "chrome/common/platform_util.h" |
35 #include "chrome/common/pref_service.h" | 35 #include "chrome/common/pref_service.h" |
36 #include "chrome/test/automation/automation_messages.h" | 36 #include "chrome/test/automation/automation_messages.h" |
37 #include "net/base/cookie_monster.h" | 37 #include "net/base/cookie_monster.h" |
38 #include "net/url_request/url_request_context.h" | 38 #include "net/url_request/url_request_context.h" |
39 #include "net/url_request/url_request_filter.h" | 39 #include "net/url_request/url_request_filter.h" |
40 | 40 |
41 #if defined(OS_WIN) | 41 #if defined(OS_WIN) |
42 // TODO(port): Port these headers. | 42 // TODO(port): Port these headers. |
(...skipping 2839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2882 DLOG(WARNING) << "SetParent failed. Error 0x%x" << GetLastError(); | 2882 DLOG(WARNING) << "SetParent failed. Error 0x%x" << GetLastError(); |
2883 } | 2883 } |
2884 } | 2884 } |
2885 } | 2885 } |
2886 #endif | 2886 #endif |
2887 | 2887 |
2888 void AutomationProvider::GetWindowTitle(int handle, string16* text) { | 2888 void AutomationProvider::GetWindowTitle(int handle, string16* text) { |
2889 gfx::NativeWindow window = window_tracker_->GetResource(handle); | 2889 gfx::NativeWindow window = window_tracker_->GetResource(handle); |
2890 text->assign(platform_util::GetWindowTitle(window)); | 2890 text->assign(platform_util::GetWindowTitle(window)); |
2891 } | 2891 } |
OLD | NEW |