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

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

Issue 2684473002: Revert of Fold UpdateModel into UpdateScreen. (Closed)
Patch Set: Created 3 years, 10 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
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_UPDATE_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_VIEW_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 9
10 namespace chromeos { 10 namespace chromeos {
11 11
12 class UpdateScreen; 12 class UpdateModel;
13 13
14 // Interface for dependency injection between NetworkScreen and its actual 14 // Interface for dependency injection between NetworkScreen and its actual
15 // representation. Owned by UpdateScreen. 15 // representation. Owned by UpdateScreen.
16 class UpdateView { 16 class UpdateView {
17 public: 17 public:
18 virtual ~UpdateView() {} 18 virtual ~UpdateView() {}
19 19
20 // Shows the contents of the screen. 20 // Shows the contents of the screen.
21 virtual void Show() = 0; 21 virtual void Show() = 0;
22 22
23 // Hides the contents of the screen. 23 // Hides the contents of the screen.
24 virtual void Hide() = 0; 24 virtual void Hide() = 0;
25 25
26 // Binds |screen| to the view. 26 // Binds |model| to the view.
27 virtual void Bind(UpdateScreen* screen) = 0; 27 virtual void Bind(UpdateModel& model) = 0;
28 28
29 // Unbinds the screen from the view. 29 // Unbinds model from the view.
30 virtual void Unbind() = 0; 30 virtual void Unbind() = 0;
31 }; 31 };
32 32
33 } // namespace chromeos 33 } // namespace chromeos
34 34
35 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_VIEW_H_ 35 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/update_screen.cc ('k') | chrome/browser/ui/webui/chromeos/login/update_screen_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698