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

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

Issue 205713002: Add a basic demo mode browser test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix license Created 6 years, 8 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 | Annotate | Revision Log
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_NETWORK_SCREEN_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/scoped_ptr.h"
11 #include "base/time/time.h" 12 #include "base/time/time.h"
12 #include "base/timer/timer.h" 13 #include "base/timer/timer.h"
13 #include "chrome/browser/chromeos/login/screens/network_screen_actor.h" 14 #include "chrome/browser/chromeos/login/screens/network_screen_actor.h"
14 #include "chrome/browser/chromeos/settings/cros_settings.h" 15 #include "chrome/browser/chromeos/settings/cros_settings.h"
15 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" 16 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
16 #include "chromeos/ime/component_extension_ime_manager.h" 17 #include "chromeos/ime/component_extension_ime_manager.h"
17 #include "ui/gfx/point.h" 18 #include "ui/gfx/point.h"
18 19
19 class PrefRegistrySimple; 20 class PrefRegistrySimple;
20 21
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 base::TimeDelta time_on_oobe_; 111 base::TimeDelta time_on_oobe_;
111 112
112 // Keeps whether screen should be shown right after initialization. 113 // Keeps whether screen should be shown right after initialization.
113 bool show_on_init_; 114 bool show_on_init_;
114 115
115 // Position of the network control. 116 // Position of the network control.
116 gfx::Point network_control_pos_; 117 gfx::Point network_control_pos_;
117 118
118 scoped_ptr<CrosSettings::ObserverSubscription> timezone_subscription_; 119 scoped_ptr<CrosSettings::ObserverSubscription> timezone_subscription_;
119 120
120 scoped_ptr<IdleDetector> detector_; 121 scoped_ptr<IdleDetector> idle_detector_;
121 122
122 base::RepeatingTimer<NetworkScreenHandler> oobe_timer_; 123 base::RepeatingTimer<NetworkScreenHandler> oobe_timer_;
123 124
124 // Timeout to detect if the machine is in a derelict state. 125 // Timeout to detect if the machine is in a derelict state.
125 base::TimeDelta derelict_detection_timeout_; 126 base::TimeDelta derelict_detection_timeout_;
126 // Timeout before showing our demo up if the machine is in a derelict state. 127 // Timeout before showing our demo app if the machine is in a derelict state.
127 base::TimeDelta derelict_idle_timeout_; 128 base::TimeDelta derelict_idle_timeout_;
128 // Time between updating our total time on oobe. 129 // Time between updating our total time on oobe.
129 base::TimeDelta oobe_timer_update_interval_; 130 base::TimeDelta oobe_timer_update_interval_;
130 131
131 base::WeakPtrFactory<NetworkScreenHandler> weak_ptr_factory_; 132 base::WeakPtrFactory<NetworkScreenHandler> weak_ptr_factory_;
132 133
133 DISALLOW_COPY_AND_ASSIGN(NetworkScreenHandler); 134 DISALLOW_COPY_AND_ASSIGN(NetworkScreenHandler);
134 }; 135 };
135 136
136 } // namespace chromeos 137 } // namespace chromeos
137 138
138 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_ 139 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698