Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/base_screen_handler.h

Issue 7382001: [ChromeOS] WebUI OOBE/Login refactoring. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync and merge Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_BASE_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_BASE_SCREEN_HANDLER_H_
7 #pragma once
8
9 #include "content/browser/webui/web_ui.h"
10
11 namespace chromeos {
12
13 // Base class for the OOBE/Login WebUI handlers.
14 class BaseScreenHandler : public WebUIMessageHandler {
15 public:
16 BaseScreenHandler();
17 virtual ~BaseScreenHandler();
18
19 // Gets localized strings to be used on the page.
20 virtual void GetLocalizedStrings(
21 base::DictionaryValue* localized_strings) = 0;
22
23 // This method is called when page is ready. It propagates to inherited class
24 // via virtual Initialize() method (see below).
25 void InitializeBase();
26
27 protected:
28 // Called when the page is ready and handler can do initialization.
29 virtual void Initialize() = 0;
30
31 // Show selected WebUI |screen|. Optionally it can pass screen initialization
32 // data via |data| parameter.
33 void ShowScreen(const char* screen, const char* data);
34
35 // Whether page is ready.
36 bool page_is_ready() const { return page_is_ready_; }
37
38 private:
39 // Keeps whether page is ready.
40 bool page_is_ready_;
41
42 DISALLOW_COPY_AND_ASSIGN(BaseScreenHandler);
43 };
44
45 } // namespace chromeos
46
47 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_BASE_SCREEN_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/standalone/standalone_hack.js ('k') | chrome/browser/ui/webui/chromeos/login/base_screen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698