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

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

Issue 12207077: Refactored error screen logic. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix. Created 7 years, 10 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) 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_ERROR_SCREEN_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ERROR_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ERROR_SCREEN_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ERROR_SCREEN_HANDLER_H_
7 7
8 #include "base/cancelable_callback.h" 8 #include "base/cancelable_callback.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 23 matching lines...) Expand all
34 34
35 // ErrorScreenActor implementation: 35 // ErrorScreenActor implementation:
36 virtual void Show(OobeUI::Screen parent_screen, 36 virtual void Show(OobeUI::Screen parent_screen,
37 base::DictionaryValue* params) OVERRIDE; 37 base::DictionaryValue* params) OVERRIDE;
38 virtual void Hide() OVERRIDE; 38 virtual void Hide() OVERRIDE;
39 virtual void FixCaptivePortal() OVERRIDE; 39 virtual void FixCaptivePortal() OVERRIDE;
40 virtual void ShowCaptivePortal() OVERRIDE; 40 virtual void ShowCaptivePortal() OVERRIDE;
41 virtual void HideCaptivePortal() OVERRIDE; 41 virtual void HideCaptivePortal() OVERRIDE;
42 virtual void ShowProxyError() OVERRIDE; 42 virtual void ShowProxyError() OVERRIDE;
43 virtual void ShowCaptivePortalError(const std::string& network) OVERRIDE; 43 virtual void ShowCaptivePortalError(const std::string& network) OVERRIDE;
44 virtual void ShowTimeoutError() OVERRIDE;
44 virtual void ShowOfflineError() OVERRIDE; 45 virtual void ShowOfflineError() OVERRIDE;
45 virtual void AllowGuestSignin(bool allowed) OVERRIDE; 46 virtual void AllowGuestSignin(bool allowed) OVERRIDE;
46 virtual void AllowOfflineLogin(bool allowed) OVERRIDE; 47 virtual void AllowOfflineLogin(bool allowed) OVERRIDE;
47 48
48 private: 49 private:
49 // Sends notification that error message is shown. 50 // Sends notification that error message is shown.
50 void NetworkErrorShown(); 51 void NetworkErrorShown();
51 52
52 bool GetScreenName(OobeUI::Screen screen, std::string* name) const; 53 bool GetScreenName(OobeUI::Screen screen, std::string* name) const;
53 54
(...skipping 21 matching lines...) Expand all
75 76
76 // Keeps whether screen should be shown right after initialization. 77 // Keeps whether screen should be shown right after initialization.
77 bool show_on_init_; 78 bool show_on_init_;
78 79
79 DISALLOW_COPY_AND_ASSIGN(ErrorScreenHandler); 80 DISALLOW_COPY_AND_ASSIGN(ErrorScreenHandler);
80 }; 81 };
81 82
82 } // namespace chromeos 83 } // namespace chromeos
83 84
84 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ERROR_SCREEN_HANDLER_H_ 85 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ERROR_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698