OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/browser.h" | 5 #include "chrome/browser/browser.h" |
6 | 6 |
7 #include <commdlg.h> | 7 #include <commdlg.h> |
8 #include <shellapi.h> | 8 #include <shellapi.h> |
9 | 9 |
10 #include "base/file_version_info.h" | 10 #include "base/file_version_info.h" |
11 #include "chrome/app/chrome_dll_resource.h" | 11 #include "chrome/app/chrome_dll_resource.h" |
12 #include "chrome/app/locales/locale_settings.h" | 12 #include "chrome/app/locales/locale_settings.h" |
13 #include "chrome/browser/automation/ui_controls.h" | 13 #include "chrome/browser/automation/ui_controls.h" |
14 #include "chrome/browser/browser_list.h" | 14 #include "chrome/browser/browser_list.h" |
15 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
16 #include "chrome/browser/browser_window.h" | 16 #include "chrome/browser/browser_window.h" |
17 #include "chrome/browser/character_encoding.h" | 17 #include "chrome/browser/character_encoding.h" |
18 #include "chrome/browser/debugger/debugger_window.h" | 18 #include "chrome/browser/debugger/debugger_window.h" |
19 #include "chrome/browser/download_tab_view.h" | 19 #include "chrome/browser/views/download_tab_view.h" |
20 #include "chrome/browser/history_tab_ui.h" | 20 #include "chrome/browser/history_tab_ui.h" |
21 #include "chrome/browser/interstitial_page_delegate.h" | 21 #include "chrome/browser/interstitial_page_delegate.h" |
22 #include "chrome/browser/navigation_entry.h" | 22 #include "chrome/browser/navigation_entry.h" |
23 #include "chrome/browser/options_window.h" | 23 #include "chrome/browser/options_window.h" |
24 #include "chrome/browser/tab_restore_service.h" | 24 #include "chrome/browser/tab_restore_service.h" |
25 #include "chrome/browser/task_manager.h" | 25 #include "chrome/browser/task_manager.h" |
26 #include "chrome/browser/user_metrics.h" | 26 #include "chrome/browser/user_metrics.h" |
27 #include "chrome/browser/views/about_chrome_view.h" | 27 #include "chrome/browser/views/about_chrome_view.h" |
28 #include "chrome/browser/views/bug_report_view.h" | 28 #include "chrome/browser/views/bug_report_view.h" |
29 #include "chrome/browser/views/clear_browsing_data.h" | 29 #include "chrome/browser/views/clear_browsing_data.h" |
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1063 | 1063 |
1064 //////////////////////////////////////////////////////////////////////////////// | 1064 //////////////////////////////////////////////////////////////////////////////// |
1065 // Browser, SelectFileDialog::Listener implementation: | 1065 // Browser, SelectFileDialog::Listener implementation: |
1066 | 1066 |
1067 void Browser::FileSelected(const std::wstring& path, void* params) { | 1067 void Browser::FileSelected(const std::wstring& path, void* params) { |
1068 GURL file_url = net::FilePathToFileURL(path); | 1068 GURL file_url = net::FilePathToFileURL(path); |
1069 if (!file_url.is_empty()) | 1069 if (!file_url.is_empty()) |
1070 OpenURL(file_url, CURRENT_TAB, PageTransition::TYPED); | 1070 OpenURL(file_url, CURRENT_TAB, PageTransition::TYPED); |
1071 } | 1071 } |
1072 | 1072 |
OLD | NEW |