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_UI_WEBUI_CHROMEOS_LOGIN_UPDATE_SCREEN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_UPDATE_SCREEN_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_UPDATE_SCREEN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_UPDATE_SCREEN_HANDLER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "chrome/browser/chromeos/login/screens/update_screen_actor.h" | 9 #include "chrome/browser/chromeos/login/screens/update_screen_actor.h" |
10 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" | 10 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 virtual void ShowProgressMessage(bool visible) OVERRIDE; | 33 virtual void ShowProgressMessage(bool visible) OVERRIDE; |
34 virtual void SetProgressMessage(ProgressMessage message) OVERRIDE; | 34 virtual void SetProgressMessage(ProgressMessage message) OVERRIDE; |
35 virtual void ShowCurtain(bool visible) OVERRIDE; | 35 virtual void ShowCurtain(bool visible) OVERRIDE; |
36 | 36 |
37 // WebUIMessageHandler implementation: | 37 // WebUIMessageHandler implementation: |
38 virtual void RegisterMessages() OVERRIDE; | 38 virtual void RegisterMessages() OVERRIDE; |
39 | 39 |
40 private: | 40 private: |
41 #if !defined(OFFICIAL_BUILD) | 41 #if !defined(OFFICIAL_BUILD) |
42 // Called when user presses Escape to cancel update. | 42 // Called when user presses Escape to cancel update. |
43 void HandleUpdateCancel(const base::ListValue* args); | 43 void HandleUpdateCancel(); |
44 #endif | 44 #endif |
45 | 45 |
46 UpdateScreenActor::Delegate* screen_; | 46 UpdateScreenActor::Delegate* screen_; |
47 | 47 |
48 // Keeps whether screen should be shown right after initialization. | 48 // Keeps whether screen should be shown right after initialization. |
49 bool show_on_init_; | 49 bool show_on_init_; |
50 | 50 |
51 DISALLOW_COPY_AND_ASSIGN(UpdateScreenHandler); | 51 DISALLOW_COPY_AND_ASSIGN(UpdateScreenHandler); |
52 }; | 52 }; |
53 | 53 |
54 } // namespace chromeos | 54 } // namespace chromeos |
55 | 55 |
56 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_UPDATE_SCREEN_HANDLER_H_ | 56 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_UPDATE_SCREEN_HANDLER_H_ |
OLD | NEW |