| OLD | NEW |
| 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 #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/image_decoder.h" | 9 #include "chrome/browser/image_decoder.h" |
| 10 #include "chrome/browser/ui/webui/options/options_ui.h" | 10 #include "chrome/browser/ui/webui/options/options_ui.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 // Starts camera presence check. | 60 // Starts camera presence check. |
| 61 void CheckCameraPresence(); | 61 void CheckCameraPresence(); |
| 62 | 62 |
| 63 // Updates UI with camera presence state. | 63 // Updates UI with camera presence state. |
| 64 void SetCameraPresent(bool present); | 64 void SetCameraPresent(bool present); |
| 65 | 65 |
| 66 // Opens a file selection dialog to choose user image from file. | 66 // Opens a file selection dialog to choose user image from file. |
| 67 void HandleChooseFile(const base::ListValue* args); | 67 void HandleChooseFile(const base::ListValue* args); |
| 68 | 68 |
| 69 // Handles 'take-photo' button click. |
| 70 void HandleTakePhoto(const base::ListValue* args); |
| 71 |
| 69 // Handles photo taken with WebRTC UI. | 72 // Handles photo taken with WebRTC UI. |
| 70 void HandlePhotoTaken(const base::ListValue* args); | 73 void HandlePhotoTaken(const base::ListValue* args); |
| 71 | 74 |
| 75 // Handles 'discard-photo' button click. |
| 76 void HandleDiscardPhoto(const base::ListValue* args); |
| 77 |
| 72 // Handles camera presence check request. | 78 // Handles camera presence check request. |
| 73 void HandleCheckCameraPresence(const base::ListValue* args); | 79 void HandleCheckCameraPresence(const base::ListValue* args); |
| 74 | 80 |
| 75 // Gets the list of available user images and sends it to the page. | 81 // Gets the list of available user images and sends it to the page. |
| 76 void HandleGetAvailableImages(const base::ListValue* args); | 82 void HandleGetAvailableImages(const base::ListValue* args); |
| 77 | 83 |
| 78 // Handles page initialized event. | 84 // Handles page initialized event. |
| 79 void HandlePageInitialized(const base::ListValue* args); | 85 void HandlePageInitialized(const base::ListValue* args); |
| 80 | 86 |
| 81 // Handles page shown event. | 87 // Handles page shown event. |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 // Last known state of the camera. | 145 // Last known state of the camera. |
| 140 bool was_camera_present_; | 146 bool was_camera_present_; |
| 141 | 147 |
| 142 DISALLOW_COPY_AND_ASSIGN(ChangePictureOptionsHandler); | 148 DISALLOW_COPY_AND_ASSIGN(ChangePictureOptionsHandler); |
| 143 }; | 149 }; |
| 144 | 150 |
| 145 } // namespace options | 151 } // namespace options |
| 146 } // namespace chromeos | 152 } // namespace chromeos |
| 147 | 153 |
| 148 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CHANGE_PICTURE_OPTIONS_HANDL
ER_H_ | 154 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CHANGE_PICTURE_OPTIONS_HANDL
ER_H_ |
| OLD | NEW |