OLD | NEW |
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_ERROR_SCREEN_ACTOR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ERROR_SCREEN_ACTOR_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ERROR_SCREEN_ACTOR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ERROR_SCREEN_ACTOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 // screen. | 46 // screen. |
47 OobeUI::Screen parent_screen() const { return parent_screen_; } | 47 OobeUI::Screen parent_screen() const { return parent_screen_; } |
48 | 48 |
49 // Sets screen this actor belongs to. | 49 // Sets screen this actor belongs to. |
50 virtual void SetDelegate(ErrorScreenActorDelegate* delegate) = 0; | 50 virtual void SetDelegate(ErrorScreenActorDelegate* delegate) = 0; |
51 | 51 |
52 // Shows the screen. | 52 // Shows the screen. |
53 virtual void Show(OobeDisplay::Screen parent_screen, | 53 virtual void Show(OobeDisplay::Screen parent_screen, |
54 base::DictionaryValue* params) = 0; | 54 base::DictionaryValue* params) = 0; |
55 | 55 |
| 56 // Shows the screen and call |on_hide| on hide. |
| 57 virtual void Show(OobeDisplay::Screen parent_screen, |
| 58 base::DictionaryValue* params, |
| 59 const base::Closure& on_hide) = 0; |
| 60 |
56 // Hides the screen. | 61 // Hides the screen. |
57 virtual void Hide() = 0; | 62 virtual void Hide() = 0; |
58 | 63 |
59 // Initializes captive portal dialog and shows that if needed. | 64 // Initializes captive portal dialog and shows that if needed. |
60 virtual void FixCaptivePortal() = 0; | 65 virtual void FixCaptivePortal() = 0; |
61 | 66 |
62 // Shows captive portal dialog. | 67 // Shows captive portal dialog. |
63 virtual void ShowCaptivePortal() = 0; | 68 virtual void ShowCaptivePortal() = 0; |
64 | 69 |
65 // Hides captive portal dialog. | 70 // Hides captive portal dialog. |
(...skipping 19 matching lines...) Expand all Loading... |
85 bool show_connecting_indicator_; | 90 bool show_connecting_indicator_; |
86 | 91 |
87 OobeUI::Screen parent_screen_; | 92 OobeUI::Screen parent_screen_; |
88 | 93 |
89 DISALLOW_COPY_AND_ASSIGN(ErrorScreenActor); | 94 DISALLOW_COPY_AND_ASSIGN(ErrorScreenActor); |
90 }; | 95 }; |
91 | 96 |
92 } // namespace chromeos | 97 } // namespace chromeos |
93 | 98 |
94 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ERROR_SCREEN_ACTOR_H_ | 99 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ERROR_SCREEN_ACTOR_H_ |
OLD | NEW |