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

Unified Diff: Source/core/dom/PopStateEvent.h

Issue 19457002: Make 'any'-typed attributes of events available in isolated worlds (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing 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: Source/core/dom/PopStateEvent.h
diff --git a/Source/core/dom/PopStateEvent.h b/Source/core/dom/PopStateEvent.h
index cbe4627905420624bad6653467bd8243690ab12b..46f6dd8449f5fe52c5d0660139149f9e92c37461 100644
--- a/Source/core/dom/PopStateEvent.h
+++ b/Source/core/dom/PopStateEvent.h
@@ -31,11 +31,11 @@
namespace WebCore {
-typedef EventInit PopStateEventInit;
-
class History;
class SerializedScriptValue;
+typedef EventInit PopStateEventInit;
+
class PopStateEvent : public Event {
public:
virtual ~PopStateEvent();
@@ -44,6 +44,11 @@ public:
static PassRefPtr<PopStateEvent> create(const AtomicString&, const PopStateEventInit&);
SerializedScriptValue* serializedState() const { return m_serializedState.get(); }
+ void setSerializedState(PassRefPtr<SerializedScriptValue> state)
+ {
+ ASSERT(!m_serializedState);
+ m_serializedState = state;
+ }
History* history() const { return m_history.get(); }
virtual const AtomicString& interfaceName() const;

Powered by Google App Engine
This is Rietveld 408576698