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

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

Issue 2819613003: cros: Update design of encryption migration UI for ext4 dircrypto. (Closed)
Patch Set: Address review comments. Created 3 years, 8 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_ENCRYPTION_MIGRATION_SCREEN_HANDL ER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HANDL ER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HANDL ER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HANDL ER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/chromeos/login/screens/encryption_migration_screen_view .h" 9 #include "chrome/browser/chromeos/login/screens/encryption_migration_screen_view .h"
10 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" 10 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
(...skipping 25 matching lines...) Expand all
36 ::login::LocalizedValuesBuilder* builder) override; 36 ::login::LocalizedValuesBuilder* builder) override;
37 void Initialize() override; 37 void Initialize() override;
38 38
39 private: 39 private:
40 // Enumeration for the migration state. These values must be kept in sync with 40 // Enumeration for the migration state. These values must be kept in sync with
41 // EncryptionMigrationUIState in JS code. 41 // EncryptionMigrationUIState in JS code.
42 enum UIState { 42 enum UIState {
43 INITIAL = 0, 43 INITIAL = 0,
44 READY = 1, 44 READY = 1,
45 MIGRATING = 2, 45 MIGRATING = 2,
46 MIGRATION_SUCCEEDED = 3, 46 MIGRATION_FAILED = 3,
47 MIGRATION_FAILED = 4, 47 NOT_ENOUGH_STORAGE = 4,
48 NOT_ENOUGH_STORAGE = 5,
49 }; 48 };
50 49
51 // WebUIMessageHandler implementation: 50 // WebUIMessageHandler implementation:
52 void RegisterMessages() override; 51 void RegisterMessages() override;
53 52
54 // PowerManagerClient::Observer implementation: 53 // PowerManagerClient::Observer implementation:
55 void PowerChanged(const power_manager::PowerSupplyProperties& proto) override; 54 void PowerChanged(const power_manager::PowerSupplyProperties& proto) override;
56 55
57 // Handlers for JS API callbacks. 56 // Handlers for JS API callbacks.
58 void HandleStartMigration(); 57 void HandleStartMigration();
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 bool should_migrate_on_enough_battery_ = false; 97 bool should_migrate_on_enough_battery_ = false;
99 98
100 base::WeakPtrFactory<EncryptionMigrationScreenHandler> weak_ptr_factory_; 99 base::WeakPtrFactory<EncryptionMigrationScreenHandler> weak_ptr_factory_;
101 100
102 DISALLOW_COPY_AND_ASSIGN(EncryptionMigrationScreenHandler); 101 DISALLOW_COPY_AND_ASSIGN(EncryptionMigrationScreenHandler);
103 }; 102 };
104 103
105 } // namespace chromeos 104 } // namespace chromeos
106 105
107 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HA NDLER_H_ 106 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HA NDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698