OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/dom_distiller/core/viewer.h" | 5 #include "components/dom_distiller/core/viewer.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/json/json_writer.h" | 11 #include "base/json/json_writer.h" |
12 #include "base/metrics/histogram_macros.h" | 12 #include "base/metrics/histogram_macros.h" |
13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
16 #include "components/dom_distiller/core/distilled_page_prefs.h" | 16 #include "components/dom_distiller/core/distilled_page_prefs.h" |
17 #include "components/dom_distiller/core/dom_distiller_service.h" | 17 #include "components/dom_distiller/core/dom_distiller_service.h" |
18 #include "components/dom_distiller/core/experiments.h" | 18 #include "components/dom_distiller/core/experiments.h" |
19 #include "components/dom_distiller/core/proto/distilled_article.pb.h" | 19 #include "components/dom_distiller/core/proto/distilled_article.pb.h" |
20 #include "components/dom_distiller/core/proto/distilled_page.pb.h" | 20 #include "components/dom_distiller/core/proto/distilled_page.pb.h" |
21 #include "components/dom_distiller/core/task_tracker.h" | 21 #include "components/dom_distiller/core/task_tracker.h" |
22 #include "components/dom_distiller/core/url_constants.h" | 22 #include "components/dom_distiller/core/url_constants.h" |
23 #include "components/dom_distiller/core/url_utils.h" | 23 #include "components/dom_distiller/core/url_utils.h" |
24 #include "grit/components_resources.h" | 24 #include "components/grit/components_resources.h" |
25 #include "grit/components_strings.h" | 25 #include "components/strings/grit/components_strings.h" |
26 #include "net/base/escape.h" | 26 #include "net/base/escape.h" |
27 #include "net/url_request/url_request.h" | 27 #include "net/url_request/url_request.h" |
28 #include "ui/base/l10n/l10n_util.h" | 28 #include "ui/base/l10n/l10n_util.h" |
29 #include "ui/base/resource/resource_bundle.h" | 29 #include "ui/base/resource/resource_bundle.h" |
30 #include "url/gurl.h" | 30 #include "url/gurl.h" |
31 | 31 |
32 namespace dom_distiller { | 32 namespace dom_distiller { |
33 | 33 |
34 namespace { | 34 namespace { |
35 | 35 |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 return "useFontFamily('" + GetJsFontFamily(font_family) + "');"; | 313 return "useFontFamily('" + GetJsFontFamily(font_family) + "');"; |
314 } | 314 } |
315 | 315 |
316 const std::string GetDistilledPageFontScalingJs(float scaling) { | 316 const std::string GetDistilledPageFontScalingJs(float scaling) { |
317 return "useFontScaling(" + base::DoubleToString(scaling) + ");"; | 317 return "useFontScaling(" + base::DoubleToString(scaling) + ");"; |
318 } | 318 } |
319 | 319 |
320 } // namespace viewer | 320 } // namespace viewer |
321 | 321 |
322 } // namespace dom_distiller | 322 } // namespace dom_distiller |
OLD | NEW |