| <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
| <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout-classes.html"> |
| |
| <!-- |
| Discover App object. Manages all Discover UI behavior. |
| |
| Fires |discover-done| event when user triggers exit. |
| |
| This object manages "discover modules", implementing separate features. |
| |
| Each module should have a "card" that implements "launch button" for this |
| module, and will be displayed on the first Discover "Welcome" screen. |
| |
| - All modules must have class "module" and on-click event handler: |
| |
| <discover-module1 class="module" module="module1" hidden> |
| </discover-module1> |
| |
| - All cards must have class "card", slot "cards", and on-click event handler |
| if you need to switch to the module on click: |
| |
| <discover-module1-card class="card" slot="cards" module="module1" |
| on-click="onCardClick_"> |
| </discover-module1-card> |
| |
| - All modules and cards must have correct attribute |module| with value |
| equal to the module name (used by both JS and C++ parts to identify modules). |
| --> |
| <dom-module id="discover-ui"> |
| <template> |
| <link rel="stylesheet" href="discover_ui.css"> |
| <link rel="stylesheet" href="../oobe_fonts.css"> |
| <discover-welcome id="discoverWelcome" |
| on-module-continue="startLinearFlow_" on-module-skip="end_"> |
| <discover-redeem-offers-card class="card" slot="cards" |
| module="redeem-offers"> |
| </discover-redeem-offers-card> |
| <discover-launch-help-app-card class="card" slot="cards" |
| module="launch-help-app"> |
| </discover-launch-help-app-card> |
| <discover-sync-files-card class="card" slot="cards" |
| module="sync-files"> |
| </discover-sync-files-card> |
| <discover-pin-setup-card class="card" slot="cards" |
| module="pinSetup" on-click="onCardClick_"> |
| </discover-pin-setup-card> |
| </discover-welcome> |
| <discover-pin-setup-module class="module" |
| module="pinSetup" first-run="[[firstRun]]" hidden> |
| </discover-pin-setup-module> |
| </template> |
| </dom-module> |