Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(362)

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.h

Issue 629463003: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[w-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "chrome/browser/chromeos/login/screens/user_image_screen_actor.h" 12 #include "chrome/browser/chromeos/login/screens/user_image_screen_actor.h"
13 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" 13 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
14 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" 14 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
15 #include "ui/gfx/image/image_skia.h" 15 #include "ui/gfx/image/image_skia.h"
16 #include "ui/gfx/native_widget_types.h" 16 #include "ui/gfx/native_widget_types.h"
17 17
18 namespace chromeos { 18 namespace chromeos {
19 19
20 // WebUI implementation of UserImageScreenActor. It is used to interact 20 // WebUI implementation of UserImageScreenActor. It is used to interact
21 // with JS page part allowing user to select avatar. 21 // with JS page part allowing user to select avatar.
22 class UserImageScreenHandler : public UserImageScreenActor, 22 class UserImageScreenHandler : public UserImageScreenActor,
23 public BaseScreenHandler { 23 public BaseScreenHandler {
24 public: 24 public:
25 UserImageScreenHandler(); 25 UserImageScreenHandler();
26 virtual ~UserImageScreenHandler(); 26 virtual ~UserImageScreenHandler();
27 27
28 // BaseScreenHandler implementation: 28 // BaseScreenHandler implementation:
29 virtual void Initialize() OVERRIDE; 29 virtual void Initialize() override;
30 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE; 30 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) override;
31 31
32 // WebUIMessageHandler implementation: 32 // WebUIMessageHandler implementation:
33 virtual void RegisterMessages() OVERRIDE; 33 virtual void RegisterMessages() override;
34 34
35 // UserImageScreenActor implementation: 35 // UserImageScreenActor implementation:
36 virtual void SetDelegate( 36 virtual void SetDelegate(
37 UserImageScreenActor::Delegate* screen) OVERRIDE; 37 UserImageScreenActor::Delegate* screen) override;
38 virtual void Show() OVERRIDE; 38 virtual void Show() override;
39 virtual void Hide() OVERRIDE; 39 virtual void Hide() override;
40 virtual void PrepareToShow() OVERRIDE; 40 virtual void PrepareToShow() override;
41 41
42 virtual void SelectImage(int index) OVERRIDE; 42 virtual void SelectImage(int index) override;
43 virtual void SendProfileImage(const std::string& data_url) OVERRIDE; 43 virtual void SendProfileImage(const std::string& data_url) override;
44 virtual void OnProfileImageAbsent() OVERRIDE; 44 virtual void OnProfileImageAbsent() override;
45 45
46 virtual void SetCameraPresent(bool enabled) OVERRIDE; 46 virtual void SetCameraPresent(bool enabled) override;
47 47
48 virtual void HideCurtain() OVERRIDE; 48 virtual void HideCurtain() override;
49 49
50 private: 50 private:
51 51
52 // Sends image data to the page. 52 // Sends image data to the page.
53 void HandleGetImages(); 53 void HandleGetImages();
54 54
55 // Screen ready to be shown. 55 // Screen ready to be shown.
56 void HandleScreenReady(); 56 void HandleScreenReady();
57 57
58 // Handles photo taken with WebRTC UI. 58 // Handles photo taken with WebRTC UI.
(...skipping 25 matching lines...) Expand all
84 bool is_ready_; 84 bool is_ready_;
85 85
86 base::Time screen_show_time_; 86 base::Time screen_show_time_;
87 87
88 DISALLOW_COPY_AND_ASSIGN(UserImageScreenHandler); 88 DISALLOW_COPY_AND_ASSIGN(UserImageScreenHandler);
89 }; 89 };
90 90
91 } // namespace chromeos 91 } // namespace chromeos
92 92
93 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_USER_IMAGE_SCREEN_HANDLER_H_ 93 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_USER_IMAGE_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698