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

Side by Side Diff: webkit/glue/webview_delegate.h

Issue 19624: Add early-injection capability to user scripts. I haven't yet (Closed)
Patch Set: Use new documentElementAvailable() callback Created 11 years, 10 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 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // WebCore provides hooks for several kinds of functionality, allowing separate 5 // WebCore provides hooks for several kinds of functionality, allowing separate
6 // classes termed "delegates" to receive notifications (in the form of direct 6 // classes termed "delegates" to receive notifications (in the form of direct
7 // function calls) when certain events are about to occur or have just occurred. 7 // function calls) when certain events are about to occur or have just occurred.
8 // In some cases, the delegate implements the needed functionality; in others, 8 // In some cases, the delegate implements the needed functionality; in others,
9 // the delegate has some control over the behavior but doesn't actually 9 // the delegate has some control over the behavior but doesn't actually
10 // implement it. For example, the UI delegate is responsible for showing a 10 // implement it. For example, the UI delegate is responsible for showing a
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 // The original version of this is WindowScriptObjectAvailable, below. This 192 // The original version of this is WindowScriptObjectAvailable, below. This
193 // is a Chrome-specific version that serves the same purpose, but has been 193 // is a Chrome-specific version that serves the same purpose, but has been
194 // renamed since we haven't implemented WebScriptObject. Our embedding 194 // renamed since we haven't implemented WebScriptObject. Our embedding
195 // implementation binds native objects to the window via the webframe instead. 195 // implementation binds native objects to the window via the webframe instead.
196 // TODO(pamg): If we do implement WebScriptObject, we may wish to switch to 196 // TODO(pamg): If we do implement WebScriptObject, we may wish to switch to
197 // using the original version of this function. 197 // using the original version of this function.
198 virtual void WindowObjectCleared(WebFrame* webframe) { 198 virtual void WindowObjectCleared(WebFrame* webframe) {
199 } 199 }
200 200
201 // Notifies that the documentElement for the document in a webframe has been
202 // created. This is called before anything else is parsed or executed for the
203 // document.
204 virtual void DocumentElementAvailable(WebFrame* webframe) {
205 }
206
201 // PolicyDelegate ---------------------------------------------------------- 207 // PolicyDelegate ----------------------------------------------------------
202 208
203 // This method is called to notify the delegate, and let it modify a 209 // This method is called to notify the delegate, and let it modify a
204 // proposed navigation. It will be called before loading starts, and 210 // proposed navigation. It will be called before loading starts, and
205 // on every redirect. 211 // on every redirect.
206 // 212 //
207 // disposition specifies what should normally happen for this 213 // disposition specifies what should normally happen for this
208 // navigation (open in current tab, start a new tab, start a new 214 // navigation (open in current tab, start a new tab, start a new
209 // window, etc). This method can return an altered disposition, and 215 // window, etc). This method can return an altered disposition, and
210 // take any additional separate action it wants to. 216 // take any additional separate action it wants to.
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 virtual void DidAddHistoryItem() { } 779 virtual void DidAddHistoryItem() { }
774 780
775 WebViewDelegate() { } 781 WebViewDelegate() { }
776 virtual ~WebViewDelegate() { } 782 virtual ~WebViewDelegate() { }
777 783
778 private: 784 private:
779 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate); 785 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate);
780 }; 786 };
781 787
782 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ 788 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_
OLDNEW
« chrome/common/extensions/user_script_unittest.cc ('K') | « webkit/glue/webframeloaderclient_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698