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_CHROMEOS_LOGIN_USER_IMAGE_SCREEN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_USER_IMAGE_SCREEN_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_USER_IMAGE_SCREEN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_USER_IMAGE_SCREEN_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 // Sends image data to the page. | 54 // Sends image data to the page. |
55 void HandleGetImages(); | 55 void HandleGetImages(); |
56 | 56 |
57 // Screen ready to be shown. | 57 // Screen ready to be shown. |
58 void HandleScreenReady(); | 58 void HandleScreenReady(); |
59 | 59 |
60 // Handles photo taken with WebRTC UI. | 60 // Handles photo taken with WebRTC UI. |
61 void HandlePhotoTaken(const std::string& image_url); | 61 void HandlePhotoTaken(const std::string& image_url); |
62 | 62 |
| 63 // Handles 'take-photo' button click. |
| 64 void HandleTakePhoto(); |
| 65 |
| 66 // Handles 'discard-photo' button click. |
| 67 void HandleDiscardPhoto(); |
| 68 |
63 // Handles camera presence check request. | 69 // Handles camera presence check request. |
64 void HandleCheckCameraPresence(); | 70 void HandleCheckCameraPresence(); |
65 | 71 |
66 // Handles clicking on default user image. | 72 // Handles clicking on default user image. |
67 void HandleSelectImage(const std::string& image_url, | 73 void HandleSelectImage(const std::string& image_url, |
68 const std::string& image_type, | 74 const std::string& image_type, |
69 bool is_user_selection); | 75 bool is_user_selection); |
70 | 76 |
71 // Called when user accept the image closing the screen. | 77 // Called when user accept the image closing the screen. |
72 void HandleImageAccepted(); | 78 void HandleImageAccepted(); |
(...skipping 10 matching lines...) Expand all Loading... |
83 bool is_ready_; | 89 bool is_ready_; |
84 | 90 |
85 base::Time screen_show_time_; | 91 base::Time screen_show_time_; |
86 | 92 |
87 DISALLOW_COPY_AND_ASSIGN(UserImageScreenHandler); | 93 DISALLOW_COPY_AND_ASSIGN(UserImageScreenHandler); |
88 }; | 94 }; |
89 | 95 |
90 } // namespace chromeos | 96 } // namespace chromeos |
91 | 97 |
92 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_USER_IMAGE_SCREEN_HANDLER_H_ | 98 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_USER_IMAGE_SCREEN_HANDLER_H_ |
OLD | NEW |