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

Side by Side Diff: chrome/browser/views/location_bar_view.cc

Issue 17428: Issue 358: Can't open a new tab by middle-clicking home button... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 9 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 | « chrome/browser/views/location_bar_view.h ('k') | chrome/browser/views/toolbar_view.cc » ('j') | 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/views/location_bar_view.h" 5 #include "chrome/browser/views/location_bar_view.h"
6 6
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "chrome/app/chrome_dll_resource.h" 9 #include "chrome/app/chrome_dll_resource.h"
10 #include "chrome/browser/alternate_nav_url_fetcher.h" 10 #include "chrome/browser/alternate_nav_url_fetcher.h"
(...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after
1075 } 1075 }
1076 1076
1077 PageTransition::Type LocationBarView::GetPageTransition() const { 1077 PageTransition::Type LocationBarView::GetPageTransition() const {
1078 return transition_; 1078 return transition_;
1079 } 1079 }
1080 1080
1081 void LocationBarView::AcceptInput() { 1081 void LocationBarView::AcceptInput() {
1082 location_entry_->model()->AcceptInput(CURRENT_TAB, false); 1082 location_entry_->model()->AcceptInput(CURRENT_TAB, false);
1083 } 1083 }
1084 1084
1085 void LocationBarView::AcceptInputWithDisposition(WindowOpenDisposition disp) {
1086 location_entry_->model()->AcceptInput(disp, false);
1087 }
1088
1085 void LocationBarView::FocusLocation() { 1089 void LocationBarView::FocusLocation() {
1086 location_entry_->SetFocus(); 1090 location_entry_->SetFocus();
1087 location_entry_->SelectAll(true); 1091 location_entry_->SelectAll(true);
1088 } 1092 }
1089 1093
1090 void LocationBarView::FocusSearch() { 1094 void LocationBarView::FocusSearch() {
1091 location_entry_->SetUserText(L"?"); 1095 location_entry_->SetUserText(L"?");
1092 location_entry_->SetFocus(); 1096 location_entry_->SetFocus();
1093 } 1097 }
1094 1098
1095 void LocationBarView::SaveStateToContents(TabContents* contents) { 1099 void LocationBarView::SaveStateToContents(TabContents* contents) {
1096 location_entry_->SaveStateToTab(contents); 1100 location_entry_->SaveStateToTab(contents);
1097 } 1101 }
OLDNEW
« no previous file with comments | « chrome/browser/views/location_bar_view.h ('k') | chrome/browser/views/toolbar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698