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

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

Issue 3159028: Add code to initialize accessibility for UI in the ChromeOS startup wizard. (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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/wizard_accessibility_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/user_image_view.h" 5 #include "chrome/browser/chromeos/login/user_image_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 SkBitmap video_button_image = 72 SkBitmap video_button_image =
73 skia::ImageOperations::Resize( 73 skia::ImageOperations::Resize(
74 *ResourceBundle::GetSharedInstance().GetBitmapNamed( 74 *ResourceBundle::GetSharedInstance().GetBitmapNamed(
75 IDR_USER_IMAGE_NO_VIDEO), 75 IDR_USER_IMAGE_NO_VIDEO),
76 skia::ImageOperations::RESIZE_BOX, 76 skia::ImageOperations::RESIZE_BOX,
77 kVideoImageSize, 77 kVideoImageSize,
78 kVideoImageSize); 78 kVideoImageSize);
79 79
80 video_button_ = new views::ImageButton(this); 80 video_button_ = new views::ImageButton(this);
81 video_button_->SetImage(views::CustomButton::BS_NORMAL, &video_button_image); 81 video_button_->SetImage(views::CustomButton::BS_NORMAL, &video_button_image);
82 video_button_->SetFocusable(true);
82 AddChildView(video_button_); 83 AddChildView(video_button_);
83 84
84 selected_image_ = new views::ImageView(); 85 selected_image_ = new views::ImageView();
85 selected_image_->SetImageSize( 86 selected_image_->SetImageSize(
86 gfx::Size(kUserImageSize, kUserImageSize)); 87 gfx::Size(kUserImageSize, kUserImageSize));
87 selected_image_->SetImage( 88 selected_image_->SetImage(
88 *ResourceBundle::GetSharedInstance().GetBitmapNamed( 89 *ResourceBundle::GetSharedInstance().GetBitmapNamed(
89 IDR_LOGIN_OTHER_USER)); 90 IDR_LOGIN_OTHER_USER));
90 AddChildView(selected_image_); 91 AddChildView(selected_image_);
91 92
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 if (sender == ok_button_) 228 if (sender == ok_button_)
228 delegate_->OnOK(selected_image_->GetImage()); 229 delegate_->OnOK(selected_image_->GetImage());
229 else if (sender == cancel_button_) 230 else if (sender == cancel_button_)
230 delegate_->OnCancel(); 231 delegate_->OnCancel();
231 else 232 else
232 NOTREACHED(); 233 NOTREACHED();
233 } 234 }
234 235
235 } // namespace chromeos 236 } // namespace chromeos
236 237
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/wizard_accessibility_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698