Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: chrome/browser/browser_commands.cc

Issue 7672: Fix ctrl-k not working.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698