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

Side by Side Diff: chrome/browser/chromeos/login/screens/base_screen.h

Issue 326933004: Example of usage of new features of context and screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/screens/controller_pairing_screen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_SCREENS_BASE_SCREEN_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "chrome/browser/chromeos/login/screens/screen_context.h"
12 11
13 namespace base { 12 namespace base {
14 class DictionaryValue; 13 class DictionaryValue;
15 } 14 }
16 15
17 namespace chromeos { 16 namespace chromeos {
18 17
18 class ScreenContext;
19
19 // Base class for the all OOBE/login/before-session screens. 20 // Base class for the all OOBE/login/before-session screens.
20 // Screens are identified by ID, screen and it's JS counterpart must have same 21 // Screens are identified by ID, screen and it's JS counterpart must have same
21 // id. 22 // id.
22 // Most of the screens will be re-created for each appearance with Initialize() 23 // Most of the screens will be re-created for each appearance with Initialize()
23 // method called just once. However if initialization is too expensive, screen 24 // method called just once. However if initialization is too expensive, screen
24 // can override result of IsPermanent() method, and do clean-up upon subsequent 25 // can override result of IsPermanent() method, and do clean-up upon subsequent
25 // Initialize() method calls. 26 // Initialize() method calls.
26 class BaseScreen { 27 class BaseScreen {
27 public: 28 public:
28 BaseScreen(); 29 BaseScreen();
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 private: 89 private:
89 friend class ScreenManager; 90 friend class ScreenManager;
90 void SetContext(ScreenContext* context); 91 void SetContext(ScreenContext* context);
91 92
92 DISALLOW_COPY_AND_ASSIGN(BaseScreen); 93 DISALLOW_COPY_AND_ASSIGN(BaseScreen);
93 }; 94 };
94 95
95 } // namespace chromeos 96 } // namespace chromeos
96 97
97 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_ 98 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/screens/controller_pairing_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698