Update broken references to image assets
[chromium-blink-merge.git] / chrome / browser / chromeos / login / screens / user_image_model.h
blob6234475debdd01f780bdaec50a9183f60a75fb6d
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_IMAGE_MODEL_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_IMAGE_MODEL_H_
8 #include <string>
10 #include "chrome/browser/chromeos/login/screens/base_screen.h"
12 namespace chromeos {
14 class BaseScreenDelegate;
15 class UserImageView;
17 class UserImageModel : public BaseScreen {
18 public:
19 static const char kContextKeyIsCameraPresent[];
20 static const char kContextKeySelectedImageURL[];
21 static const char kContextKeyProfilePictureDataURL[];
23 explicit UserImageModel(BaseScreenDelegate* base_screen_delegate);
24 ~UserImageModel() override;
26 // BaseScreen implementation:
27 std::string GetName() const override;
29 // Called when UI ready to be shown.
30 virtual void OnScreenReady() = 0;
32 // Called when user accepts photo as login user image.
33 virtual void OnPhotoTaken(const std::string& raw_data) = 0;
35 // Called when some image was selected. |is_user_selection| indicates if
36 // it was user selection or image was selected programmatically.
37 virtual void OnImageSelected(const std::string& image_url,
38 const std::string& image_type,
39 bool is_user_selection) = 0;
41 // Called when user accepts currently selected image
42 virtual void OnImageAccepted() = 0;
44 // Called when actor is destroyed so there's no dead reference to it.
45 virtual void OnViewDestroyed(UserImageView* view) = 0;
48 } // namespace chromeos
50 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_IMAGE_MODEL_H_