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

Unified Diff: webkit/api/public/WebKitClient.h

Issue 149760: Introduce WebLocalizedString and queryLocalizedString methods... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/renderer_webkitclient_impl.cc ('k') | webkit/api/public/WebLocalizedString.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/api/public/WebKitClient.h
===================================================================
--- webkit/api/public/WebKitClient.h (revision 20904)
+++ webkit/api/public/WebKitClient.h (working copy)
@@ -32,6 +32,7 @@
#define WebKitClient_h
#include "WebCommon.h"
+#include "WebLocalizedString.h"
namespace WebKit {
class WebClipboard;
@@ -61,6 +62,11 @@
virtual WebThemeEngine* themeEngine() = 0;
+ // File ----------------------------------------------------------------
+
+ virtual bool getFileSize(const WebString& path, long long& result) = 0;
+
+
// History -------------------------------------------------------------
// Returns the hash for the given canonicalized URL for use in visited
@@ -82,10 +88,6 @@
// A suggestion to prefetch IP information for the given hostname.
virtual void prefetchHostName(const WebString&) = 0;
- // File ----------------------------------------------------------------
-
- virtual bool getFileSize(const WebString& path, long long& result) = 0;
-
// Returns a new WebURLLoader instance.
virtual WebURLLoader* createURLLoader() = 0;
@@ -113,7 +115,12 @@
// Returns a blob of data corresponding to the named resource.
virtual WebData loadResource(const char* name) = 0;
+ // Returns a localized string resource (with an optional numeric
+ // parameter value).
+ virtual WebString queryLocalizedString(WebLocalizedString::Name) = 0;
+ virtual WebString queryLocalizedString(WebLocalizedString::Name, int numericValue) = 0;
+
// Sudden Termination --------------------------------------------------
// Disable/Enable sudden termination.
« no previous file with comments | « chrome/renderer/renderer_webkitclient_impl.cc ('k') | webkit/api/public/WebLocalizedString.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698