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

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

Issue 304153004: Center lock screen user pod when virtual keyboard is shown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_OOBE_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 public content::WebUIController, 43 public content::WebUIController,
44 public CoreOobeHandler::Delegate { 44 public CoreOobeHandler::Delegate {
45 public: 45 public:
46 class Observer { 46 class Observer {
47 public: 47 public:
48 virtual ~Observer() {} 48 virtual ~Observer() {}
49 virtual void OnCurrentScreenChanged( 49 virtual void OnCurrentScreenChanged(
50 Screen current_screen, Screen new_screen) = 0; 50 Screen current_screen, Screen new_screen) = 0;
51 }; 51 };
52 52
53 // List of known types of OobeUI. Type added as path in chrome://oobe url, for
54 // example chrome://oobe/user-adding.
55 static const char kOobeDisplay[];
56 static const char kLoginDisplay[];
57 static const char kLockDisplay[];
58 static const char kUserAddingDisplay[];
59 static const char kAppLaunchSplashDisplay[];
60
53 // JS oobe/login screens names. 61 // JS oobe/login screens names.
54 static const char kScreenOobeHIDDetection[]; 62 static const char kScreenOobeHIDDetection[];
55 static const char kScreenOobeNetwork[]; 63 static const char kScreenOobeNetwork[];
56 static const char kScreenOobeEula[]; 64 static const char kScreenOobeEula[];
57 static const char kScreenOobeUpdate[]; 65 static const char kScreenOobeUpdate[];
58 static const char kScreenOobeEnrollment[]; 66 static const char kScreenOobeEnrollment[];
59 static const char kScreenOobeReset[]; 67 static const char kScreenOobeReset[];
60 static const char kScreenGaiaSignin[]; 68 static const char kScreenGaiaSignin[];
61 static const char kScreenAccountPicker[]; 69 static const char kScreenAccountPicker[];
62 static const char kScreenKioskAutolaunch[]; 70 static const char kScreenKioskAutolaunch[];
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 void ResetSigninScreenHandlerDelegate(); 135 void ResetSigninScreenHandlerDelegate();
128 136
129 // Add and remove observers for screen change events. 137 // Add and remove observers for screen change events.
130 void AddObserver(Observer* observer); 138 void AddObserver(Observer* observer);
131 void RemoveObserver(Observer* observer); 139 void RemoveObserver(Observer* observer);
132 140
133 Screen current_screen() const { return current_screen_; } 141 Screen current_screen() const { return current_screen_; }
134 142
135 Screen previous_screen() const { return previous_screen_; } 143 Screen previous_screen() const { return previous_screen_; }
136 144
145 const std::string& display_type() const { return display_type_; }
146
137 const std::string& GetScreenName(Screen screen) const; 147 const std::string& GetScreenName(Screen screen) const;
138 148
139 SigninScreenHandler* signin_screen_handler_for_test() { 149 SigninScreenHandler* signin_screen_handler_for_test() {
140 return signin_screen_handler_; 150 return signin_screen_handler_;
141 } 151 }
142 152
143 private: 153 private:
144 // Initializes |screen_ids_| and |screen_names_| structures. 154 // Initializes |screen_ids_| and |screen_names_| structures.
145 void InitializeScreenMaps(); 155 void InitializeScreenMaps();
146 156
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 227
218 // List of registered observers. 228 // List of registered observers.
219 ObserverList<Observer> observer_list_; 229 ObserverList<Observer> observer_list_;
220 230
221 DISALLOW_COPY_AND_ASSIGN(OobeUI); 231 DISALLOW_COPY_AND_ASSIGN(OobeUI);
222 }; 232 };
223 233
224 } // namespace chromeos 234 } // namespace chromeos
225 235
226 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_ 236 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc ('k') | chrome/browser/ui/webui/chromeos/login/oobe_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698