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