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

Side by Side Diff: chrome/browser/chromeos/login/screens/host_pairing_screen_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_HOST_PAIRING_SCREEN_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HOST_PAIRING_SCREEN_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HOST_PAIRING_SCREEN_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HOST_PAIRING_SCREEN_VIEW_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/chromeos/login/oobe_screen.h"
9 10
10 namespace base { 11 namespace base {
11 class DictionaryValue; 12 class DictionaryValue;
12 } 13 }
13 14
14 namespace chromeos { 15 namespace chromeos {
15 16
16 namespace host_pairing { 17 namespace host_pairing {
17 18
18 // Keep these constants synced with corresponding constants defined in 19 // Keep these constants synced with corresponding constants defined in
(...skipping 21 matching lines...) Expand all
40 } // namespace host_pairing 41 } // namespace host_pairing
41 42
42 class HostPairingScreenView { 43 class HostPairingScreenView {
43 public: 44 public:
44 class Delegate { 45 class Delegate {
45 public: 46 public:
46 virtual ~Delegate() {} 47 virtual ~Delegate() {}
47 virtual void OnViewDestroyed(HostPairingScreenView* view) = 0; 48 virtual void OnViewDestroyed(HostPairingScreenView* view) = 0;
48 }; 49 };
49 50
51 constexpr static OobeScreen kScreenId = OobeScreen::SCREEN_OOBE_HOST_PAIRING;
52
50 HostPairingScreenView(); 53 HostPairingScreenView();
51 virtual ~HostPairingScreenView(); 54 virtual ~HostPairingScreenView();
52 55
53 virtual void Show() = 0; 56 virtual void Show() = 0;
54 virtual void Hide() = 0; 57 virtual void Hide() = 0;
55 virtual void SetDelegate(Delegate* delegate) = 0; 58 virtual void SetDelegate(Delegate* delegate) = 0;
56 virtual void OnContextChanged(const base::DictionaryValue& diff) = 0; 59 virtual void OnContextChanged(const base::DictionaryValue& diff) = 0;
57 60
58 private: 61 private:
59 DISALLOW_COPY_AND_ASSIGN(HostPairingScreenView); 62 DISALLOW_COPY_AND_ASSIGN(HostPairingScreenView);
60 }; 63 };
61 64
62 } // namespace chromeos 65 } // namespace chromeos
63 66
64 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HOST_PAIRING_SCREEN_VIEW_H_ 67 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HOST_PAIRING_SCREEN_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698