| 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_SCREEN_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <stack> | 9 #include <stack> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 (screen->*method)(arg1); | 88 (screen->*method)(arg1); |
| 89 } else { | 89 } else { |
| 90 NOTREACHED(); | 90 NOTREACHED(); |
| 91 } | 91 } |
| 92 } | 92 } |
| 93 | 93 |
| 94 // ScreenManagerHandler::Delegate implementation: | 94 // ScreenManagerHandler::Delegate implementation: |
| 95 virtual void OnButtonPressed(const std::string& screen_name, | 95 virtual void OnButtonPressed(const std::string& screen_name, |
| 96 const std::string& button_id) OVERRIDE; | 96 const std::string& button_id) OVERRIDE; |
| 97 virtual void OnContextChanged(const std::string& screen_name, | 97 virtual void OnContextChanged(const std::string& screen_name, |
| 98 const DictionaryValue* diff) OVERRIDE; | 98 const base::DictionaryValue* diff) OVERRIDE; |
| 99 | 99 |
| 100 typedef std::map<std::string, linked_ptr<BaseScreen> > ScreenMap; | 100 typedef std::map<std::string, linked_ptr<BaseScreen> > ScreenMap; |
| 101 | 101 |
| 102 // Factory of screens. | 102 // Factory of screens. |
| 103 scoped_ptr<ScreenFactory> factory_; | 103 scoped_ptr<ScreenFactory> factory_; |
| 104 | 104 |
| 105 // Root of all screen handlers. | 105 // Root of all screen handlers. |
| 106 OobeDisplay* display_; | 106 OobeDisplay* display_; |
| 107 | 107 |
| 108 // Current screen flow. | 108 // Current screen flow. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 125 std::string start_screen_; | 125 std::string start_screen_; |
| 126 scoped_ptr<ScreenContext> start_screen_params_; | 126 scoped_ptr<ScreenContext> start_screen_params_; |
| 127 bool start_screen_popup_; | 127 bool start_screen_popup_; |
| 128 | 128 |
| 129 DISALLOW_COPY_AND_ASSIGN(ScreenManager); | 129 DISALLOW_COPY_AND_ASSIGN(ScreenManager); |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 } // namespace chromeos | 132 } // namespace chromeos |
| 133 | 133 |
| 134 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_MANAGER_H_ | 134 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_MANAGER_H_ |
| OLD | NEW |