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

Side by Side Diff: chrome/browser/ui/webui/options/chromeos/date_time_options_handler.h

Issue 247663003: Date and Time dialog for when the clock isn't synced. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Set Time Dialog 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_DATE_TIME_OPTIONS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_DATE_TIME_OPTIONS_HANDLER_H_
7
8 #include "base/compiler_specific.h"
9 #include "chrome/browser/ui/webui/options/options_ui.h"
10 #include "chromeos/dbus/system_clock_client.h"
11
12 namespace chromeos {
13 namespace options {
14
15 // Chrome OS handler for the set date/time link in the Advanced settings page.
16 class DateTimeOptionsHandler : public ::options::OptionsPageUIHandler,
17 public SystemClockClient::Observer {
18 public:
19 DateTimeOptionsHandler();
20 virtual ~DateTimeOptionsHandler();
21
22 // OptionsPageUIHandler:
23 virtual void RegisterMessages() OVERRIDE;
24 virtual void GetLocalizedValues(
25 base::DictionaryValue* localized_strings) OVERRIDE;
26 virtual void InitializeHandler() OVERRIDE;
27 virtual void InitializePage() OVERRIDE;
28
29 private:
30 // SystemClockClient::Observer:
31 virtual void SystemClockCanSetTimeChanged(bool can_set_time) OVERRIDE;
Dan Beam 2014/04/23 17:51:45 nit: there is a school of folks that don't bother
32
33 // Callback for showing the set time dialog from the settings page.
Dan Beam 2014/04/23 17:51:45 please mention which arguments this handler expect
michaelpg 2014/04/24 01:32:23 Done.
34 void HandleShowSetTime(const base::ListValue* args);
35
36 // Only expose the button and dialog of the system time can be set.
37 bool can_set_time_;
38 bool page_initialized_;
39
40 DISALLOW_COPY_AND_ASSIGN(DateTimeOptionsHandler);
41 };
42
43 } // namespace options
44 } // namespace chromeos
45
46 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_DATE_TIME_OPTIONS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698