OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_SCREEN_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_SCREEN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/chromeos/login/camera_controller.h" | 9 #include "chrome/browser/chromeos/login/camera_controller.h" |
10 #include "chrome/browser/chromeos/login/user_image_view.h" | 10 #include "chrome/browser/chromeos/login/user_image_view.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 virtual void OnCaptureSuccess(); | 32 virtual void OnCaptureSuccess(); |
33 virtual void OnCaptureFailure(); | 33 virtual void OnCaptureFailure(); |
34 | 34 |
35 // UserImageView::Delegate implementation: | 35 // UserImageView::Delegate implementation: |
36 virtual void StartCamera(); | 36 virtual void StartCamera(); |
37 virtual void StopCamera(); | 37 virtual void StopCamera(); |
38 virtual void OnPhotoTaken(const SkBitmap& image); | 38 virtual void OnPhotoTaken(const SkBitmap& image); |
39 virtual void OnDefaultImageSelected(int index); | 39 virtual void OnDefaultImageSelected(int index); |
40 | 40 |
41 // NotificationObserver implementation: | 41 // NotificationObserver implementation: |
42 virtual void Observe(NotificationType type, | 42 virtual void Observe(int type, |
43 const NotificationSource& source, | 43 const NotificationSource& source, |
44 const NotificationDetails& details); | 44 const NotificationDetails& details); |
45 | 45 |
46 private: | 46 private: |
47 CameraController camera_controller_; | 47 CameraController camera_controller_; |
48 | 48 |
49 NotificationRegistrar registrar_; | 49 NotificationRegistrar registrar_; |
50 | 50 |
51 DISALLOW_COPY_AND_ASSIGN(UserImageScreen); | 51 DISALLOW_COPY_AND_ASSIGN(UserImageScreen); |
52 }; | 52 }; |
53 | 53 |
54 } // namespace chromeos | 54 } // namespace chromeos |
55 | 55 |
56 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_SCREEN_H_ | 56 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_SCREEN_H_ |
57 | 57 |
58 | 58 |
OLD | NEW |