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

Side by Side Diff: chrome/browser/resources/settings/settings_page/settings_subheader.js

Issue 1826683002: MD Settings: Lazy-load sub-pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WebAnimationsExterns
Patch Set: Created 4 years, 9 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 /**
6 * @fileoverview
7 * 'settings-subheader' shows a subheader for subpages. This header contains
8 * the subpage title and a back icon. The back icon fires an event which
9 * is caught by settings-animated-pages, so it requires no separate handling.
10 *
11 * Examples:
12 *
13 * <settings-subheader i18n-values="page-title:internetPageTitle">
14 * </settings-subheader>
15 */
16 Polymer({
17 is: 'settings-subheader',
18
19 /** @private */
20 onTapBack_: function() {
21 // Event is caught by settings-animated-pages.
22 this.fire('subpage-back');
23 },
24 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698