| 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_UI_WEBUI_OPTIONS_CHROMEOS_CHANGE_PICTURE_OPTIONS_HANDLER_
H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CHANGE_PICTURE_OPTIONS_HANDLER_
H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CHANGE_PICTURE_OPTIONS_HANDLER_
H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CHANGE_PICTURE_OPTIONS_HANDLER_
H_ |
| 7 | 7 |
| 8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "chrome/browser/chromeos/login/profile_image_downloader.h" | 9 #include "chrome/browser/chromeos/login/profile_image_downloader.h" |
| 10 #include "chrome/browser/chromeos/options/take_photo_dialog.h" | 10 #include "chrome/browser/chromeos/options/take_photo_dialog.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // SelectFileDialog::Delegate implementation. | 71 // SelectFileDialog::Delegate implementation. |
| 72 virtual void FileSelected( | 72 virtual void FileSelected( |
| 73 const FilePath& path, | 73 const FilePath& path, |
| 74 int index, void* params) OVERRIDE; | 74 int index, void* params) OVERRIDE; |
| 75 | 75 |
| 76 // TakePhotoDialog::Delegate implementation. | 76 // TakePhotoDialog::Delegate implementation. |
| 77 virtual void OnPhotoAccepted(const SkBitmap& photo) OVERRIDE; | 77 virtual void OnPhotoAccepted(const SkBitmap& photo) OVERRIDE; |
| 78 | 78 |
| 79 // ProfileImageDownloader::Delegate implementation. | 79 // ProfileImageDownloader::Delegate implementation. |
| 80 virtual void OnDownloadSuccess(const SkBitmap& image) OVERRIDE; | 80 virtual void OnDownloadSuccess(const SkBitmap& image) OVERRIDE; |
| 81 virtual void OnDownloadFailure() OVERRIDE; |
| 82 virtual void OnDownloadDefaultImage() OVERRIDE; |
| 81 | 83 |
| 82 // content::NotificationObserver implementation. | 84 // content::NotificationObserver implementation. |
| 83 virtual void Observe(int type, | 85 virtual void Observe(int type, |
| 84 const content::NotificationSource& source, | 86 const content::NotificationSource& source, |
| 85 const content::NotificationDetails& details) OVERRIDE; | 87 const content::NotificationDetails& details) OVERRIDE; |
| 86 | 88 |
| 87 // Called when the camera presence check has been completed. | 89 // Called when the camera presence check has been completed. |
| 88 void OnCameraPresenceCheckDone(); | 90 void OnCameraPresenceCheckDone(); |
| 89 | 91 |
| 90 // Returns handle to browser window or NULL if it can't be found. | 92 // Returns handle to browser window or NULL if it can't be found. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 109 content::NotificationRegistrar registrar_; | 111 content::NotificationRegistrar registrar_; |
| 110 | 112 |
| 111 base::WeakPtrFactory<ChangePictureOptionsHandler> weak_factory_; | 113 base::WeakPtrFactory<ChangePictureOptionsHandler> weak_factory_; |
| 112 | 114 |
| 113 DISALLOW_COPY_AND_ASSIGN(ChangePictureOptionsHandler); | 115 DISALLOW_COPY_AND_ASSIGN(ChangePictureOptionsHandler); |
| 114 }; | 116 }; |
| 115 | 117 |
| 116 } // namespace chromeos | 118 } // namespace chromeos |
| 117 | 119 |
| 118 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CHANGE_PICTURE_OPTIONS_HANDL
ER_H_ | 120 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CHANGE_PICTURE_OPTIONS_HANDL
ER_H_ |
| OLD | NEW |