| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/dom_distiller_request_view_base.h" | 5 #include "components/dom_distiller/core/dom_distiller_request_view_base.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "components/dom_distiller/core/distilled_page_prefs.h" | 13 #include "components/dom_distiller/core/distilled_page_prefs.h" |
| 14 #include "components/dom_distiller/core/dom_distiller_service.h" | 14 #include "components/dom_distiller/core/dom_distiller_service.h" |
| 15 #include "components/dom_distiller/core/experiments.h" | 15 #include "components/dom_distiller/core/experiments.h" |
| 16 #include "components/dom_distiller/core/task_tracker.h" | 16 #include "components/dom_distiller/core/task_tracker.h" |
| 17 #include "components/dom_distiller/core/viewer.h" | 17 #include "components/dom_distiller/core/viewer.h" |
| 18 #include "grit/components_strings.h" | 18 #include "components/strings/grit/components_strings.h" |
| 19 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
| 20 | 20 |
| 21 namespace dom_distiller { | 21 namespace dom_distiller { |
| 22 | 22 |
| 23 DomDistillerRequestViewBase::DomDistillerRequestViewBase( | 23 DomDistillerRequestViewBase::DomDistillerRequestViewBase( |
| 24 DistilledPagePrefs* distilled_page_prefs) | 24 DistilledPagePrefs* distilled_page_prefs) |
| 25 : page_count_(0), | 25 : page_count_(0), |
| 26 distilled_page_prefs_(distilled_page_prefs), | 26 distilled_page_prefs_(distilled_page_prefs), |
| 27 is_error_page_(false) { | 27 is_error_page_(false) { |
| 28 } | 28 } |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 SendCommonJavaScript(); | 121 SendCommonJavaScript(); |
| 122 } | 122 } |
| 123 | 123 |
| 124 void DomDistillerRequestViewBase::SendCommonJavaScript() { | 124 void DomDistillerRequestViewBase::SendCommonJavaScript() { |
| 125 SendJavaScript(viewer::GetJavaScript()); | 125 SendJavaScript(viewer::GetJavaScript()); |
| 126 SendJavaScript(viewer::GetDistilledPageFontScalingJs( | 126 SendJavaScript(viewer::GetDistilledPageFontScalingJs( |
| 127 distilled_page_prefs_->GetFontScaling())); | 127 distilled_page_prefs_->GetFontScaling())); |
| 128 } | 128 } |
| 129 | 129 |
| 130 } // namespace dom_distiller | 130 } // namespace dom_distiller |
| OLD | NEW |