OLD | NEW |
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 #include "chrome/browser/chromeos/login/screens/hid_detection_screen.h" | 5 #include "chrome/browser/chromeos/login/screens/hid_detection_screen.h" |
6 | 6 |
7 #include "chrome/browser/chromeos/login/screens/screen_observer.h" | 7 #include "chrome/browser/chromeos/login/screens/screen_observer.h" |
8 #include "chrome/browser/chromeos/login/wizard_controller.h" | 8 #include "chrome/browser/chromeos/login/wizard_controller.h" |
9 | 9 |
10 namespace chromeos { | 10 namespace chromeos { |
11 | 11 |
12 HIDDetectionScreen::HIDDetectionScreen( | 12 HIDDetectionScreen::HIDDetectionScreen(ScreenObserver* observer, |
13 ScreenObserver* observer, HIDDetectionScreenActor* actor) | 13 HIDDetectionScreenActor* actor) |
14 : WizardScreen(observer), actor_(actor) { | 14 : BaseScreen(observer), actor_(actor) { |
15 DCHECK(actor_); | 15 DCHECK(actor_); |
16 if (actor_) | 16 if (actor_) |
17 actor_->SetDelegate(this); | 17 actor_->SetDelegate(this); |
18 } | 18 } |
19 | 19 |
20 HIDDetectionScreen::~HIDDetectionScreen() { | 20 HIDDetectionScreen::~HIDDetectionScreen() { |
21 if (actor_) | 21 if (actor_) |
22 actor_->SetDelegate(NULL); | 22 actor_->SetDelegate(NULL); |
23 } | 23 } |
24 | 24 |
(...skipping 17 matching lines...) Expand all Loading... |
42 void HIDDetectionScreen::OnExit() { | 42 void HIDDetectionScreen::OnExit() { |
43 get_screen_observer()->OnExit(ScreenObserver::HID_DETECTION_COMPLETED); | 43 get_screen_observer()->OnExit(ScreenObserver::HID_DETECTION_COMPLETED); |
44 } | 44 } |
45 | 45 |
46 void HIDDetectionScreen::OnActorDestroyed(HIDDetectionScreenActor* actor) { | 46 void HIDDetectionScreen::OnActorDestroyed(HIDDetectionScreenActor* actor) { |
47 if (actor_ == actor) | 47 if (actor_ == actor) |
48 actor_ = NULL; | 48 actor_ = NULL; |
49 } | 49 } |
50 | 50 |
51 } // namespace chromeos | 51 } // namespace chromeos |
OLD | NEW |