Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Side by Side Diff: chrome/browser/resources/settings/on_startup_page/startup_urls_page.html

Issue 2960773002: M60 merge: MD Settings: Allow editing startup URLs when "recommended" policy is present. (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <link rel="import" href="chrome://resources/html/polymer.html"> 1 <link rel="import" href="chrome://resources/html/polymer.html">
2 2
3 <link rel="import" href="chrome://resources/html/action_link.html"> 3 <link rel="import" href="chrome://resources/html/action_link.html">
4 <link rel="import" href="chrome://resources/html/action_link_css.html"> 4 <link rel="import" href="chrome://resources/html/action_link_css.html">
5 <link rel="import" href="chrome://resources/html/assert.html"> 5 <link rel="import" href="chrome://resources/html/assert.html">
6 <link rel="import" href="chrome://resources/html/cr/ui/focus_without_ink.html"> 6 <link rel="import" href="chrome://resources/html/cr/ui/focus_without_ink.html">
7 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f lex-layout-classes.html"> 7 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f lex-layout-classes.html">
8 <link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.htm l"> 8 <link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.htm l">
9 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> 9 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
10 <link rel="import" href="chrome://resources/cr_elements/cr_scrollable_behavior.h tml"> 10 <link rel="import" href="chrome://resources/cr_elements/cr_scrollable_behavior.h tml">
(...skipping 19 matching lines...) Expand all
30 cursor: default; 30 cursor: default;
31 } 31 }
32 </style> 32 </style>
33 <div id="outer" class="layout vertical flex vertical-list"> 33 <div id="outer" class="layout vertical flex vertical-list">
34 <div id="container" class="scroll-container" scrollable> 34 <div id="container" class="scroll-container" scrollable>
35 <iron-list items="[[startupPages_]]" scroll-target="container"> 35 <iron-list items="[[startupPages_]]" scroll-target="container">
36 <template> 36 <template>
37 <settings-startup-url-entry model="[[item]]" 37 <settings-startup-url-entry model="[[item]]"
38 tabindex$="[[tabIndex]]" iron-list-tab-index="[[tabIndex]]" 38 tabindex$="[[tabIndex]]" iron-list-tab-index="[[tabIndex]]"
39 last-focused="{{lastFocused_}}" 39 last-focused="{{lastFocused_}}"
40 editable="[[!prefs.session.startup_urls.controlledBy]]"> 40 editable="[[shouldAllowUrlsEdit_(
41 prefs.session.startup_urls.enforcement)]]">
41 </settings-startup-url-entry> 42 </settings-startup-url-entry>
42 </template> 43 </template>
43 </iron-list> 44 </iron-list>
44 </div> 45 </div>
45 <template is="dom-if" if="[[!prefs.session.startup_urls.controlledBy]]" 46 <template is="dom-if" if="[[shouldAllowUrlsEdit_(
46 restamp> 47 prefs.session.startup_urls.enforcement)]]" restamp>
47 <div class="list-item" id="addPage"> 48 <div class="list-item" id="addPage">
48 <a is="action-link" class="list-button" on-tap="onAddPageTap_"> 49 <a is="action-link" class="list-button" on-tap="onAddPageTap_">
49 $i18n{onStartupAddNewPage} 50 $i18n{onStartupAddNewPage}
50 </a> 51 </a>
51 </div> 52 </div>
52 <div class="list-item" id="useCurrentPages"> 53 <div class="list-item" id="useCurrentPages">
53 <a is="action-link" class="list-button" 54 <a is="action-link" class="list-button"
54 on-tap="onUseCurrentPagesTap_"> 55 on-tap="onUseCurrentPagesTap_">
55 $i18n{onStartupUseCurrent} 56 $i18n{onStartupUseCurrent}
56 </a> 57 </a>
(...skipping 10 matching lines...) Expand all
67 </template> 68 </template>
68 </div> 69 </div>
69 <template is="dom-if" if="[[showStartupUrlDialog_]]" restamp> 70 <template is="dom-if" if="[[showStartupUrlDialog_]]" restamp>
70 <settings-startup-url-dialog model="[[startupUrlDialogModel_]]" 71 <settings-startup-url-dialog model="[[startupUrlDialogModel_]]"
71 on-close="destroyUrlDialog_"> 72 on-close="destroyUrlDialog_">
72 </settings-startup-url-dialog> 73 </settings-startup-url-dialog>
73 </template> 74 </template>
74 </template> 75 </template>
75 <script src="startup_urls_page.js"></script> 76 <script src="startup_urls_page.js"></script>
76 </dom-module> 77 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698