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

Side by Side Diff: sky/engine/bindings/core/v8/WindowProxy.h

Issue 871383002: Merge HTMLDocument into Document (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 29 matching lines...) Expand all
40 #include "sky/engine/wtf/PassRefPtr.h" 40 #include "sky/engine/wtf/PassRefPtr.h"
41 #include "sky/engine/wtf/RefCounted.h" 41 #include "sky/engine/wtf/RefCounted.h"
42 #include "sky/engine/wtf/RefPtr.h" 42 #include "sky/engine/wtf/RefPtr.h"
43 #include "sky/engine/wtf/text/AtomicString.h" 43 #include "sky/engine/wtf/text/AtomicString.h"
44 #include "v8/include/v8.h" 44 #include "v8/include/v8.h"
45 45
46 namespace blink { 46 namespace blink {
47 47
48 class LocalDOMWindow; 48 class LocalDOMWindow;
49 class LocalFrame; 49 class LocalFrame;
50 class HTMLDocument;
51 50
52 // WindowProxy represents all the per-global object state for a LocalFrame that 51 // WindowProxy represents all the per-global object state for a LocalFrame that
53 // persist between navigations. 52 // persist between navigations.
54 class WindowProxy { 53 class WindowProxy {
55 public: 54 public:
56 static PassOwnPtr<WindowProxy> create(LocalFrame*, DOMWrapperWorld&, v8::Iso late*); 55 static PassOwnPtr<WindowProxy> create(LocalFrame*, DOMWrapperWorld&, v8::Iso late*);
57 56
58 v8::Local<v8::Context> context() const { return m_scriptState ? m_scriptStat e->context() : v8::Local<v8::Context>(); } 57 v8::Local<v8::Context> context() const { return m_scriptState ? m_scriptStat e->context() : v8::Local<v8::Context>(); }
59 ScriptState* scriptState() const { return m_scriptState.get(); } 58 ScriptState* scriptState() const { return m_scriptState.get(); }
60 59
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 v8::Isolate* m_isolate; 95 v8::Isolate* m_isolate;
97 RefPtr<ScriptState> m_scriptState; 96 RefPtr<ScriptState> m_scriptState;
98 RefPtr<DOMWrapperWorld> m_world; 97 RefPtr<DOMWrapperWorld> m_world;
99 ScopedPersistent<v8::Object> m_global; 98 ScopedPersistent<v8::Object> m_global;
100 ScopedPersistent<v8::Object> m_document; 99 ScopedPersistent<v8::Object> m_document;
101 }; 100 };
102 101
103 } // namespace blink 102 } // namespace blink
104 103
105 #endif // SKY_ENGINE_BINDINGS_CORE_V8_WINDOWPROXY_H_ 104 #endif // SKY_ENGINE_BINDINGS_CORE_V8_WINDOWPROXY_H_
OLDNEW
« no previous file with comments | « sky/engine/bindings/core/v8/V8DOMWrapper.cpp ('k') | sky/engine/bindings/core/v8/WindowProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698