| 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/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 Loading... |
| 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 } |
| OLD | NEW |