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

Unified Diff: public/web/WebFrameClient.h

Issue 654953002: Navigation transitions (web to native app): Get names and rects of transition elements (Step 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use struct for transition element Created 6 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 side-by-side diff with in-line comments
Download patch
Index: public/web/WebFrameClient.h
diff --git a/public/web/WebFrameClient.h b/public/web/WebFrameClient.h
index 17e7770b70bf3fa18b29158ec3d24353233ff509..25b35e3988597282f8d7f8b917930b9f3f1c085d 100644
--- a/public/web/WebFrameClient.h
+++ b/public/web/WebFrameClient.h
@@ -96,6 +96,7 @@ struct WebPluginParams;
struct WebPopupMenuInfo;
struct WebRect;
struct WebSize;
+struct WebTransitionElementData;
struct WebURLError;
class WebFrameClient {
@@ -313,7 +314,11 @@ public:
// Transition navigations -----------------------------------------------
// Provides serialized markup of transition elements for use in the following navigation.
+ virtual void addNavigationTransitionData(const WebTransitionElementData&) { }
+
+ // TODO(zhenw): remove the following two addNavigationTransitionData() functions after the chrome side is done.
Nate Chapin 2014/11/05 18:29:43 TODO->FIXME
Zhen Wang 2014/11/06 17:59:26 Done.
virtual void addNavigationTransitionData(const WebString& allowedDestinationOrigin, const WebString& selector, const WebString& markup) { }
+ virtual void addNavigationTransitionData(const WebString& allowedDestinationOrigin, const WebString& selector, const WebString& markup, const WebVector<WebString>& names, const WebVector<WebRect>& rects) { }
Nate Chapin 2014/11/05 18:29:43 Is this intermediate api actually necessary?
Zhen Wang 2014/11/06 17:59:26 In theory, not necessary. But in reality, we need
Nate Chapin 2014/11/11 00:28:17 Huh, that seems strange, but I guess it's OK. So l
// Web Notifications ---------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698