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

Side by Side Diff: chrome/browser/chromeos/login/dom_login_display_host.h

Issue 6973029: Integrate WebUI Login with cros. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updated code in response to review comments Created 9 years, 7 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
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_CHROMEOS_LOGIN_DOM_LOGIN_DISPLAY_HOST_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_DOM_LOGIN_DISPLAY_HOST_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_DOM_LOGIN_DISPLAY_HOST_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_DOM_LOGIN_DISPLAY_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "chrome/browser/chromeos/login/base_login_display_host.h" 11 #include "chrome/browser/chromeos/login/base_login_display_host.h"
12 #include "ui/gfx/rect.h" 12 #include "ui/gfx/rect.h"
oshima 2011/05/19 01:45:19 forward decl seems to be enough.
rharrison 2011/05/19 16:45:28 Done.
13 13
14 namespace gfx {
15 class Rect;
16 } // namespace gfx
17
18 namespace chromeos { 14 namespace chromeos {
19 15
20 // DOM-specific implementation of the OOBE/login screen host. 16 // DOM-specific implementation of the OOBE/login screen host.
21 // Uses DOMLoginDisplay as the login screen UI implementation, 17 // Uses DOMLoginDisplay as the login screen UI implementation,
22 class DOMLoginDisplayHost : public BaseLoginDisplayHost { 18 class DOMLoginDisplayHost : public BaseLoginDisplayHost {
23 public: 19 public:
24 explicit DOMLoginDisplayHost(const gfx::Rect& background_bounds); 20 explicit DOMLoginDisplayHost(const gfx::Rect& background_bounds);
25 virtual ~DOMLoginDisplayHost(); 21 virtual ~DOMLoginDisplayHost();
26 22
27 // LoginDisplayHost implementation: 23 // LoginDisplayHost implementation:
28 virtual LoginDisplay* CreateLoginDisplay(LoginDisplay::Delegate* delegate) 24 virtual LoginDisplay* CreateLoginDisplay(LoginDisplay::Delegate* delegate)
29 const OVERRIDE; 25 const OVERRIDE;
30 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE; 26 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE;
31 virtual void SetOobeProgress(BackgroundView::LoginStep step) OVERRIDE; 27 virtual void SetOobeProgress(BackgroundView::LoginStep step) OVERRIDE;
32 virtual void SetOobeProgressBarVisible(bool visible) OVERRIDE; 28 virtual void SetOobeProgressBarVisible(bool visible) OVERRIDE;
33 virtual void SetShutdownButtonEnabled(bool enable) OVERRIDE; 29 virtual void SetShutdownButtonEnabled(bool enable) OVERRIDE;
34 virtual void SetStatusAreaEnabled(bool enable) OVERRIDE; 30 virtual void SetStatusAreaEnabled(bool enable) OVERRIDE;
35 virtual void SetStatusAreaVisible(bool visible) OVERRIDE; 31 virtual void SetStatusAreaVisible(bool visible) OVERRIDE;
36 virtual void ShowBackground() OVERRIDE; 32 virtual void ShowBackground() OVERRIDE;
37 33
38 private: 34 private:
39 DISALLOW_COPY_AND_ASSIGN(DOMLoginDisplayHost); 35 DISALLOW_COPY_AND_ASSIGN(DOMLoginDisplayHost);
40 }; 36 };
41 37
42 } // namespace chromeos 38 } // namespace chromeos
43 39
44 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_DOM_LOGIN_DISPLAY_HOST_H_ 40 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_DOM_LOGIN_DISPLAY_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698