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

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

Issue 8395042: [cros,de-hack] Get rid of singleton for the WebUILoginScreen. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: comment nit Created 9 years, 1 month 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
OLDNEW
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_BASE_SCREEN_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_BASE_SCREEN_HANDLER_H_
6 #define 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 7 #pragma once
8 8
9 #include "content/browser/webui/web_ui.h" 9 #include "content/browser/webui/web_ui.h"
10 #include "ui/gfx/native_widget_types.h"
10 11
11 namespace base { 12 namespace base {
12 class DictionaryValue; 13 class DictionaryValue;
13 } 14 }
14 15
15 namespace chromeos { 16 namespace chromeos {
16 17
17 // Base class for the OOBE/Login WebUI handlers. 18 // Base class for the OOBE/Login WebUI handlers.
18 class BaseScreenHandler : public WebUIMessageHandler { 19 class BaseScreenHandler : public WebUIMessageHandler {
19 public: 20 public:
(...skipping 12 matching lines...) Expand all
32 // Called when the page is ready and handler can do initialization. 33 // Called when the page is ready and handler can do initialization.
33 virtual void Initialize() = 0; 34 virtual void Initialize() = 0;
34 35
35 // Show selected WebUI |screen|. Optionally it can pass screen initialization 36 // Show selected WebUI |screen|. Optionally it can pass screen initialization
36 // data via |data| parameter. 37 // data via |data| parameter.
37 void ShowScreen(const char* screen, const base::DictionaryValue* data); 38 void ShowScreen(const char* screen, const base::DictionaryValue* data);
38 39
39 // Whether page is ready. 40 // Whether page is ready.
40 bool page_is_ready() const { return page_is_ready_; } 41 bool page_is_ready() const { return page_is_ready_; }
41 42
43 // Returns the window which shows us.
44 gfx::NativeWindow GetNativeWindow();
45
42 private: 46 private:
43 // Keeps whether page is ready. 47 // Keeps whether page is ready.
44 bool page_is_ready_; 48 bool page_is_ready_;
45 49
46 DISALLOW_COPY_AND_ASSIGN(BaseScreenHandler); 50 DISALLOW_COPY_AND_ASSIGN(BaseScreenHandler);
47 }; 51 };
48 52
49 } // namespace chromeos 53 } // namespace chromeos
50 54
51 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_BASE_SCREEN_HANDLER_H_ 55 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_BASE_SCREEN_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/setting_level_bubble.cc ('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