Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1361)

Side by Side Diff: components/dom_distiller/core/viewer.h

Issue 1225183002: Font size in DomDistiller prefs syncs with local scaling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge master again Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/dom_distiller/core/url_constants.cc ('k') | components/dom_distiller/core/viewer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/dom_distiller/core/url_constants.cc ('k') | components/dom_distiller/core/viewer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698