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

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, 2 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
« no previous file with comments | « 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // This frame has been detached from the view, but has not been closed yet. 124 // This frame has been detached from the view, but has not been closed yet.
125 virtual void frameDetached(WebFrame*) { } 125 virtual void frameDetached(WebFrame*) { }
126 126
127 // This frame is about to be closed. This is called after frameDetached, 127 // This frame is about to be closed. This is called after frameDetached,
128 // when the document is being unloaded, due to new one committing. 128 // when the document is being unloaded, due to new one committing.
129 virtual void willClose(WebFrame*) { } 129 virtual void willClose(WebFrame*) { }
130 130
131 // This frame's name has changed. 131 // This frame's name has changed.
132 virtual void didChangeName(WebFrame*, const WebString&) { } 132 virtual void didChangeName(WebFrame*, const WebString&) { }
133 133
134 // Called when a watched CSS selector matches or stops matching.
135 virtual void didMatchCSS(WebFrame*, const WebVector<WebString>& newlyMatchin gSelectors, const WebVector<WebString>& stoppedMatchingSelectors) { }
136
134 // Load commands ------------------------------------------------------- 137 // Load commands -------------------------------------------------------
135 138
136 // The client should handle the navigation externally. 139 // The client should handle the navigation externally.
137 virtual void loadURLExternally( 140 virtual void loadURLExternally(
138 WebFrame*, const WebURLRequest&, WebNavigationPolicy) { } 141 WebFrame*, const WebURLRequest&, WebNavigationPolicy) { }
139 virtual void loadURLExternally( 142 virtual void loadURLExternally(
140 WebFrame*, const WebURLRequest&, WebNavigationPolicy, const WebString& d ownloadName) { } 143 WebFrame*, const WebURLRequest&, WebNavigationPolicy, const WebString& d ownloadName) { }
141 144
142 145
143 // Navigational queries ------------------------------------------------ 146 // Navigational queries ------------------------------------------------
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 // Extensions3D.h in WebCore/platform/graphics). 371 // Extensions3D.h in WebCore/platform/graphics).
369 virtual void didLoseWebGLContext(WebFrame*, int) { } 372 virtual void didLoseWebGLContext(WebFrame*, int) { }
370 373
371 protected: 374 protected:
372 ~WebFrameClient() { } 375 ~WebFrameClient() { }
373 }; 376 };
374 377
375 } // namespace WebKit 378 } // namespace WebKit
376 379
377 #endif 380 #endif
OLDNEW
« no previous file with comments | « public/web/WebDocument.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698