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

Side by Side Diff: chrome/browser/resources/md_extensions/drop_overlay.js

Issue 2948443003: Run clang-format on .js files in c/b/r/md_extensions (Closed)
Patch Set: Created 3 years, 6 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 (function() { 5 (function() {
6 'use strict'; 6 'use strict';
Devlin 2017/06/17 02:25:40 Doesn't this violate indentation rules where funct
Dan Beam 2017/06/19 23:01:25 started a javascript-style@ thread about this fwi
7 7
8 Polymer({ 8 Polymer({
9 is: 'extensions-drop-overlay', 9 is: 'extensions-drop-overlay',
10 created: function() { 10 created: function() {
11 this.hidden = true;
12 var dragTarget = document.documentElement;
13 this.dragWrapperHandler_ =
14 new extensions.DragAndDropHandler(true, dragTarget);
15 dragTarget.addEventListener('extension-drag-started', function() {
16 this.hidden = false;
17 }.bind(this));
18 dragTarget.addEventListener('extension-drag-ended', function() {
11 this.hidden = true; 19 this.hidden = true;
12 var dragTarget = document.documentElement; 20 }.bind(this));
13 this.dragWrapperHandler_ = 21 this.dragWrapper_ =
14 new extensions.DragAndDropHandler(true, dragTarget); 22 new cr.ui.DragWrapper(dragTarget, this.dragWrapperHandler_);
15 dragTarget.addEventListener('extension-drag-started', function() { 23 },
16 this.hidden = false; 24 });
17 }.bind(this));
18 dragTarget.addEventListener('extension-drag-ended', function() {
19 this.hidden = true;
20 }.bind(this));
21 this.dragWrapper_ =
22 new cr.ui.DragWrapper(dragTarget, this.dragWrapperHandler_);
23 },
24 });
25 })(); 25 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698