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/app/theme/theme_resources.h" | 10 #include "grit/theme_resources.h" |
11 #include "chrome/browser/alternate_nav_url_fetcher.h" | 11 #include "chrome/browser/alternate_nav_url_fetcher.h" |
12 #include "chrome/browser/browser.h" | 12 #include "chrome/browser/browser.h" |
13 #include "chrome/browser/browser_list.h" | 13 #include "chrome/browser/browser_list.h" |
14 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
15 #include "chrome/browser/command_updater.h" | 15 #include "chrome/browser/command_updater.h" |
16 #include "chrome/browser/profile.h" | 16 #include "chrome/browser/profile.h" |
17 #include "chrome/browser/search_engines/template_url.h" | 17 #include "chrome/browser/search_engines/template_url.h" |
18 #include "chrome/browser/search_engines/template_url_model.h" | 18 #include "chrome/browser/search_engines/template_url_model.h" |
19 #include "chrome/browser/tab_contents/navigation_entry.h" | 19 #include "chrome/browser/tab_contents/navigation_entry.h" |
20 #include "chrome/browser/view_ids.h" | 20 #include "chrome/browser/view_ids.h" |
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
994 } | 994 } |
995 | 995 |
996 void LocationBarView::FocusSearch() { | 996 void LocationBarView::FocusSearch() { |
997 location_entry_->SetUserText(L"?"); | 997 location_entry_->SetUserText(L"?"); |
998 location_entry_->SetFocus(); | 998 location_entry_->SetFocus(); |
999 } | 999 } |
1000 | 1000 |
1001 void LocationBarView::SaveStateToContents(TabContents* contents) { | 1001 void LocationBarView::SaveStateToContents(TabContents* contents) { |
1002 location_entry_->SaveStateToTab(contents); | 1002 location_entry_->SaveStateToTab(contents); |
1003 } | 1003 } |
OLD | NEW |