OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_PROPERTY_BINDING_H _ | |
6 #define CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_PROPERTY_BINDING_H _ | |
7 | |
8 #include <string> | |
9 | |
10 #include "content/common/content_export.h" | |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" | |
12 | |
13 namespace content { | |
14 | |
15 class BrowserPlugin; | |
16 | |
17 class CONTENT_EXPORT BrowserPluginPropertyBinding { | |
18 public: | |
19 virtual ~BrowserPluginPropertyBinding() {} | |
20 | |
21 virtual const std::string& GetName() const = 0; | |
22 | |
23 virtual bool MatchesName(NPIdentifier name) const = 0; | |
sadrul
2013/01/09 15:21:54
Do you need both GetName and MatchesName? Perhaps
Fady Samuel
2013/01/09 17:41:24
Done.
| |
24 | |
25 virtual bool GetProperty(BrowserPlugin* browser_plugin, | |
26 NPVariant* result) = 0; | |
27 | |
28 virtual bool SetProperty(BrowserPlugin* browser_plugin, | |
29 NPObject* np_obj, | |
30 const NPVariant* variant) = 0; | |
31 | |
32 virtual std::string GetDOMAttributeValue(BrowserPlugin* browser_plugin) = 0; | |
33 }; | |
34 | |
35 } // namespace content | |
36 | |
37 #endif // CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_PROPERTY_BINDIN G_H_ | |
OLD | NEW |