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

Side by Side Diff: chrome/browser/resources/pdf/elements/viewer-pdf-toolbar/viewer-pdf-toolbar.js

Issue 898673003: Refactor Material Design PDF Viewer toolbar into a single element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove irrelevant comment Created 5 years, 10 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 Polymer('viewer-pdf-toolbar', {
6
7 filename: '',
benwells 2015/02/03 06:31:33 I think you can probably remove the blank line abo
Sam McNally 2015/02/03 07:22:45 How about "title"? Please add comments for these
Alexandre Carlton 2015/02/03 22:50:42 I'm a bit resistant to change it to 'title' since
Alexandre Carlton 2015/02/03 22:50:42 Done.
Sam McNally 2015/02/08 23:30:47 Let's call this title. It doesn't necessarily mean
Alexandre Carlton 2015/02/09 03:44:05 The 'title' attribute is special when dealing with
8 index: '0',
Sam McNally 2015/02/03 07:22:45 In a toolbar element it isn't obvious what this is
Alexandre Carlton 2015/02/03 22:50:42 Done.
9 progress: 0,
Sam McNally 2015/02/03 07:22:45 Similarly, loadProgress?
Alexandre Carlton 2015/02/03 22:50:42 Done.
10 docLength: 1,
11
12 progressChanged: function() {
13 if (this.progress >= 100)
14 this.$.pageselector.style.visibility = 'visible';
15 },
16
17 toggleBookmarks: function() {
18 this.fire('toggle-bookmarks');
19 },
20 save: function() {
benwells 2015/02/03 06:31:33 For consistency, please have a blank line between
Alexandre Carlton 2015/02/03 22:50:42 Done.
21 this.fire('save');
22 },
23 print: function() {
24 this.fire('print');
25 },
26 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698