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

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

Issue 851393002: add previously focused node to WebClient::focusedNodeChanged (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: dont break chrome Created 5 years, 11 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 // Called to determine if drag-n-drop operations may initiate a page 180 // Called to determine if drag-n-drop operations may initiate a page
181 // navigation. 181 // navigation.
182 virtual bool acceptsLoadDrops() { return true; } 182 virtual bool acceptsLoadDrops() { return true; }
183 183
184 // Take focus away from the WebView by focusing an adjacent UI element 184 // Take focus away from the WebView by focusing an adjacent UI element
185 // in the containing window. 185 // in the containing window.
186 virtual void focusNext() { } 186 virtual void focusNext() { }
187 virtual void focusPrevious() { } 187 virtual void focusPrevious() { }
188 188
189 // Called when a new node gets focused. 189 // TODO(estade): remove this function.
Mike West 2015/01/19 08:52:16 Totally tiny nit: We use FIXME in Blink.
Evan Stade 2015/01/20 22:23:54 Done.
190 virtual void focusedNodeChanged(const WebNode&) { } 190 virtual void focusedNodeChanged(const WebNode&) { }
191 // Called when a new node gets focused. First argument is the previously foc used node, the
192 // second is the newly focused node. Either can be null.
193 virtual void focusedNodeChanged(const WebNode&, const WebNode&) { }
dmazzoni 2015/01/20 07:31:52 Nit: Blink leaves out argument names in header fil
Evan Stade 2015/01/20 22:23:54 Done.
191 194
192 // Indicates two things: 195 // Indicates two things:
193 // 1) This view may have a new layout now. 196 // 1) This view may have a new layout now.
194 // 2) Calling layout() is a no-op. 197 // 2) Calling layout() is a no-op.
195 // After calling WebWidget::layout(), expect to get this notification 198 // After calling WebWidget::layout(), expect to get this notification
196 // unless the view did not need a layout. 199 // unless the view did not need a layout.
197 virtual void didUpdateLayout() { } 200 virtual void didUpdateLayout() { }
198 201
199 // Return true to swallow the input event if the embedder will start a disam biguation popup 202 // Return true to swallow the input event if the embedder will start a disam biguation popup
200 virtual bool didTapMultipleTargets(const WebSize& pinchViewportOffset, const WebRect& touchRect, const WebVector<WebRect>& targetRects) { return false; } 203 virtual bool didTapMultipleTargets(const WebSize& pinchViewportOffset, const WebRect& touchRect, const WebVector<WebRect>& targetRects) { return false; }
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 // Informs the browser that the draggable regions have been updated. 296 // Informs the browser that the draggable regions have been updated.
294 virtual void draggableRegionsChanged() { } 297 virtual void draggableRegionsChanged() { }
295 298
296 protected: 299 protected:
297 ~WebViewClient() { } 300 ~WebViewClient() { }
298 }; 301 };
299 302
300 } // namespace blink 303 } // namespace blink
301 304
302 #endif 305 #endif
OLDNEW
« Source/web/ChromeClientImpl.cpp ('K') | « Source/web/ChromeClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698