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 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1119 } | 1119 } |
1120 | 1120 |
1121 void LocationBarView::FocusSearch() { | 1121 void LocationBarView::FocusSearch() { |
1122 location_entry_->SetUserText(L"?"); | 1122 location_entry_->SetUserText(L"?"); |
1123 location_entry_->SetFocus(); | 1123 location_entry_->SetFocus(); |
1124 } | 1124 } |
1125 | 1125 |
1126 void LocationBarView::SaveStateToContents(TabContents* contents) { | 1126 void LocationBarView::SaveStateToContents(TabContents* contents) { |
1127 location_entry_->SaveStateToTab(contents); | 1127 location_entry_->SaveStateToTab(contents); |
1128 } | 1128 } |
| 1129 |
| 1130 void LocationBarView::Revert() { |
| 1131 location_entry_->RevertAll(); |
| 1132 } |
| 1133 |
OLD | NEW |