OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_REGISTRATION_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_REGISTRATION_SCREEN_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_REGISTRATION_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_REGISTRATION_SCREEN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 class URLRequestJob; | 24 class URLRequestJob; |
25 } // namespace net | 25 } // namespace net |
26 | 26 |
27 namespace chromeos { | 27 namespace chromeos { |
28 | 28 |
29 class ViewScreenDelegate; | 29 class ViewScreenDelegate; |
30 | 30 |
31 // Class that displays screen contents: page and throbber while waiting. | 31 // Class that displays screen contents: page and throbber while waiting. |
32 class RegistrationView : public WebPageView { | 32 class RegistrationView : public WebPageView { |
33 public: | 33 public: |
34 RegistrationView() : dom_view_(new WebPageDomView()) {} | 34 explicit RegistrationView(content::BrowserContext* browser_context); |
35 | 35 |
36 protected: | 36 protected: |
37 virtual WebPageDomView* dom_view() OVERRIDE; | 37 virtual WebPageDomView* dom_view() OVERRIDE; |
38 | 38 |
39 private: | 39 private: |
40 // View that renders page. | 40 // View that renders page. |
41 WebPageDomView* dom_view_; | 41 WebPageDomView* dom_view_; |
42 | 42 |
43 DISALLOW_COPY_AND_ASSIGN(RegistrationView); | 43 DISALLOW_COPY_AND_ASSIGN(RegistrationView); |
44 }; | 44 }; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 virtual void CloseScreen(ScreenObserver::ExitCodes code) OVERRIDE; | 76 virtual void CloseScreen(ScreenObserver::ExitCodes code) OVERRIDE; |
77 | 77 |
78 UnhandledKeyboardEventHandler unhandled_keyboard_handler_; | 78 UnhandledKeyboardEventHandler unhandled_keyboard_handler_; |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(RegistrationScreen); | 80 DISALLOW_COPY_AND_ASSIGN(RegistrationScreen); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace chromeos | 83 } // namespace chromeos |
84 | 84 |
85 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_REGISTRATION_SCREEN_H_ | 85 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_REGISTRATION_SCREEN_H_ |
OLD | NEW |