| 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" |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 } | 327 } |
| 328 } | 328 } |
| 329 break; | 329 break; |
| 330 | 330 |
| 331 case IDC_FOCUS_SEARCH: | 331 case IDC_FOCUS_SEARCH: |
| 332 UserMetrics::RecordAction(L"FocusSearch", profile_); | 332 UserMetrics::RecordAction(L"FocusSearch", profile_); |
| 333 { | 333 { |
| 334 LocationBarView* lbv = GetLocationBarView(); | 334 LocationBarView* lbv = GetLocationBarView(); |
| 335 if (lbv) { | 335 if (lbv) { |
| 336 AutocompleteEditView* aev = lbv->location_entry(); | 336 AutocompleteEditView* aev = lbv->location_entry(); |
| 337 aev->model()->SetUserText(L"?"); | 337 aev->SetUserText(L"?"); |
| 338 aev->SetFocus(); | 338 aev->SetFocus(); |
| 339 } | 339 } |
| 340 } | 340 } |
| 341 break; | 341 break; |
| 342 | 342 |
| 343 case IDC_FOCUS_TOOLBAR: | 343 case IDC_FOCUS_TOOLBAR: |
| 344 UserMetrics::RecordAction(L"FocusToolbar", profile_); | 344 UserMetrics::RecordAction(L"FocusToolbar", profile_); |
| 345 { | 345 { |
| 346 window_->FocusToolbar(); | 346 window_->FocusToolbar(); |
| 347 } | 347 } |
| (...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1049 | 1049 |
| 1050 //////////////////////////////////////////////////////////////////////////////// | 1050 //////////////////////////////////////////////////////////////////////////////// |
| 1051 // Browser, SelectFileDialog::Listener implementation: | 1051 // Browser, SelectFileDialog::Listener implementation: |
| 1052 | 1052 |
| 1053 void Browser::FileSelected(const std::wstring& path, void* params) { | 1053 void Browser::FileSelected(const std::wstring& path, void* params) { |
| 1054 GURL file_url = net::FilePathToFileURL(path); | 1054 GURL file_url = net::FilePathToFileURL(path); |
| 1055 if (!file_url.is_empty()) | 1055 if (!file_url.is_empty()) |
| 1056 OpenURL(file_url, CURRENT_TAB, PageTransition::TYPED); | 1056 OpenURL(file_url, CURRENT_TAB, PageTransition::TYPED); |
| 1057 } | 1057 } |
| 1058 | 1058 |
| OLD | NEW |