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

Side by Side Diff: chrome/browser/resources/chromeos/login/oobe_screen_network.js

Issue 9310050: [cros] Error bubble on login is displayed to the left of Gaia frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: License fixes. Created 8 years, 10 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) 2011 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 Oobe network screen implementation. 6 * @fileoverview Oobe network screen implementation.
7 */ 7 */
8 8
9 cr.define('oobe', function() { 9 cr.define('oobe', function() {
10 /** 10 /**
11 * Creates a new oobe screen div. 11 * Creates a new oobe screen div.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 * Shows the network error message. 84 * Shows the network error message.
85 * @param {string} message Message to be shown. 85 * @param {string} message Message to be shown.
86 */ 86 */
87 NetworkScreen.showError = function(message) { 87 NetworkScreen.showError = function(message) {
88 var error = document.createElement('div'); 88 var error = document.createElement('div');
89 var messageDiv = document.createElement('div'); 89 var messageDiv = document.createElement('div');
90 messageDiv.className = 'error-message'; 90 messageDiv.className = 'error-message';
91 messageDiv.textContent = message; 91 messageDiv.textContent = message;
92 error.appendChild(messageDiv); 92 error.appendChild(messageDiv);
93 93
94 $('bubble').showContentForElement($('networks-list'), error); 94 $('bubble').showContentForElement($('networks-list'), error,
95 cr.ui.Bubble.Attachment.BOTTOM);
95 }; 96 };
96 97
97 /** 98 /**
98 * Hides the error notification bubble (if any). 99 * Hides the error notification bubble (if any).
99 */ 100 */
100 NetworkScreen.clearErrors = function() { 101 NetworkScreen.clearErrors = function() {
101 $('bubble').hide(); 102 $('bubble').hide();
102 }; 103 };
103 104
104 return { 105 return {
105 NetworkScreen: NetworkScreen 106 NetworkScreen: NetworkScreen
106 }; 107 };
107 }); 108 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698