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

Side by Side Diff: public/web/WebFrameClient.h

Issue 18371008: Add a WebDocument::watchCssSelectors(selectors) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@pinned
Patch Set: Sync Created 7 years, 3 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
« Source/web/tests/WebFrameTest.cpp ('K') | « public/web/WebDocument.h ('k') | no next file » | 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) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // This frame has been detached from the view, but has not been closed yet. 117 // This frame has been detached from the view, but has not been closed yet.
118 virtual void frameDetached(WebFrame*) { } 118 virtual void frameDetached(WebFrame*) { }
119 119
120 // This frame is about to be closed. This is called after frameDetached, 120 // This frame is about to be closed. This is called after frameDetached,
121 // when the document is being unloaded, due to new one committing. 121 // when the document is being unloaded, due to new one committing.
122 virtual void willClose(WebFrame*) { } 122 virtual void willClose(WebFrame*) { }
123 123
124 // This frame's name has changed. 124 // This frame's name has changed.
125 virtual void didChangeName(WebFrame*, const WebString&) { } 125 virtual void didChangeName(WebFrame*, const WebString&) { }
126 126
127 // Called when a watched CSS selector matches or stops matching.
128 virtual void didMatchCSS(WebFrame*, const WebVector<WebString>& newlyMatchin gSelectors, const WebVector<WebString>& stoppedMatchingSelectors) { }
esprehn 2013/09/04 06:08:28 Passing the frame into didMatchCSS is really weird
Jeffrey Yasskin 2013/09/12 22:09:59 There's no WebDocument here though, and the WebFra
129
127 // Load commands ------------------------------------------------------- 130 // Load commands -------------------------------------------------------
128 131
129 // The client should handle the navigation externally. 132 // The client should handle the navigation externally.
130 virtual void loadURLExternally( 133 virtual void loadURLExternally(
131 WebFrame*, const WebURLRequest&, WebNavigationPolicy) { } 134 WebFrame*, const WebURLRequest&, WebNavigationPolicy) { }
132 virtual void loadURLExternally( 135 virtual void loadURLExternally(
133 WebFrame*, const WebURLRequest&, WebNavigationPolicy, const WebString& d ownloadName) { } 136 WebFrame*, const WebURLRequest&, WebNavigationPolicy, const WebString& d ownloadName) { }
134 137
135 138
136 // Navigational queries ------------------------------------------------ 139 // Navigational queries ------------------------------------------------
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 // Extensions3D.h in WebCore/platform/graphics). 364 // Extensions3D.h in WebCore/platform/graphics).
362 virtual void didLoseWebGLContext(WebFrame*, int) { } 365 virtual void didLoseWebGLContext(WebFrame*, int) { }
363 366
364 protected: 367 protected:
365 ~WebFrameClient() { } 368 ~WebFrameClient() { }
366 }; 369 };
367 370
368 } // namespace WebKit 371 } // namespace WebKit
369 372
370 #endif 373 #endif
OLDNEW
« Source/web/tests/WebFrameTest.cpp ('K') | « public/web/WebDocument.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698