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

Side by Side Diff: content/public/common/content_client.h

Issue 10383006: Add scale factor and 2x resources from webkit and plumb through to ContentClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add more test class GetImageResource methods. Created 8 years, 7 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
« no previous file with comments | « content/common/webkitplatformsupport_impl.cc ('k') | content/shell/shell_content_client.h » ('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 (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 CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
6 #define CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ 6 #define CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 // Returns the user agent. 111 // Returns the user agent.
112 virtual std::string GetUserAgent() const = 0; 112 virtual std::string GetUserAgent() const = 0;
113 113
114 // Returns a string resource given its id. 114 // Returns a string resource given its id.
115 virtual string16 GetLocalizedString(int message_id) const = 0; 115 virtual string16 GetLocalizedString(int message_id) const = 0;
116 116
117 // Return the contents of a resource in a StringPiece given the resource id. 117 // Return the contents of a resource in a StringPiece given the resource id.
118 virtual base::StringPiece GetDataResource(int resource_id) const = 0; 118 virtual base::StringPiece GetDataResource(int resource_id) const = 0;
119 119
120 // Return the contents of an image resource in a StringPiece given the
121 // resource id.
122 virtual base::StringPiece GetImageResource(int resource_id,
123 float scale_factor) const = 0;
124
120 #if defined(OS_WIN) 125 #if defined(OS_WIN)
121 // Allows the embedder to sandbox a plugin, and apply a custom policy. 126 // Allows the embedder to sandbox a plugin, and apply a custom policy.
122 virtual bool SandboxPlugin(CommandLine* command_line, 127 virtual bool SandboxPlugin(CommandLine* command_line,
123 sandbox::TargetPolicy* policy) = 0; 128 sandbox::TargetPolicy* policy) = 0;
124 #endif 129 #endif
125 130
126 #if defined(OS_MACOSX) 131 #if defined(OS_MACOSX)
127 // Allows the embedder to define a new |sandbox_type| by mapping it to the 132 // Allows the embedder to define a new |sandbox_type| by mapping it to the
128 // resource ID corresponding to the sandbox profile to use. The legal values 133 // resource ID corresponding to the sandbox profile to use. The legal values
129 // for |sandbox_type| are defined by the embedder and should start with 134 // for |sandbox_type| are defined by the embedder and should start with
(...skipping 13 matching lines...) Expand all
143 ContentPluginClient* plugin_; 148 ContentPluginClient* plugin_;
144 // The embedder API for participating in renderer logic. 149 // The embedder API for participating in renderer logic.
145 ContentRendererClient* renderer_; 150 ContentRendererClient* renderer_;
146 // The embedder API for participating in utility logic. 151 // The embedder API for participating in utility logic.
147 ContentUtilityClient* utility_; 152 ContentUtilityClient* utility_;
148 }; 153 };
149 154
150 } // namespace content 155 } // namespace content
151 156
152 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ 157 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
OLDNEW
« no previous file with comments | « content/common/webkitplatformsupport_impl.cc ('k') | content/shell/shell_content_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698