OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 /** | 5 /** |
6 * @fileoverview Nav dot | 6 * @fileoverview Nav dot |
7 * This is the class for the navigation controls that appear along the bottom | 7 * This is the class for the navigation controls that appear along the bottom |
8 * of the NTP. | 8 * of the NTP. |
9 */ | 9 */ |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
48 this.input_.value = title; | 48 this.input_.value = title; |
49 // Take the input out of the tab-traversal focus order. | 49 // Take the input out of the tab-traversal focus order. |
50 this.input_.disabled = true; | 50 this.input_.disabled = true; |
51 this.appendChild(this.input_); | 51 this.appendChild(this.input_); |
52 | 52 |
53 this.displayTitle = title; | 53 this.displayTitle = title; |
54 this.titleIsEditable_ = titleIsEditable; | 54 this.titleIsEditable_ = titleIsEditable; |
55 | 55 |
56 this.addEventListener('keydown', this.onKeyDown_); | 56 this.addEventListener('keydown', this.onKeyDown_); |
57 this.addEventListener('click', this.onClick_); | 57 this.addEventListener('click', this.onClick_); |
58 this.addEventListener('auxclick', this.onClick_); | |
Dan Beam
2016/08/09 02:04:34
did people file bugs on your about not switching t
Navid Zolghadr
2016/08/09 13:34:46
There was no bug filed for this. This was one of t
Dan Beam
2016/08/09 16:22:54
I think it's fine just to ignore auxiliary clicks
Navid Zolghadr
2016/08/10 14:32:09
If I recall correctly there is this little functio
Dan Beam
2016/08/10 22:35:26
see other comment
Navid Zolghadr
2016/08/11 16:11:03
Removed it. I guess if any bug comes up later we c
| |
58 this.addEventListener('dblclick', this.onDoubleClick_); | 59 this.addEventListener('dblclick', this.onDoubleClick_); |
59 this.dragWrapper_ = new cr.ui.DragWrapper(this, this); | 60 this.dragWrapper_ = new cr.ui.DragWrapper(this, this); |
60 this.addEventListener('webkitTransitionEnd', this.onTransitionEnd_); | 61 this.addEventListener('webkitTransitionEnd', this.onTransitionEnd_); |
61 | 62 |
62 this.input_.addEventListener('blur', this.onInputBlur_.bind(this)); | 63 this.input_.addEventListener('blur', this.onInputBlur_.bind(this)); |
63 this.input_.addEventListener('mousedown', | 64 this.input_.addEventListener('mousedown', |
64 this.onInputMouseDown_.bind(this)); | 65 this.onInputMouseDown_.bind(this)); |
65 this.input_.addEventListener('keydown', this.onInputKeyDown_.bind(this)); | 66 this.input_.addEventListener('keydown', this.onInputKeyDown_.bind(this)); |
66 | 67 |
67 if (animate) { | 68 if (animate) { |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
248 onTransitionEnd_: function(e) { | 249 onTransitionEnd_: function(e) { |
249 if (e.propertyName === 'max-width' && this.classList.contains('small')) | 250 if (e.propertyName === 'max-width' && this.classList.contains('small')) |
250 this.parentNode.removeChild(this); | 251 this.parentNode.removeChild(this); |
251 }, | 252 }, |
252 }; | 253 }; |
253 | 254 |
254 return { | 255 return { |
255 NavDot: NavDot, | 256 NavDot: NavDot, |
256 }; | 257 }; |
257 }); | 258 }); |
OLD | NEW |