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

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

Issue 10827271: Replace views::Event with ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 #include "chrome/browser/chromeos/login/take_photo_view.h" 5 #include "chrome/browser/chromeos/login/take_photo_view.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/chromeos/login/helper.h" 8 #include "chrome/browser/chromeos/login/helper.h"
9 #include "grit/generated_resources.h" 9 #include "grit/generated_resources.h"
10 #include "grit/theme_resources.h" 10 #include "grit/theme_resources.h"
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 delegate_->OnCapturingStopped(); 273 delegate_->OnCapturingStopped();
274 snapshot_button_->SchedulePaint(); 274 snapshot_button_->SchedulePaint();
275 } 275 }
276 } 276 }
277 277
278 gfx::Size TakePhotoView::GetPreferredSize() { 278 gfx::Size TakePhotoView::GetPreferredSize() {
279 return gfx::Size(width(), height()); 279 return gfx::Size(width(), height());
280 } 280 }
281 281
282 void TakePhotoView::ButtonPressed( 282 void TakePhotoView::ButtonPressed(
283 views::Button* sender, const views::Event& event) { 283 views::Button* sender, const ui::Event& event) {
284 DCHECK(delegate_); 284 DCHECK(delegate_);
285 DCHECK(sender == snapshot_button_); 285 DCHECK(sender == snapshot_button_);
286 FlipCapturingState(); 286 FlipCapturingState();
287 } 287 }
288 288
289 void TakePhotoView::FlipCapturingState() { 289 void TakePhotoView::FlipCapturingState() {
290 if (is_capturing_) { 290 if (is_capturing_) {
291 CaptureImage(); 291 CaptureImage();
292 } else { 292 } else {
293 is_capturing_ = true; 293 is_capturing_ = true;
294 snapshot_button_->SetImage( 294 snapshot_button_->SetImage(
295 views::CustomButton::BS_NORMAL, 295 views::CustomButton::BS_NORMAL,
296 ResourceBundle::GetSharedInstance().GetImageSkiaNamed( 296 ResourceBundle::GetSharedInstance().GetImageSkiaNamed(
297 IDR_USER_IMAGE_CAPTURE)); 297 IDR_USER_IMAGE_CAPTURE));
298 delegate_->OnCapturingStarted(); 298 delegate_->OnCapturingStarted();
299 snapshot_button_->SchedulePaint(); 299 snapshot_button_->SchedulePaint();
300 } 300 }
301 } 301 }
302 302
303 } // namespace chromeos 303 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/take_photo_view.h ('k') | chrome/browser/chromeos/options/network_config_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698