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

Side by Side Diff: trunk/Source/web/FrameLoaderClientImpl.h

Issue 218813002: Revert 170357 "Revert of Make DOMWrapperWorld::current() return ..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 FrameLoaderClientImpl(WebFrameImpl* webFrame); 48 FrameLoaderClientImpl(WebFrameImpl* webFrame);
49 virtual ~FrameLoaderClientImpl(); 49 virtual ~FrameLoaderClientImpl();
50 50
51 WebFrameImpl* webFrame() const { return m_webFrame; } 51 WebFrameImpl* webFrame() const { return m_webFrame; }
52 52
53 // WebCore::FrameLoaderClient ---------------------------------------------- 53 // WebCore::FrameLoaderClient ----------------------------------------------
54 54
55 // Notifies the WebView delegate that the JS window object has been cleared, 55 // Notifies the WebView delegate that the JS window object has been cleared,
56 // giving it a chance to bind native objects to the window before script 56 // giving it a chance to bind native objects to the window before script
57 // parsing begins. 57 // parsing begins.
58 virtual void dispatchDidClearWindowObjectInWorld(WebCore::DOMWrapperWorld*) OVERRIDE; 58 virtual void dispatchDidClearWindowObjectInWorld(WebCore::DOMWrapperWorld&) OVERRIDE;
59 virtual void documentElementAvailable() OVERRIDE; 59 virtual void documentElementAvailable() OVERRIDE;
60 60
61 virtual void didCreateScriptContext(v8::Handle<v8::Context>, int extensionGr oup, int worldId) OVERRIDE; 61 virtual void didCreateScriptContext(v8::Handle<v8::Context>, int extensionGr oup, int worldId) OVERRIDE;
62 virtual void willReleaseScriptContext(v8::Handle<v8::Context>, int worldId) OVERRIDE; 62 virtual void willReleaseScriptContext(v8::Handle<v8::Context>, int worldId) OVERRIDE;
63 63
64 // Returns true if we should allow the given V8 extension to be added to 64 // Returns true if we should allow the given V8 extension to be added to
65 // the script context at the currently loading page and given extension grou p. 65 // the script context at the currently loading page and given extension grou p.
66 virtual bool allowScriptExtension(const String& extensionName, int extension Group, int worldId) OVERRIDE; 66 virtual bool allowScriptExtension(const String& extensionName, int extension Group, int worldId) OVERRIDE;
67 67
68 virtual bool hasWebView() const OVERRIDE; 68 virtual bool hasWebView() const OVERRIDE;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // The WebFrame that owns this object and manages its lifetime. Therefore, 166 // The WebFrame that owns this object and manages its lifetime. Therefore,
167 // the web frame object is guaranteed to exist. 167 // the web frame object is guaranteed to exist.
168 WebFrameImpl* m_webFrame; 168 WebFrameImpl* m_webFrame;
169 }; 169 };
170 170
171 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, WebCore::FrameLoaderClient, client, cli ent->isFrameLoaderClientImpl(), client.isFrameLoaderClientImpl()); 171 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, WebCore::FrameLoaderClient, client, cli ent->isFrameLoaderClientImpl(), client.isFrameLoaderClientImpl());
172 172
173 } // namespace blink 173 } // namespace blink
174 174
175 #endif 175 #endif
OLDNEW
« no previous file with comments | « trunk/Source/core/loader/FrameLoaderClient.h ('k') | trunk/Source/web/FrameLoaderClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698