OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 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 { | |
Charlie Reis
2013/02/28 02:12:03
Class-level documentation.
Fady Samuel
2013/02/28 22:56:21
Done.
| |
18 public: | |
19 virtual ~BrowserPluginPropertyBinding() {} | |
20 | |
21 // Returns the name of the property. | |
22 virtual const std::string& GetName() const = 0; | |
23 | |
24 // Returns whether a getter for the property exits. | |
25 // If it does, the value will be stored in |result|. | |
26 virtual bool GetProperty(NPVariant* result) = 0; | |
27 | |
28 // Returns whether a setter for the property exists. The value assigned to the | |
29 // property is stored in |value|. | |
30 virtual bool SetProperty(NPObject* np_obj, const NPVariant* value) = 0; | |
31 | |
32 // Called when there is an attempt to remove the property. | |
33 virtual void RemoveProperty(NPObject* np_obj) = 0; | |
34 }; | |
35 | |
36 } // namespace content | |
37 | |
38 #endif // CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_PROPERTY_BINDIN G_H_ | |
OLD | NEW |