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

Side by Side Diff: chrome/browser/resources/chromeos/proxy_settings.js

Issue 410293004: Split OptionsPage into Page and PageManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed feedback 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 var OptionsPage = options.OptionsPage;
6 var Preferences = options.Preferences; 5 var Preferences = options.Preferences;
7 var DetailsInternetPage = options.internet.DetailsInternetPage; 6 var DetailsInternetPage = options.internet.DetailsInternetPage;
8 7
9 /** 8 /**
10 * DOMContentLoaded handler, sets up the page. 9 * DOMContentLoaded handler, sets up the page.
11 */ 10 */
12 function load() { 11 function load() {
13 if (cr.isChromeOS) 12 if (cr.isChromeOS)
14 document.documentElement.setAttribute('os', 'chromeos'); 13 document.documentElement.setAttribute('os', 'chromeos');
15 14
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 } 46 }
48 47
49 disableTextSelectAndDrag(function(e) { 48 disableTextSelectAndDrag(function(e) {
50 var src = e.target; 49 var src = e.target;
51 return src instanceof HTMLTextAreaElement || 50 return src instanceof HTMLTextAreaElement ||
52 src instanceof HTMLInputElement && 51 src instanceof HTMLInputElement &&
53 /text|url/.test(src.type); 52 /text|url/.test(src.type);
54 }); 53 });
55 54
56 document.addEventListener('DOMContentLoaded', load); 55 document.addEventListener('DOMContentLoaded', load);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698