Chromium Code Reviews| 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..fc3d7d5e9c81d8ade3c6c1429e5d1084871c900f 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 name; |
| + WebRect rect; |
| +}; |
| + |
| +struct WebTransitionElementData { |
|
Nate Chapin
2014/11/05 18:29:43
You should probably add compile asserts to ensure
Zhen Wang
2014/11/06 17:59:26
I don't really understand. No enum is used in this
Nate Chapin
2014/11/11 00:28:17
Doh. I mixed-and-matched concepts, don't mind me.
|
| + 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 |