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

Unified Diff: public/web/WebFrame.h

Issue 19861006: Allow binding a getter+setter for window object property. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Allow binding a getter+setter for window object property. Created 7 years, 5 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: public/web/WebFrame.h
diff --git a/public/web/WebFrame.h b/public/web/WebFrame.h
index 68b7440a22d8cc2725a52265b9c9e1d91e3c746d..60832a67391b6140773c0d8d08577d3588689033 100644
--- a/public/web/WebFrame.h
+++ b/public/web/WebFrame.h
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2009 Google Inc. All rights reserved.
+ * Copyright (C) 2013 Opera Software ASA. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -69,6 +70,7 @@ class WebURL;
class WebURLLoader;
class WebURLRequest;
class WebView;
+class WebWindowPropertyCallback;
struct WebConsoleMessage;
struct WebFindOptions;
struct WebFloatPoint;
@@ -220,6 +222,10 @@ public:
virtual void bindToWindowObject(
const WebString& name, NPObject*, void*) = 0;
+ // Binds the given object providing a getter and setter as a property
+ // of this frame's DOMWindow.
+ virtual void bindToWindowObject(const WebString& name, WebWindowPropertyCallback*) = 0;
+
// Executes script in the context of the current page.
virtual void executeScript(const WebScriptSource&) = 0;

Powered by Google App Engine
This is Rietveld 408576698