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

Unified 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, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/pdf/elements/viewer-pdf-toolbar/viewer-pdf-toolbar.js
diff --git a/chrome/browser/resources/pdf/elements/viewer-pdf-toolbar/viewer-pdf-toolbar.js b/chrome/browser/resources/pdf/elements/viewer-pdf-toolbar/viewer-pdf-toolbar.js
new file mode 100644
index 0000000000000000000000000000000000000000..77048ce2fd5ab54620b9e6bff206df3b9984c7de
--- /dev/null
+++ b/chrome/browser/resources/pdf/elements/viewer-pdf-toolbar/viewer-pdf-toolbar.js
@@ -0,0 +1,26 @@
+// 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.
+
+Polymer('viewer-pdf-toolbar', {
+
+ 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
+ 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.
+ progress: 0,
Sam McNally 2015/02/03 07:22:45 Similarly, loadProgress?
Alexandre Carlton 2015/02/03 22:50:42 Done.
+ docLength: 1,
+
+ progressChanged: function() {
+ if (this.progress >= 100)
+ this.$.pageselector.style.visibility = 'visible';
+ },
+
+ toggleBookmarks: function() {
+ this.fire('toggle-bookmarks');
+ },
+ 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.
+ this.fire('save');
+ },
+ print: function() {
+ this.fire('print');
+ },
+});

Powered by Google App Engine
This is Rietveld 408576698