OLD | NEW |
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 #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 "base/thread.h" |
9 #include "chrome/browser/chromeos/login/camera.h" | 10 #include "chrome/browser/chromeos/login/camera.h" |
10 #include "chrome/browser/chromeos/login/user_image_view.h" | 11 #include "chrome/browser/chromeos/login/user_image_view.h" |
11 #include "chrome/browser/chromeos/login/view_screen.h" | 12 #include "chrome/browser/chromeos/login/view_screen.h" |
12 #include "chrome/common/notification_observer.h" | 13 #include "chrome/common/notification_observer.h" |
13 #include "chrome/common/notification_registrar.h" | 14 #include "chrome/common/notification_registrar.h" |
14 #include "third_party/skia/include/core/SkBitmap.h" | 15 #include "third_party/skia/include/core/SkBitmap.h" |
15 | 16 |
16 namespace chromeos { | 17 namespace chromeos { |
17 | 18 |
18 class UserImageScreen: public ViewScreen<UserImageView>, | 19 class UserImageScreen: public ViewScreen<UserImageView>, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 52 |
52 // Object that handles video capturing. | 53 // Object that handles video capturing. |
53 scoped_refptr<Camera> camera_; | 54 scoped_refptr<Camera> camera_; |
54 | 55 |
55 // Counts how many times in a row capture failed. | 56 // Counts how many times in a row capture failed. |
56 int capture_failure_counter_; | 57 int capture_failure_counter_; |
57 | 58 |
58 // Counts how many times camera initialization failed. | 59 // Counts how many times camera initialization failed. |
59 int camera_init_failure_counter_; | 60 int camera_init_failure_counter_; |
60 | 61 |
| 62 // Thread for camera to work on. |
| 63 base::Thread camera_thread_; |
| 64 |
61 NotificationRegistrar registrar_; | 65 NotificationRegistrar registrar_; |
62 | 66 |
63 DISALLOW_COPY_AND_ASSIGN(UserImageScreen); | 67 DISALLOW_COPY_AND_ASSIGN(UserImageScreen); |
64 }; | 68 }; |
65 | 69 |
66 } // namespace chromeos | 70 } // namespace chromeos |
67 | 71 |
68 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_SCREEN_H_ | 72 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_SCREEN_H_ |
69 | 73 |
OLD | NEW |