OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/update_screen_actor.h" | 9 #include "chrome/browser/chromeos/login/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 ShowPreparingUpdatesInfo(bool visible) OVERRIDE; | 33 virtual void ShowPreparingUpdatesInfo(bool visible) OVERRIDE; |
34 | 34 |
35 // WebUIMessageHandler implementation: | 35 // WebUIMessageHandler implementation: |
36 virtual void RegisterMessages() OVERRIDE; | 36 virtual void RegisterMessages() OVERRIDE; |
37 | 37 |
38 private: | 38 private: |
39 #if !defined(OFFICIAL_BUILD) | 39 #if !defined(OFFICIAL_BUILD) |
40 // Called when user presses Escape to cancel update. | 40 // Called when user presses Escape to cancel update. |
41 void HandleUpdateCancel(const base::ListValue* args); | 41 void HandleUpdateCancel(const base::ListValue* args); |
42 #endif | 42 #endif |
| 43 void HandleSkipUpdateEnrollAfterEula(const base::ListValue* args); |
43 | 44 |
44 UpdateScreenActor::Delegate* screen_; | 45 UpdateScreenActor::Delegate* screen_; |
45 | 46 |
46 // Keeps whether screen should be shown right after initialization. | 47 // Keeps whether screen should be shown right after initialization. |
47 bool show_on_init_; | 48 bool show_on_init_; |
48 | 49 |
49 DISALLOW_COPY_AND_ASSIGN(UpdateScreenHandler); | 50 DISALLOW_COPY_AND_ASSIGN(UpdateScreenHandler); |
50 }; | 51 }; |
51 | 52 |
52 } // namespace chromeos | 53 } // namespace chromeos |
53 | 54 |
54 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_UPDATE_SCREEN_HANDLER_H_ | 55 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_UPDATE_SCREEN_HANDLER_H_ |
OLD | NEW |