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

Side by Side Diff: chrome/browser/chromeos/login/update_view.cc

Issue 3361003: Revert 58215 - Revert 58186 - Move the keyboard files from base/ to app/.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 3 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "chrome/browser/chromeos/login/update_view.h" 5 #include "chrome/browser/chromeos/login/update_view.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // Label color. 49 // Label color.
50 const SkColor kLabelColor = 0xFF000000; 50 const SkColor kLabelColor = 0xFF000000;
51 const SkColor kSkipLabelColor = 0xFFAA0000; 51 const SkColor kSkipLabelColor = 0xFFAA0000;
52 const SkColor kManualRebootLabelColor = 0xFFAA0000; 52 const SkColor kManualRebootLabelColor = 0xFFAA0000;
53 53
54 } // namespace 54 } // namespace
55 55
56 namespace chromeos { 56 namespace chromeos {
57 57
58 UpdateView::UpdateView(chromeos::ScreenObserver* observer) 58 UpdateView::UpdateView(chromeos::ScreenObserver* observer)
59 : escape_accelerator_(base::VKEY_ESCAPE, false, false, false), 59 : escape_accelerator_(app::VKEY_ESCAPE, false, false, false),
60 installing_updates_label_(NULL), 60 installing_updates_label_(NULL),
61 reboot_label_(NULL), 61 reboot_label_(NULL),
62 manual_reboot_label_(NULL), 62 manual_reboot_label_(NULL),
63 progress_bar_(NULL), 63 progress_bar_(NULL),
64 show_curtain_(true), 64 show_curtain_(true),
65 show_manual_reboot_label_(false), 65 show_manual_reboot_label_(false),
66 observer_(observer) { 66 observer_(observer) {
67 } 67 }
68 68
69 UpdateView::~UpdateView() { 69 UpdateView::~UpdateView() {
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 escape_to_skip_label_->SizeToFit(max_width); 192 escape_to_skip_label_->SizeToFit(max_width);
193 escape_to_skip_label_->SetX(right_margin); 193 escape_to_skip_label_->SetX(right_margin);
194 escape_to_skip_label_->SetY(kEscapeToSkipLabelY); 194 escape_to_skip_label_->SetY(kEscapeToSkipLabelY);
195 #endif 195 #endif
196 SchedulePaint(); 196 SchedulePaint();
197 } 197 }
198 198
199 bool UpdateView::AcceleratorPressed(const views::Accelerator& a) { 199 bool UpdateView::AcceleratorPressed(const views::Accelerator& a) {
200 #if !defined(OFFICIAL_BUILD) 200 #if !defined(OFFICIAL_BUILD)
201 RemoveAccelerator(escape_accelerator_); 201 RemoveAccelerator(escape_accelerator_);
202 if (a.GetKeyCode() == base::VKEY_ESCAPE) { 202 if (a.GetKeyCode() == app::VKEY_ESCAPE) {
203 if (controller_ != NULL) { 203 if (controller_ != NULL) {
204 controller_->CancelUpdate(); 204 controller_->CancelUpdate();
205 } 205 }
206 return true; 206 return true;
207 } 207 }
208 #endif 208 #endif
209 return false; 209 return false;
210 } 210 }
211 211
212 void UpdateView::InitLabel(views::Label** label) { 212 void UpdateView::InitLabel(views::Label** label) {
(...skipping 19 matching lines...) Expand all
232 checking_label_->SetVisible(show_curtain_); 232 checking_label_->SetVisible(show_curtain_);
233 throbber_->SetVisible(show_curtain_); 233 throbber_->SetVisible(show_curtain_);
234 if (show_curtain_) { 234 if (show_curtain_) {
235 throbber_->Start(); 235 throbber_->Start();
236 } else { 236 } else {
237 throbber_->Stop(); 237 throbber_->Stop();
238 } 238 }
239 } 239 }
240 240
241 } // namespace chromeos 241 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screen_locker_browsertest.cc ('k') | chrome/browser/chromeos/login/user_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698