Commit 23b8e20c authored by dschuyler's avatar dschuyler Committed by Commit bot

[MD settings] remove breadcrumb code

The settings breadcrumb feature is being removed.
That location on the title bar will become the search
within settings.  This CL removes the breadcrumb
code.

BUG=589630

Review URL: https://codereview.chromium.org/1815523002

Cr-Commit-Position: refs/heads/master@{#381860}
parent 0c87a7ea
......@@ -155,17 +155,6 @@
<structure name="IDR_SETTINGS_TRANSITION_BEHAVIOR_JS"
file="settings_page/transition_behavior.js"
type="chrome_html" />
<structure name="IDR_SETTINGS_BREADCRUMB_CSS"
file="settings_ui/breadcrumb.css"
type="chrome_html" />
<structure name="IDR_SETTINGS_BREADCRUMB_HTML"
file="settings_ui/breadcrumb.html"
type="chrome_html"
flattenhtml="true"
allowexternalscript="true" />
<structure name="IDR_SETTINGS_BREADCRUMB_JS"
file="settings_ui/breadcrumb.js"
type="chrome_html" />
<structure name="IDR_SETTINGS_CR_SETTINGS_UI_CSS"
file="settings_ui/settings_ui.css"
type="chrome_html" />
......
/* Copyright 2015 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
<link rel="import" href="chrome://resources/html/polymer.html">
<dom-module id="settings-breadcrumb">
<link rel="import" type="css" href="breadcrumb.css">
<template>
<template is="dom-if" if="{{currentRouteTitles}}">
<span on-tap="onTapPage_">{{currentRouteTitles.pageTitle}}</span>
<template is="dom-repeat" items="{{currentRouteTitles.subpageTitles}}">
&gt;
<span on-tap="onTapSubpage_"
data-subpage-index$="{{index}}">{{item}}</span>
</template>
</template>
</template>
<script src="breadcrumb.js"></script>
</dom-module>
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview
* 'settings-breadcrumb' displays the breadcrumb.
*
* Example:
*
* <settings-breadcrumb current-route="{{currentRoute}}">
* </settings-breadcrumb>
*/
Polymer({
is: 'settings-breadcrumb',
properties: {
/**
* The current active route.
*/
currentRoute: {
type: Object,
notify: true,
},
/**
* Page titles for the currently active route.
*/
currentRouteTitles: {
type: Object,
},
},
/** @private */
onTapPage_: function() {
this.currentRoute = {
page: this.currentRoute.page,
section: '',
subpage: [],
};
},
/** @private */
onTapSubpage_: function(event) {
var clickedIndex = event.target.dataset.subpageIndex;
this.currentRoute = {
page: this.currentRoute.page,
section: this.currentRoute.section,
subpage: this.currentRoute.subpage.slice(0, clickedIndex + 1),
};
},
});
......@@ -10,7 +10,6 @@
<link rel="import" href="chrome://md-settings/settings_main/settings_main.html">
<link rel="import" href="chrome://md-settings/settings_menu/settings_menu.html">
<link rel="import" href="chrome://md-settings/settings_page/settings_router.html">
<link rel="import" href="chrome://md-settings/settings_ui/breadcrumb.html">
<dom-module id="settings-ui">
<link rel="import" type="css" href="settings_ui.css">
......@@ -20,9 +19,6 @@
</settings-router>
<paper-toolbar>
<div class="title" i18n-content="settings"></div>
<settings-breadcrumb current-route="{{currentRoute}}"
current-route-titles="[[currentRouteTitles]]">
</settings-breadcrumb>
</paper-toolbar>
<paper-drawer-panel drawer-width="256px" id="panel">
<settings-menu drawer class="flex" current-route="{{currentRoute}}">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment