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

Unified Diff: content/public/renderer/browser_plugin/browser_plugin_property_binding.h

Issue 11826005: Browser Plugin: Implement BrowserPluginObserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
Index: content/public/renderer/browser_plugin/browser_plugin_property_binding.h
diff --git a/content/public/renderer/browser_plugin/browser_plugin_property_binding.h b/content/public/renderer/browser_plugin/browser_plugin_property_binding.h
new file mode 100644
index 0000000000000000000000000000000000000000..3d8b9d57aa4216c4a70b58fe3ef08e36203d42d0
--- /dev/null
+++ b/content/public/renderer/browser_plugin/browser_plugin_property_binding.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_PROPERTY_BINDING_H_
+#define CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_PROPERTY_BINDING_H_
+
+#include <string>
+
+#include "content/common/content_export.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h"
+
+namespace content {
+
+class BrowserPlugin;
+
+class CONTENT_EXPORT BrowserPluginPropertyBinding {
+ public:
+ virtual ~BrowserPluginPropertyBinding() {}
+
+ virtual const std::string& GetName() const = 0;
+
+ 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.
+
+ virtual bool GetProperty(BrowserPlugin* browser_plugin,
+ NPVariant* result) = 0;
+
+ virtual bool SetProperty(BrowserPlugin* browser_plugin,
+ NPObject* np_obj,
+ const NPVariant* variant) = 0;
+
+ virtual std::string GetDOMAttributeValue(BrowserPlugin* browser_plugin) = 0;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_PROPERTY_BINDING_H_

Powered by Google App Engine
This is Rietveld 408576698