OLD | NEW |
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_ |
OLD | NEW |