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 <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.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 "components/dom_distiller/core/distilled_page_prefs.h" | 16 #include "components/dom_distiller/core/distilled_page_prefs.h" |
16 #include "components/dom_distiller/core/dom_distiller_service.h" | 17 #include "components/dom_distiller/core/dom_distiller_service.h" |
17 #include "components/dom_distiller/core/experiments.h" | 18 #include "components/dom_distiller/core/experiments.h" |
18 #include "components/dom_distiller/core/proto/distilled_article.pb.h" | 19 #include "components/dom_distiller/core/proto/distilled_article.pb.h" |
19 #include "components/dom_distiller/core/proto/distilled_page.pb.h" | 20 #include "components/dom_distiller/core/proto/distilled_page.pb.h" |
20 #include "components/dom_distiller/core/task_tracker.h" | 21 #include "components/dom_distiller/core/task_tracker.h" |
21 #include "components/dom_distiller/core/url_constants.h" | 22 #include "components/dom_distiller/core/url_constants.h" |
22 #include "components/dom_distiller/core/url_utils.h" | 23 #include "components/dom_distiller/core/url_utils.h" |
23 #include "grit/components_resources.h" | 24 #include "grit/components_resources.h" |
24 #include "grit/components_strings.h" | 25 #include "grit/components_strings.h" |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 return "useFontFamily('" + GetJsFontFamily(font_family) + "');"; | 313 return "useFontFamily('" + GetJsFontFamily(font_family) + "');"; |
313 } | 314 } |
314 | 315 |
315 const std::string GetDistilledPageFontScalingJs(float scaling) { | 316 const std::string GetDistilledPageFontScalingJs(float scaling) { |
316 return "useFontScaling(" + base::DoubleToString(scaling) + ");"; | 317 return "useFontScaling(" + base::DoubleToString(scaling) + ");"; |
317 } | 318 } |
318 | 319 |
319 } // namespace viewer | 320 } // namespace viewer |
320 | 321 |
321 } // namespace dom_distiller | 322 } // namespace dom_distiller |
OLD | NEW |