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

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

Issue 2713513009: cros: Break BaseScreenHandler into two classes. (Closed)
Patch Set: Add comments, fix compile Created 3 years, 9 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_NETWORK_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_VIEW_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "chrome/browser/chromeos/login/oobe_screen.h"
9 10
10 namespace chromeos { 11 namespace chromeos {
11 12
12 class NetworkScreen; 13 class NetworkScreen;
13 14
14 // Interface for dependency injection between NetworkScreen and its actual 15 // Interface for dependency injection between NetworkScreen and its actual
15 // representation, either views based or WebUI. Owned by NetworkScreen. 16 // representation, either views based or WebUI. Owned by NetworkScreen.
16 class NetworkView { 17 class NetworkView {
17 public: 18 public:
19 constexpr static OobeScreen kScreenId = OobeScreen::SCREEN_OOBE_NETWORK;
20
18 virtual ~NetworkView() {} 21 virtual ~NetworkView() {}
19 22
20 // Shows the contents of the screen. 23 // Shows the contents of the screen.
21 virtual void Show() = 0; 24 virtual void Show() = 0;
22 25
23 // Hides the contents of the screen. 26 // Hides the contents of the screen.
24 virtual void Hide() = 0; 27 virtual void Hide() = 0;
25 28
26 // Binds |screen| to the view. 29 // Binds |screen| to the view.
27 virtual void Bind(NetworkScreen* screen) = 0; 30 virtual void Bind(NetworkScreen* screen) = 0;
(...skipping 14 matching lines...) Expand all
42 virtual void ShowConnectingStatus(bool connecting, 45 virtual void ShowConnectingStatus(bool connecting,
43 const base::string16& network_id) = 0; 46 const base::string16& network_id) = 0;
44 47
45 // Reloads localized contents. 48 // Reloads localized contents.
46 virtual void ReloadLocalizedContent() = 0; 49 virtual void ReloadLocalizedContent() = 0;
47 }; 50 };
48 51
49 } // namespace chromeos 52 } // namespace chromeos
50 53
51 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_VIEW_H_ 54 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/network_error_view.h ('k') | chrome/browser/chromeos/login/screens/reset_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698