| 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 #ifndef COMPONENTS_DOM_DISTILLER_CORE_VIEWER_H_ | 5 #ifndef COMPONENTS_DOM_DISTILLER_CORE_VIEWER_H_ |
| 6 #define COMPONENTS_DOM_DISTILLER_CORE_VIEWER_H_ | 6 #define COMPONENTS_DOM_DISTILLER_CORE_VIEWER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 const std::string GetJavaScript(); | 76 const std::string GetJavaScript(); |
| 77 | 77 |
| 78 // Based on the given path, calls into the DomDistillerServiceInterface for | 78 // Based on the given path, calls into the DomDistillerServiceInterface for |
| 79 // viewing distilled content based on the |path|. | 79 // viewing distilled content based on the |path|. |
| 80 scoped_ptr<ViewerHandle> CreateViewRequest( | 80 scoped_ptr<ViewerHandle> CreateViewRequest( |
| 81 DomDistillerServiceInterface* dom_distiller_service, | 81 DomDistillerServiceInterface* dom_distiller_service, |
| 82 const std::string& path, | 82 const std::string& path, |
| 83 ViewRequestDelegate* view_request_delegate, | 83 ViewRequestDelegate* view_request_delegate, |
| 84 const gfx::Size& render_view_size); | 84 const gfx::Size& render_view_size); |
| 85 | 85 |
| 86 // Returns JavaScript coresponding to setting the font family. | 86 // Returns JavaScript corresponding to setting the font family. |
| 87 const std::string GetDistilledPageFontFamilyJs( | 87 const std::string GetDistilledPageFontFamilyJs( |
| 88 DistilledPagePrefs::FontFamily font); | 88 DistilledPagePrefs::FontFamily font); |
| 89 | 89 |
| 90 // Returns JavaScript corresponding to setting a specific theme. | 90 // Returns JavaScript corresponding to setting a specific theme. |
| 91 const std::string GetDistilledPageThemeJs(DistilledPagePrefs::Theme theme); | 91 const std::string GetDistilledPageThemeJs(DistilledPagePrefs::Theme theme); |
| 92 | 92 |
| 93 // Returns JavaScript corresponding to setting the font scaling. |
| 94 const std::string GetDistilledPageFontScalingJs(float scaling); |
| 95 |
| 93 } // namespace viewer | 96 } // namespace viewer |
| 94 | 97 |
| 95 } // namespace dom_distiller | 98 } // namespace dom_distiller |
| 96 | 99 |
| 97 #endif // COMPONENTS_DOM_DISTILLER_CORE_VIEWER_H_ | 100 #endif // COMPONENTS_DOM_DISTILLER_CORE_VIEWER_H_ |
| OLD | NEW |