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

Unified Diff: public/web/WebTransitionElementData.h

Issue 721973002: Navigation transitions (web to native app): Get names and rects of transition elements (Step 4) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « public/web/WebFrameClient.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebTransitionElementData.h
diff --git a/public/web/WebTransitionElementData.h b/public/web/WebTransitionElementData.h
index 3a8537f47151037bf36360f79a1b203489f5d3c4..b6aa388f03f36a0f34f91d437a5bc0a0402ddb85 100644
--- a/public/web/WebTransitionElementData.h
+++ b/public/web/WebTransitionElementData.h
@@ -31,6 +31,9 @@
#ifndef WebTransitionElementData_h
#define WebTransitionElementData_h
+#if INSIDE_BLINK
+#include "core/dom/Document.h"
Nate Chapin 2014/11/13 19:27:30 Including core/ from public/web/ is a layering vio
Zhen Wang 2014/11/13 21:56:03 I see. Assigning the values in FrameLoaderClientIm
+#endif
#include "../platform/WebRect.h"
#include "../platform/WebString.h"
#include "../platform/WebVector.h"
@@ -40,6 +43,16 @@ namespace blink {
struct WebTransitionElement {
WebString id;
WebRect rect;
+
+ WebTransitionElement()
+ : id(WebString())
+ , rect(WebRect()) { }
+
+#if INSIDE_BLINK
+ WebTransitionElement(const Document::TransitionElement& element)
+ : id(element.id)
+ , rect(element.rect) { }
+#endif
};
struct WebTransitionElementData {
« no previous file with comments | « public/web/WebFrameClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698