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

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

Issue 710443002: Add didCreateNewDocument() notification (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use didCreateNewDocument() instead Created 6 years, 1 month 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
« no previous file with comments | « Source/core/loader/FrameLoaderClient.h ('k') | Source/web/FrameLoaderClientImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 class FrameLoaderClientImpl final : public FrameLoaderClient { 46 class FrameLoaderClientImpl final : public FrameLoaderClient {
47 public: 47 public:
48 explicit FrameLoaderClientImpl(WebLocalFrameImpl* webFrame); 48 explicit FrameLoaderClientImpl(WebLocalFrameImpl* webFrame);
49 virtual ~FrameLoaderClientImpl(); 49 virtual ~FrameLoaderClientImpl();
50 50
51 WebLocalFrameImpl* webFrame() const { return m_webFrame; } 51 WebLocalFrameImpl* webFrame() const { return m_webFrame; }
52 52
53 // FrameLoaderClient ---------------------------------------------- 53 // FrameLoaderClient ----------------------------------------------
54 54
55 virtual void didCreateNewDocument() override;
55 // Notifies the WebView delegate that the JS window object has been cleared, 56 // 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 57 // giving it a chance to bind native objects to the window before script
57 // parsing begins. 58 // parsing begins.
58 virtual void dispatchDidClearWindowObjectInMainWorld() override; 59 virtual void dispatchDidClearWindowObjectInMainWorld() override;
59 virtual void documentElementAvailable() override; 60 virtual void documentElementAvailable() override;
60 61
61 virtual void didCreateScriptContext(v8::Handle<v8::Context>, int extensionGr oup, int worldId) override; 62 virtual void didCreateScriptContext(v8::Handle<v8::Context>, int extensionGr oup, int worldId) override;
62 virtual void willReleaseScriptContext(v8::Handle<v8::Context>, int worldId) override; 63 virtual void willReleaseScriptContext(v8::Handle<v8::Context>, int worldId) override;
63 64
64 // Returns true if we should allow the given V8 extension to be added to 65 // Returns true if we should allow the given V8 extension to be added to
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 // The WebFrame that owns this object and manages its lifetime. Therefore, 180 // The WebFrame that owns this object and manages its lifetime. Therefore,
180 // the web frame object is guaranteed to exist. 181 // the web frame object is guaranteed to exist.
181 WebLocalFrameImpl* m_webFrame; 182 WebLocalFrameImpl* m_webFrame;
182 }; 183 };
183 184
184 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, FrameLoaderClient, client, client->isFr ameLoaderClientImpl(), client.isFrameLoaderClientImpl()); 185 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, FrameLoaderClient, client, client->isFr ameLoaderClientImpl(), client.isFrameLoaderClientImpl());
185 186
186 } // namespace blink 187 } // namespace blink
187 188
188 #endif 189 #endif
OLDNEW
« no previous file with comments | « Source/core/loader/FrameLoaderClient.h ('k') | Source/web/FrameLoaderClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698