OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "ui/base/webui/web_ui_util.h" | 5 #include "ui/base/webui/web_ui_util.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/debug/trace_event.h" | |
11 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
12 #include "base/logging.h" | 11 #include "base/logging.h" |
13 #include "base/memory/ref_counted_memory.h" | 12 #include "base/memory/ref_counted_memory.h" |
14 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
15 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
| 15 #include "base/trace_event/trace_event.h" |
16 #include "net/base/escape.h" | 16 #include "net/base/escape.h" |
17 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
18 #include "ui/base/resource/resource_bundle.h" | 18 #include "ui/base/resource/resource_bundle.h" |
19 #include "ui/base/window_open_disposition.h" | 19 #include "ui/base/window_open_disposition.h" |
20 #include "ui/gfx/codec/png_codec.h" | 20 #include "ui/gfx/codec/png_codec.h" |
21 #include "ui/gfx/font.h" | 21 #include "ui/gfx/font.h" |
22 #include "ui/gfx/image/image_skia.h" | 22 #include "ui/gfx/image/image_skia.h" |
23 #include "ui/resources/grit/webui_resources.h" | 23 #include "ui/resources/grit/webui_resources.h" |
24 #include "ui/strings/grit/app_locale_settings.h" | 24 #include "ui/strings/grit/app_locale_settings.h" |
25 #include "url/gurl.h" | 25 #include "url/gurl.h" |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 IDS_WEB_FONT_SIZE_XP : | 187 IDS_WEB_FONT_SIZE_XP : |
188 #endif | 188 #endif |
189 IDS_WEB_FONT_SIZE); | 189 IDS_WEB_FONT_SIZE); |
190 } | 190 } |
191 | 191 |
192 std::string GetTextDirection() { | 192 std::string GetTextDirection() { |
193 return base::i18n::IsRTL() ? "rtl" : "ltr"; | 193 return base::i18n::IsRTL() ? "rtl" : "ltr"; |
194 } | 194 } |
195 | 195 |
196 } // namespace webui | 196 } // namespace webui |
OLD | NEW |