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

Unified Diff: public/web/WebTransitionElementData.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: review fix 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/WebPluginParams.h b/public/web/WebTransitionElementData.h
similarity index 71%
copy from public/web/WebPluginParams.h
copy to public/web/WebTransitionElementData.h
index c76a8797374505c041f6a7197e16954236081bd4..3a8537f47151037bf36360f79a1b203489f5d3c4 100644
--- a/public/web/WebPluginParams.h
+++ b/public/web/WebTransitionElementData.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
+ * Copyright (C) 2014 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -28,21 +28,31 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebPluginParams_h
-#define WebPluginParams_h
+#ifndef WebTransitionElementData_h
+#define WebTransitionElementData_h
+#include "../platform/WebRect.h"
#include "../platform/WebString.h"
-#include "../platform/WebURL.h"
#include "../platform/WebVector.h"
namespace blink {
-struct WebPluginParams {
- WebURL url;
- WebString mimeType;
- WebVector<WebString> attributeNames;
- WebVector<WebString> attributeValues;
- bool loadManually;
+struct WebTransitionElement {
+ WebString id;
+ WebRect rect;
+};
+
+struct WebTransitionElementData {
+ WebString scope;
+ WebString selector;
+ WebString markup;
+ WebVector<WebTransitionElement> elements;
+
+ WebTransitionElementData(const WebString& scope, const WebString& selector, const WebString& markup, const WebVector<WebTransitionElement>& elements)
+ : scope(scope)
+ , selector(selector)
+ , markup(markup)
+ , elements(elements) { }
};
} // namespace blink
« 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