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

Side by Side Diff: chrome/browser/chromeos/login/screens/base_screen.h

Issue 2705363002: cros: Move BaseScreenDelegate::ExitCodes into separate file, ScreenExitCode. (Closed)
Patch Set: Rebase Created 3 years, 9 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_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 private: 95 private:
96 BaseScreen& screen_; 96 BaseScreen& screen_;
97 ::login::ScreenContext& context_; 97 ::login::ScreenContext& context_;
98 }; 98 };
99 99
100 // Sends all pending context changes to the JS side. 100 // Sends all pending context changes to the JS side.
101 void CommitContextChanges(); 101 void CommitContextChanges();
102 102
103 // Screen can call this method to notify framework that it have finished 103 // Screen can call this method to notify framework that it have finished
104 // it's work with |outcome|. 104 // it's work with |outcome|.
105 void Finish(BaseScreenDelegate::ExitCodes exit_code); 105 void Finish(ScreenExitCode exit_code);
106 106
107 // The method is called each time some key in screen context is 107 // The method is called each time some key in screen context is
108 // updated by JS side. Default implementation does nothing, so 108 // updated by JS side. Default implementation does nothing, so
109 // subclasses should override it in order to observe updates in 109 // subclasses should override it in order to observe updates in
110 // screen context. 110 // screen context.
111 virtual void OnContextKeyUpdated(const ::login::ScreenContext::KeyType& key); 111 virtual void OnContextKeyUpdated(const ::login::ScreenContext::KeyType& key);
112 112
113 // Returns scoped context editor. The editor or it's copies should not outlive 113 // Returns scoped context editor. The editor or it's copies should not outlive
114 // current BaseScreen instance. 114 // current BaseScreen instance.
115 ContextEditor GetContextEditor(); 115 ContextEditor GetContextEditor();
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 BaseScreenDelegate* base_screen_delegate_ = nullptr; 149 BaseScreenDelegate* base_screen_delegate_ = nullptr;
150 150
151 const OobeScreen screen_id_; 151 const OobeScreen screen_id_;
152 152
153 DISALLOW_COPY_AND_ASSIGN(BaseScreen); 153 DISALLOW_COPY_AND_ASSIGN(BaseScreen);
154 }; 154 };
155 155
156 } // namespace chromeos 156 } // namespace chromeos
157 157
158 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_ 158 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698