Chromium Code Reviews| Index: content/public/common/content_client.h |
| diff --git a/content/public/common/content_client.h b/content/public/common/content_client.h |
| index 13f0d5c57dc0b986c9c016e7404b6c71a5345440..4dcb9eda316fefcd034c26f4a603f21125714fc2 100644 |
| --- a/content/public/common/content_client.h |
| +++ b/content/public/common/content_client.h |
| @@ -64,6 +64,17 @@ CONTENT_EXPORT ContentRendererClient* SetRendererClientForTesting( |
| CONTENT_EXPORT ContentUtilityClient* SetUtilityClientForTesting( |
| ContentUtilityClient* u); |
| +struct CONTENT_EXPORT WebUITextStyles { |
|
davidben
2014/11/25 22:26:25
Should this be in its own header? It's pretty tiny
Dan Beam
2014/11/25 22:49:31
Deleted.
|
| + // One or more font families (e.g. "Verdana, sans-serif"). |
| + std::string font_family; |
| + |
| + // The base font size for webui pages (e.g. "75%"). |
| + std::string font_size; |
| + |
| + // Text directionality (e.g. "ltr" or "rtl"). |
| + std::string text_direction; |
| +}; |
| + |
| // Interface that the embedder implements. |
| class CONTENT_EXPORT ContentClient { |
| public: |
| @@ -114,6 +125,10 @@ class CONTENT_EXPORT ContentClient { |
| virtual base::RefCountedStaticMemory* GetDataResourceBytes( |
| int resource_id) const; |
| + // Returns some shared WebUI text styles. These map to the direction:, |
| + // font-family:, and font-size: attributes in CSS. |
| + virtual WebUITextStyles GetWebUITextStyles() const; |
|
davidben
2014/11/25 22:26:25
Actually, is this hook even needed? The Chrome imp
Dan Beam
2014/11/25 22:49:31
Removed to just use ui/base/webui/ directly from c
|
| + |
| // Returns a native image given its id. |
| virtual gfx::Image& GetNativeImageNamed(int resource_id) const; |