OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/webui/history_ui.h" | 5 #include "chrome/browser/ui/webui/history_ui.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 #include "content/public/browser/notification_source.h" | 36 #include "content/public/browser/notification_source.h" |
37 #include "content/public/browser/user_metrics.h" | 37 #include "content/public/browser/user_metrics.h" |
38 #include "content/public/browser/web_contents.h" | 38 #include "content/public/browser/web_contents.h" |
39 #include "content/public/browser/web_contents_delegate.h" | 39 #include "content/public/browser/web_contents_delegate.h" |
40 #include "content/public/browser/web_ui.h" | 40 #include "content/public/browser/web_ui.h" |
41 #include "grit/browser_resources.h" | 41 #include "grit/browser_resources.h" |
42 #include "grit/chromium_strings.h" | 42 #include "grit/chromium_strings.h" |
43 #include "grit/generated_resources.h" | 43 #include "grit/generated_resources.h" |
44 #include "grit/locale_settings.h" | 44 #include "grit/locale_settings.h" |
45 #include "grit/theme_resources.h" | 45 #include "grit/theme_resources.h" |
46 #include "grit/theme_resources_standard.h" | |
47 #include "net/base/escape.h" | 46 #include "net/base/escape.h" |
48 #include "ui/base/l10n/l10n_util.h" | 47 #include "ui/base/l10n/l10n_util.h" |
49 #include "ui/base/layout.h" | 48 #include "ui/base/layout.h" |
50 #include "ui/base/resource/resource_bundle.h" | 49 #include "ui/base/resource/resource_bundle.h" |
51 | 50 |
52 using content::UserMetricsAction; | 51 using content::UserMetricsAction; |
53 using content::WebContents; | 52 using content::WebContents; |
54 | 53 |
55 // Maximum number of search results to return in a given search. We should | 54 // Maximum number of search results to return in a given search. We should |
56 // eventually remove this. | 55 // eventually remove this. |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 return GURL(std::string(chrome::kChromeUIHistoryURL) + "#q=" + | 482 return GURL(std::string(chrome::kChromeUIHistoryURL) + "#q=" + |
484 net::EscapeQueryParamValue(UTF16ToUTF8(text), true)); | 483 net::EscapeQueryParamValue(UTF16ToUTF8(text), true)); |
485 } | 484 } |
486 | 485 |
487 // static | 486 // static |
488 base::RefCountedMemory* HistoryUI::GetFaviconResourceBytes() { | 487 base::RefCountedMemory* HistoryUI::GetFaviconResourceBytes() { |
489 return ResourceBundle::GetSharedInstance(). | 488 return ResourceBundle::GetSharedInstance(). |
490 LoadDataResourceBytes(IDR_HISTORY_FAVICON, | 489 LoadDataResourceBytes(IDR_HISTORY_FAVICON, |
491 ui::SCALE_FACTOR_100P); | 490 ui::SCALE_FACTOR_100P); |
492 } | 491 } |
OLD | NEW |