blob: fe801baae7c49d33600f2c04a11de23604711670 [file] [log] [blame]
<!-- Copyright 2018 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-iconset-svg/iron-iconset-svg.html">
<!-- TODO(https://crbug.com/852557): replace placeholder with real icon. -->
<iron-iconset-svg name="marketing-opt-in-32" size="32">
<svg>
<defs>
<!-- The Google "G" icon. -->
<g id="googleg" fill="none" fill-rule="evenodd">
<path d="M30.42 16.83c0-1.03-.092-2.017-.264-2.966H16.5v5.61h7.804c-.336 1.81-1.358 3.347-2.894 4.375v3.637h4.686c2.742-2.524 4.324-6.242 4.324-10.657z" fill="#4285F4"></path>
<path d="M16.5 31c3.915 0 7.197-1.298 9.596-3.513L21.41 23.85c-1.298.87-2.96 1.383-4.91 1.383-3.777 0-6.973-2.55-8.113-5.978H3.542v3.757C5.928 27.752 10.832 31 16.5 31z" fill="#34A853"></path>
<path d="M8.387 19.255c-.29-.87-.455-1.8-.455-2.755 0-.956.165-1.885.455-2.755V9.988H3.542C2.56 11.946 2 14.16 2 16.5s.56 4.554 1.542 6.512l4.845-3.757z" fill="#FBBC05"></path>
<path d="M16.5 7.767c2.13 0 4.04.732 5.543 2.168l4.16-4.158C23.69 3.437 20.407 2 16.5 2 10.832 2 5.928 5.25 3.542 9.988l4.845 3.757c1.14-3.427 4.336-5.978 8.113-5.978z" fill="#EA4335"></path>
<path d="M2 2h29v29H2"></path>
</g>
</defs>
</svg>
</iron-iconset-svg>
<iron-iconset-svg name="marketing-opt-in-64" size="64">
<svg>
<defs>
<!-- The Google "G" icon. -->
<g id="googleg" fill="none" fill-rule="evenodd">
<path d="M59.84 32.66c0-2.057-.185-4.035-.527-5.933H32v11.218h15.607c-.672 3.625-2.715 6.696-5.787 8.753v7.276h9.373c5.483-5.05 8.647-12.483 8.647-21.315z" fill="#4285F4"></path>
<path d="M32 61c7.83 0 14.395-2.597 19.193-7.026l-9.373-7.276c-2.596 1.74-5.918 2.768-9.82 2.768-7.553 0-13.946-5.1-16.227-11.956H6.085v7.514C10.855 54.5 20.665 61 32 61z" fill="#34A853"></path>
<path d="M15.773 37.51c-.58-1.74-.91-3.6-.91-5.51 0-1.91.33-3.77.91-5.51v-7.514H6.085C4.12 22.89 3 27.32 3 32s1.12 9.11 3.085 13.024l9.688-7.514z" fill="#FBBC05"></path>
<path d="M32 14.534c4.258 0 8.08 1.463 11.086 4.337l8.318-8.317C46.38 5.873 39.817 3 32 3 20.664 3 10.856 9.5 6.085 18.976l9.688 7.514c2.28-6.855 8.674-11.956 16.227-11.956z" fill="#EA4335"></path>
<path d="M3 3h58v58H3"></path>
</g>
</defs>
</svg>
</iron-iconset-svg>
<dom-module id="marketing-opt-in">
<template>
<link rel="stylesheet" href="marketing_opt_in.css">
<link rel="stylesheet" href="oobe_flex_layout.css">
<oobe-dialog id="marketingOptInOverviewDialog" role="dialog" has-buttons
aria-label="[[i18nDynamic(locale, 'marketingOptInScreenTitle')]]">
<hd-iron-icon slot="oobe-icon" icon1x="marketing-opt-in-32:googleg"
icon2x="marketing-opt-in-64:googleg">
</hd-iron-icon>
<h1 slot="title">
[[i18nDynamic(locale, 'marketingOptInScreenTitle')]]
</h1>
<div slot="subtitle">
[[i18nRecursive(locale, 'marketingOptInScreenSubtitle', 'productName')]]
</div>
<div slot="footer" class="layout vertical">
<div class="marketing-option layout horizontal center">
<hd-iron-icon icon1x="marketing-opt-in-32:googleg"
icon2x="marketing-opt-in-64:googleg">
</hd-iron-icon>
<div id="playUpdatesOptionLabel" class="flex">
[[i18nDynamic(locale, 'marketingOptInGetPlayUpdates')]]
</div>
<cr-toggle id="playUpdatesOption" checked
aria-labelledby="usageStatsLabel">
</cr-toggle>
</div>
<div class="marketing-option layout horizontal center">
<hd-iron-icon icon1x="marketing-opt-in-32:googleg"
icon2x="marketing-opt-in-64:googleg">
</hd-iron-icon>
<div id="chromebookUpdatesOptionLabel" class="flex">
[[i18nRecursive(locale, 'marketingOptInGetChromebookUpdates',
'productName')]]
</div>
<cr-toggle id="chromebookUpdatesOption" checked
aria-labelledby="chromebookUpdatesOption">
</cr-toggle>
</div>
</div>
<div slot="bottom-buttons" class="layout horizontal end-justified">
<oobe-text-button on-tap="onAllSet_" class="focus-on-show" inverse
label-for-aria="[[i18nDynamic(locale,
'marketingOptInScreenAllSet')]]">
[[i18nDynamic(locale, 'marketingOptInScreenAllSet')]]
</oobe-text-button>
</div>
</oobe-dialog>
</template>
</dom-module>