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

Side by Side Diff: chrome/browser/ui/webui/web_ui_util.h

Issue 11881055: Simplify WebUI data sources. Currently WebUI data sources implement a URLDataSourceDelegate interfa… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix issue in about_ui exposed by cros tests Created 7 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_WEBUI_WEB_UI_UTIL_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_WEB_UI_UTIL_H_
6 #define CHROME_BROWSER_UI_WEBUI_WEB_UI_UTIL_H_ 6 #define CHROME_BROWSER_UI_WEBUI_WEB_UI_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/string_piece.h" 10 #include "base/string_piece.h"
(...skipping 30 matching lines...) Expand all
41 // SCALE_FACTOR_NONE, and false is returned. 41 // SCALE_FACTOR_NONE, and false is returned.
42 bool ParseScaleFactor(const base::StringPiece& identifier, 42 bool ParseScaleFactor(const base::StringPiece& identifier,
43 ui::ScaleFactor* scale_factor); 43 ui::ScaleFactor* scale_factor);
44 44
45 // Parses a URL containing some path @{scale}x. If it does not contain a scale 45 // Parses a URL containing some path @{scale}x. If it does not contain a scale
46 // factor then the default scale factor is returned. 46 // factor then the default scale factor is returned.
47 void ParsePathAndScale(const GURL& url, 47 void ParsePathAndScale(const GURL& url,
48 std::string* path, 48 std::string* path,
49 ui::ScaleFactor* scale_factor); 49 ui::ScaleFactor* scale_factor);
50 50
51 // Helper function to set the font family, size, and text direction into the
52 // given dictionary.
53 void SetFontAndTextDirection(base::DictionaryValue* localized_strings);
54
51 } // namespace web_ui_util 55 } // namespace web_ui_util
52 56
53 #endif // CHROME_BROWSER_UI_WEBUI_WEB_UI_UTIL_H_ 57 #endif // CHROME_BROWSER_UI_WEBUI_WEB_UI_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698