summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/extensions/manager.html
blob: 74239cd39775861208319197c4cec8ee4694466d (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<style include="cr-hidden-style">
  :host {
    color: var(--cr-primary-text-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    --cr-toolbar-field-width: 680px;
  }

  extensions-sidebar {
    flex-basis: 256px;
  }

  #viewManager {
    flex: 1;
    position: relative;
  }

  extensions-item {
    display: inline-block;
  }
</style>
<extensions-drop-overlay drag-enabled="[[inDevMode]]">
</extensions-drop-overlay>
<extensions-toolbar in-dev-mode="[[inDevMode]]"
    can-load-unpacked="[[canLoadUnpacked]]"
    is-supervised="[[isSupervised_]]"
    dev-mode-controlled-by-policy="[[devModeControlledByPolicy]]"
    delegate="[[delegate]]" on-cr-toolbar-menu-tap="onMenuButtonTap_"
    on-search-changed="onFilterChanged_"
    extensions="[[extensions_]]"
<if expr="chromeos">
    on-kiosk-tap="onKioskTap_"
    kiosk-enabled="[[kioskEnabled_]]"
</if>
    >
</extensions-toolbar>
<template is="dom-if" if="[[showDrawer_]]" restamp>
  <cr-drawer id="drawer" heading="$i18n{toolbarTitle}"
      align="$i18n{textdirection}" on-close="onDrawerClose_">
    <div class="drawer-content">
      <extensions-sidebar id="sidebar"
          on-close-drawer="onCloseDrawer_">
      </extensions-sidebar>
    </div>
  </cr-drawer>
</template>
<cr-view-manager id="viewManager" role="main">
  <extensions-item-list id="items-list" delegate="[[delegate]]"
      in-dev-mode="[[inDevMode]]" filter="[[filter]]"
      hidden$="[[!didInitPage_]]" slot="view" apps="[[apps_]]"
      extensions="[[extensions_]]"
      on-show-install-warnings="onShowInstallWarnings_">
  </extensions-item-list>
  <cr-lazy-render id="details-view">
    <template>
      <extensions-detail-view delegate="[[delegate]]" slot="view"
          in-dev-mode="[[inDevMode]]"
          from-activity-log="[[fromActivityLog_]]"
          show-activity-log="[[showActivityLog]]"
          incognito-available="[[incognitoAvailable_]]"
          data="[[detailViewItem_]]">
      </extensions-detail-view>
    </template>
  </cr-lazy-render>
  <cr-lazy-render id="activity-log">
    <template>
      <extensions-activity-log delegate="[[delegate]]" slot="view"
          extension-info="[[activityLogItem_]]">
      </extensions-activity-log>
    </template>
  </cr-lazy-render>
  <cr-lazy-render id="keyboard-shortcuts">
    <template>
      <extensions-keyboard-shortcuts delegate="[[delegate]]" slot="view"
          items="[[extensions_]]">
      </extensions-keyboard-shortcuts>
    </template>
  </cr-lazy-render>
  <cr-lazy-render id="error-page">
    <template>
      <extensions-error-page data="[[errorPageItem_]]" slot="view"
          delegate="[[delegate]]" in-dev-mode="[[inDevMode]]">
      </extensions-error-page>
    </template>
  </cr-lazy-render>
</cr-view-manager>
<template is="dom-if" if="[[showOptionsDialog_]]" restamp>
  <extensions-options-dialog id="options-dialog"
      on-close="onOptionsDialogClose_">
  </extensions-options-dialog>
</template>
<template is="dom-if" if="[[showLoadErrorDialog_]]" restamp>
  <extensions-load-error id="load-error" delegate="[[delegate]]"
      on-close="onLoadErrorDialogClose_">
  </extensions-load-error>
</template>
<if expr="chromeos">
<template is="dom-if" if="[[showKioskDialog_]]" restamp>
  <extensions-kiosk-dialog id="kiosk-dialog" on-close="onKioskDialogClose_">
  </extensions-kiosk-dialog>
</template>
</if>
<template is="dom-if" if="[[showInstallWarningsDialog_]]" restamp>
  <extensions-install-warnings-dialog
      on-close="onInstallWarningsDialogClose_"
      install-warnings="[[installWarnings_]]">
  </extensions-install-warnings-dialog>
</template>
<cr-toast-manager></cr-toast-manager>