OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "app/l10n_util.h" |
7 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
8 #include "base/path_service.h" | 9 #include "base/path_service.h" |
9 #include "base/string_util.h" | 10 #include "base/string_util.h" |
10 #include "chrome/app/chrome_dll_resource.h" | 11 #include "chrome/app/chrome_dll_resource.h" |
11 #include "chrome/browser/alternate_nav_url_fetcher.h" | 12 #include "chrome/browser/alternate_nav_url_fetcher.h" |
12 #include "chrome/browser/browser.h" | 13 #include "chrome/browser/browser.h" |
13 #include "chrome/browser/browser_list.h" | 14 #include "chrome/browser/browser_list.h" |
14 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
15 #include "chrome/browser/command_updater.h" | 16 #include "chrome/browser/command_updater.h" |
16 #include "chrome/browser/extensions/extension_browser_event_router.h" | 17 #include "chrome/browser/extensions/extension_browser_event_router.h" |
17 #include "chrome/browser/extensions/extension_tabs_module.h" | 18 #include "chrome/browser/extensions/extension_tabs_module.h" |
18 #include "chrome/browser/extensions/extensions_service.h" | 19 #include "chrome/browser/extensions/extensions_service.h" |
19 #include "chrome/browser/profile.h" | 20 #include "chrome/browser/profile.h" |
20 #include "chrome/browser/search_engines/template_url.h" | 21 #include "chrome/browser/search_engines/template_url.h" |
21 #include "chrome/browser/search_engines/template_url_model.h" | 22 #include "chrome/browser/search_engines/template_url_model.h" |
22 #include "chrome/browser/tab_contents/navigation_entry.h" | 23 #include "chrome/browser/tab_contents/navigation_entry.h" |
23 #include "chrome/browser/view_ids.h" | 24 #include "chrome/browser/view_ids.h" |
24 #include "chrome/browser/views/info_bubble.h" | 25 #include "chrome/browser/views/info_bubble.h" |
25 #include "chrome/browser/views/first_run_bubble.h" | 26 #include "chrome/browser/views/first_run_bubble.h" |
26 #include "chrome/browser/views/page_info_window.h" | 27 #include "chrome/browser/views/page_info_window.h" |
27 #include "chrome/common/l10n_util.h" | |
28 #include "chrome/common/gfx/chrome_canvas.h" | 28 #include "chrome/common/gfx/chrome_canvas.h" |
29 #include "chrome/common/win_util.h" | 29 #include "chrome/common/win_util.h" |
30 #include "chrome/views/background.h" | 30 #include "chrome/views/background.h" |
31 #include "chrome/views/border.h" | 31 #include "chrome/views/border.h" |
32 #include "chrome/views/widget/root_view.h" | 32 #include "chrome/views/widget/root_view.h" |
33 #include "chrome/views/widget/widget.h" | 33 #include "chrome/views/widget/widget.h" |
34 #include "grit/generated_resources.h" | 34 #include "grit/generated_resources.h" |
35 #include "grit/theme_resources.h" | 35 #include "grit/theme_resources.h" |
36 | 36 |
37 using views::View; | 37 using views::View; |
(...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1201 location_entry_->SetFocus(); | 1201 location_entry_->SetFocus(); |
1202 } | 1202 } |
1203 | 1203 |
1204 void LocationBarView::SaveStateToContents(TabContents* contents) { | 1204 void LocationBarView::SaveStateToContents(TabContents* contents) { |
1205 location_entry_->SaveStateToTab(contents); | 1205 location_entry_->SaveStateToTab(contents); |
1206 } | 1206 } |
1207 | 1207 |
1208 void LocationBarView::Revert() { | 1208 void LocationBarView::Revert() { |
1209 location_entry_->RevertAll(); | 1209 location_entry_->RevertAll(); |
1210 } | 1210 } |
OLD | NEW |