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

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

Issue 2420123002: Remove dependency from SignInBrowsertest on tracing events watching (Closed)
Patch Set: Created 4 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_SIGNIN_SCREEN_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 ~SigninScreenHandler() override; 227 ~SigninScreenHandler() override;
228 228
229 static std::string GetUserLRUInputMethod(const std::string& username); 229 static std::string GetUserLRUInputMethod(const std::string& username);
230 230
231 // Update current input method (namely keyboard layout) in the given IME state 231 // Update current input method (namely keyboard layout) in the given IME state
232 // to LRU by this user. 232 // to LRU by this user.
233 static void SetUserInputMethod( 233 static void SetUserInputMethod(
234 const std::string& username, 234 const std::string& username,
235 input_method::InputMethodManager::State* ime_state); 235 input_method::InputMethodManager::State* ime_state);
236 236
237 // Sets a callback which will be run when the signin UI is shown.
238 static void SetCallbackOnUiShownForTesting(base::Closure callback);
239
237 // Shows the sign in screen. 240 // Shows the sign in screen.
238 void Show(const LoginScreenContext& context); 241 void Show(const LoginScreenContext& context);
239 242
240 // Sets delegate to be used by the handler. It is guaranteed that valid 243 // Sets delegate to be used by the handler. It is guaranteed that valid
241 // delegate is set before Show() method will be called. 244 // delegate is set before Show() method will be called.
242 void SetDelegate(SigninScreenHandlerDelegate* delegate); 245 void SetDelegate(SigninScreenHandlerDelegate* delegate);
243 246
244 void SetNativeWindowDelegate(NativeWindowDelegate* native_window_delegate); 247 void SetNativeWindowDelegate(NativeWindowDelegate* native_window_delegate);
245 248
246 // NetworkStateInformer::NetworkStateInformerObserver implementation: 249 // NetworkStateInformer::NetworkStateInformerObserver implementation:
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 std::unique_ptr<LoginFeedback> login_feedback_; 514 std::unique_ptr<LoginFeedback> login_feedback_;
512 515
513 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; 516 base::WeakPtrFactory<SigninScreenHandler> weak_factory_;
514 517
515 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); 518 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler);
516 }; 519 };
517 520
518 } // namespace chromeos 521 } // namespace chromeos
519 522
520 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 523 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698