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

Side by Side Diff: chrome/browser/resources/options/chromeos/display_options.js

Issue 426723004: options: Remove a bunch of useless: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
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 cr.define('options', function() { 5 cr.define('options', function() {
6 var OptionsPage = options.OptionsPage; 6 var OptionsPage = options.OptionsPage;
7 7
8 // The scale ratio of the display rectangle to its original size. 8 // The scale ratio of the display rectangle to its original size.
9 /** @const */ var VISUAL_SCALE = 1 / 10; 9 /** @const */ var VISUAL_SCALE = 1 / 10;
10 10
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 visualScale_: VISUAL_SCALE, 137 visualScale_: VISUAL_SCALE,
138 138
139 /** 139 /**
140 * The location where the last touch event happened. This is used to 140 * The location where the last touch event happened. This is used to
141 * prevent unnecessary dragging events happen. Set to null unless it's 141 * prevent unnecessary dragging events happen. Set to null unless it's
142 * during touch events. 142 * during touch events.
143 * @private 143 * @private
144 */ 144 */
145 lastTouchLocation_: null, 145 lastTouchLocation_: null,
146 146
147 /** 147 /** @override */
148 * Initialize the page.
149 */
150 initializePage: function() { 148 initializePage: function() {
151 OptionsPage.prototype.initializePage.call(this); 149 OptionsPage.prototype.initializePage.call(this);
152 150
153 $('display-options-toggle-mirroring').onclick = function() { 151 $('display-options-toggle-mirroring').onclick = function() {
154 this.mirroring_ = !this.mirroring_; 152 this.mirroring_ = !this.mirroring_;
155 chrome.send('setMirroring', [this.mirroring_]); 153 chrome.send('setMirroring', [this.mirroring_]);
156 }.bind(this); 154 }.bind(this);
157 155
158 var container = $('display-options-displays-view-host'); 156 var container = $('display-options-displays-view-host');
159 container.onmousemove = this.onMouseMove_.bind(this); 157 container.onmousemove = this.onMouseMove_.bind(this);
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 mirroring, displays, layout, offset) { 875 mirroring, displays, layout, offset) {
878 DisplayOptions.getInstance().onDisplayChanged_( 876 DisplayOptions.getInstance().onDisplayChanged_(
879 mirroring, displays, layout, offset); 877 mirroring, displays, layout, offset);
880 }; 878 };
881 879
882 // Export 880 // Export
883 return { 881 return {
884 DisplayOptions: DisplayOptions 882 DisplayOptions: DisplayOptions
885 }; 883 };
886 }); 884 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698