1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SCREEN_MANAGER_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SCREEN_MANAGER_HANDLER_H_
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
15 class DictionaryValue
;
20 class ScreenManagerHandler
: public BaseScreenHandler
{
24 virtual ~Delegate() {}
26 virtual void OnButtonPressed(const std::string
& screen_name
,
27 const std::string
& button_id
) = 0;
28 virtual void OnContextChanged(const std::string
& screen_name
,
29 const base::DictionaryValue
* diff
) = 0;
32 ScreenManagerHandler();
33 virtual ~ScreenManagerHandler();
35 void SetDelegate(Delegate
* delegate
);
37 // BaseScreenHandler implementation:
38 virtual void DeclareLocalizedValues(LocalizedValuesBuilder
* builder
) OVERRIDE
;
39 virtual void Initialize() OVERRIDE
;
41 // WebUIMessageHandler implementation.
42 virtual void RegisterMessages() OVERRIDE
;
45 void HandleButtonPressed(const std::string
& screen_name
,
46 const std::string
& button_id
);
47 void HandleContextChanged(const std::string
& screen_name
,
48 const base::DictionaryValue
* diff
);
52 DISALLOW_COPY_AND_ASSIGN(ScreenManagerHandler
);
55 } // namespace chromeos
57 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SCREEN_MANAGER_HANDLER_H_