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

Side by Side Diff: ppapi/proxy/plugin_proxy_delegate.h

Issue 10541088: Propogate the UI language on the command line and expose to Flash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | « ppapi/c/private/ppb_flash.h ('k') | ppapi/proxy/ppapi_proxy_test.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 PPAPI_PROXY_PLUGIN_PROXY_DELEGATE_H_ 5 #ifndef PPAPI_PROXY_PLUGIN_PROXY_DELEGATE_H_
6 #define PPAPI_PROXY_PLUGIN_PROXY_DELEGATE_H_ 6 #define PPAPI_PROXY_PLUGIN_PROXY_DELEGATE_H_
7 7
8 #include <string>
9
8 namespace ppapi { 10 namespace ppapi {
9 namespace proxy { 11 namespace proxy {
10 12
11 class PPAPI_PROXY_EXPORT PluginProxyDelegate { 13 class PPAPI_PROXY_EXPORT PluginProxyDelegate {
12 public: 14 public:
13 virtual ~PluginProxyDelegate() {} 15 virtual ~PluginProxyDelegate() {}
14 16
15 // Sends the given message to the browser. Identical semantics to 17 // Sends the given message to the browser. Identical semantics to
16 // IPC::Message::Sender interface. 18 // IPC::Message::Sender interface.
17 virtual bool SendToBrowser(IPC::Message* msg) = 0; 19 virtual bool SendToBrowser(IPC::Message* msg) = 0;
18 20
21 // Returns the language code of the current UI language.
22 virtual std::string GetUILanguage() = 0;
23
19 // Performs Windows-specific font caching in the browser for the given 24 // Performs Windows-specific font caching in the browser for the given
20 // LOGFONTW. Does nothing on non-Windows platforms. 25 // LOGFONTW. Does nothing on non-Windows platforms.
21 virtual void PreCacheFont(const void* logfontw) = 0; 26 virtual void PreCacheFont(const void* logfontw) = 0;
22 }; 27 };
23 28
24 } // namespace proxy 29 } // namespace proxy
25 } // namespace ppapi 30 } // namespace ppapi
26 31
27 #endif // PPAPI_PROXY_PLUGIN_PROXY_DELEGATE_H_ 32 #endif // PPAPI_PROXY_PLUGIN_PROXY_DELEGATE_H_
OLDNEW
« no previous file with comments | « ppapi/c/private/ppb_flash.h ('k') | ppapi/proxy/ppapi_proxy_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698