summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/resources/welcome/welcome_app.html
blob: a520eaaaf11e0b7b6f9aacfa5480463d7543d4b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<link rel="import" href="chrome://resources/html/polymer.html">

<link rel="import" href="chrome://resources/cr_elements/cr_toast/cr_toast.html">
<link rel="import" href="chrome://resources/cr_elements/cr_view_manager/cr_view_manager.html">
<link rel="import" href="chrome://resources/cr_elements/hidden_style_css.html">
<link rel="import" href="chrome://resources/html/assert.html">
<link rel="import" href="google_apps/nux_google_apps.html">
<link rel="import" href="landing_view.html">
<link rel="import" href="navigation_behavior.html">
<link rel="import" href="ntp_background/nux_ntp_background.html">
<link rel="import" href="set_as_default/nux_set_as_default.html">
<link rel="import" href="set_as_default/nux_set_as_default_proxy.html">
<link rel="import" href="shared/bookmark_proxy.html">
<link rel="import" href="shared/i18n_setup.html">
<link rel="import" href="signin_view.html">

<dom-module id="welcome-app">
  <template>
    <style include="cr-hidden-style">
      #viewManager {
        display: flex;
        font-size: 100%;
        margin: 0;
        min-height: 100vh;
      }

      #viewManager :-webkit-any(nux-google-apps, nux-ntp-background,
          nux-set-as-default) {
        /* Override cr-view-manager's default styling for view. */
        bottom: initial;
        left: initial;
        margin: auto;
        position: unset;
        right: initial;
        top: initial;
      }

      cr-toast {
        min-width: initial;
      }
    </style>
    <cr-view-manager id="viewManager" hidden="[[!modulesInitialized_]]">
      <landing-view id="step-landing" slot="view" class="active"></landing-view>
    </cr-view-manager>
    <cr-toast duration="3000">
      <div>$i18n{defaultBrowserChanged}</div>
    </cr-toast>
  </template>
  <script src="welcome_app.js"></script>
</dom-module>