| 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_OPTIONS_TAKE_PHOTO_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_OPTIONS_TAKE_PHOTO_DIALOG_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_TAKE_PHOTO_DIALOG_H_ | 6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_TAKE_PHOTO_DIALOG_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/chromeos/login/camera_controller.h" | 10 #include "chrome/browser/chromeos/login/camera_controller.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 // TakePhotoView::Delegate overrides. | 43 // TakePhotoView::Delegate overrides. |
| 44 virtual void OnCapturingStarted(); | 44 virtual void OnCapturingStarted(); |
| 45 virtual void OnCapturingStopped(); | 45 virtual void OnCapturingStopped(); |
| 46 | 46 |
| 47 // CameraController::Delegate implementation: | 47 // CameraController::Delegate implementation: |
| 48 virtual void OnCaptureSuccess(); | 48 virtual void OnCaptureSuccess(); |
| 49 virtual void OnCaptureFailure(); | 49 virtual void OnCaptureFailure(); |
| 50 | 50 |
| 51 // NotificationObserver implementation: | 51 // NotificationObserver implementation: |
| 52 virtual void Observe(NotificationType type, | 52 virtual void Observe(int type, |
| 53 const NotificationSource& source, | 53 const NotificationSource& source, |
| 54 const NotificationDetails& details); | 54 const NotificationDetails& details); |
| 55 | 55 |
| 56 protected: | 56 protected: |
| 57 // views::View overrides: | 57 // views::View overrides: |
| 58 virtual void Layout(); | 58 virtual void Layout(); |
| 59 virtual gfx::Size GetPreferredSize(); | 59 virtual gfx::Size GetPreferredSize(); |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 // Starts initializing the camera and shows the appropriate status on the | 62 // Starts initializing the camera and shows the appropriate status on the |
| 63 // screen. | 63 // screen. |
| 64 void InitCamera(); | 64 void InitCamera(); |
| 65 | 65 |
| 66 TakePhotoView* take_photo_view_; | 66 TakePhotoView* take_photo_view_; |
| 67 | 67 |
| 68 CameraController camera_controller_; | 68 CameraController camera_controller_; |
| 69 | 69 |
| 70 NotificationRegistrar registrar_; | 70 NotificationRegistrar registrar_; |
| 71 | 71 |
| 72 DISALLOW_COPY_AND_ASSIGN(TakePhotoDialog); | 72 DISALLOW_COPY_AND_ASSIGN(TakePhotoDialog); |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace chromeos | 75 } // namespace chromeos |
| 76 | 76 |
| 77 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_TAKE_PHOTO_DIALOG_H_ | 77 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_TAKE_PHOTO_DIALOG_H_ |
| OLD | NEW |