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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/enable_debugging_screen_handler.h

Issue 2738973003: cros: WIP patch to remove EnableDebuggingScreenView
Patch Set: Initial upload 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_UI_WEBUI_CHROMEOS_LOGIN_ENABLE_DEBUGGING_SCREEN_HANDLER_H _ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENABLE_DEBUGGING_SCREEN_HANDLER_H _
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENABLE_DEBUGGING_SCREEN_HANDLER_H _ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENABLE_DEBUGGING_SCREEN_HANDLER_H _
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "chrome/browser/chromeos/login/help_app_launcher.h" 12 #include "chrome/browser/chromeos/login/help_app_launcher.h"
13 #include "chrome/browser/chromeos/login/screens/enable_debugging_screen_view.h" 13 #include "chrome/browser/chromeos/login/screens/core_oobe_view.h"
14 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" 14 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
15 15
16 class PrefRegistrySimple; 16 class PrefRegistrySimple;
17 17
18 namespace chromeos { 18 namespace chromeos {
19 19
20 // WebUI implementation of EnableDebuggingScreenView. 20 // WebUI support code for the enable debugging screen.
21 class EnableDebuggingScreenHandler : public EnableDebuggingScreenView, 21 class EnableDebuggingScreenHandler : public CoreOobeView,
22 public BaseScreenHandler { 22 public BaseScreenHandler {
23 public: 23 public:
24 constexpr static OobeScreen kScreenId =
25 OobeScreen::SCREEN_OOBE_ENABLE_DEBUGGING;
26
24 EnableDebuggingScreenHandler(); 27 EnableDebuggingScreenHandler();
25 ~EnableDebuggingScreenHandler() override; 28 ~EnableDebuggingScreenHandler() override;
26 29
27 // EnableDebuggingScreenView implementation: 30 // CoreOobeView implementation:
28 void Show() override;
29 void Hide() override;
30 void SetDelegate(Delegate* delegate) override; 31 void SetDelegate(Delegate* delegate) override;
32 void Show(OobeScreen screen) override;
33 void Hide(OobeScreen screen) override;
31 34
32 // BaseScreenHandler implementation: 35 // BaseScreenHandler implementation:
33 void DeclareLocalizedValues( 36 void DeclareLocalizedValues(
34 ::login::LocalizedValuesBuilder* builder) override; 37 ::login::LocalizedValuesBuilder* builder) override;
35 void Initialize() override; 38 void Initialize() override;
36 39
37 // WebUIMessageHandler implementation: 40 // WebUIMessageHandler implementation:
38 void RegisterMessages() override; 41 void RegisterMessages() override;
39 42
40 // Registers Local State preferences. 43 // Registers Local State preferences.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 bool show_on_init_ = false; 85 bool show_on_init_ = false;
83 86
84 base::WeakPtrFactory<EnableDebuggingScreenHandler> weak_ptr_factory_; 87 base::WeakPtrFactory<EnableDebuggingScreenHandler> weak_ptr_factory_;
85 88
86 DISALLOW_COPY_AND_ASSIGN(EnableDebuggingScreenHandler); 89 DISALLOW_COPY_AND_ASSIGN(EnableDebuggingScreenHandler);
87 }; 90 };
88 91
89 } // namespace chromeos 92 } // namespace chromeos
90 93
91 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENABLE_DEBUGGING_SCREEN_HANDLE R_H_ 94 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENABLE_DEBUGGING_SCREEN_HANDLE R_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/webui/chromeos/login/enable_debugging_screen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698