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

Side by Side Diff: chrome/browser/chromeos/set_time_dialog.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
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_UI_CHOOSE_MOBILE_NETWORK_DIALOG_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_SET_TIME_DIALOG_H_
6 #define CHROME_BROWSER_CHROMEOS_UI_CHOOSE_MOBILE_NETWORK_DIALOG_H_ 6 #define CHROME_BROWSER_CHROMEOS_SET_TIME_DIALOG_H_
7 7
8 #include "base/basictypes.h" 8 #include <string>
9
9 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/values.h"
10 #include "ui/gfx/native_widget_types.h" 12 #include "ui/gfx/native_widget_types.h"
11 #include "ui/web_dialogs/web_dialog_delegate.h" 13 #include "ui/web_dialogs/web_dialog_delegate.h"
12 14
13 namespace chromeos { 15 namespace chromeos {
14 16
15 // Dialog for manual selection of cellular network. 17 // Set Time dialog for setting the system time, date and time zone.
16 class ChooseMobileNetworkDialog : public ui::WebDialogDelegate { 18 class SetTimeDialog : public ui::WebDialogDelegate {
17 public: 19 public:
18 // Shows the dialog box. 20 SetTimeDialog();
21 virtual ~SetTimeDialog();
22
19 static void ShowDialog(gfx::NativeWindow owning_window); 23 static void ShowDialog(gfx::NativeWindow owning_window);
20 24
21 private: 25 protected:
Daniel Erat 2014/04/23 16:33:22 do all of these really need to be protected rather
michaelpg 2014/04/24 01:32:23 No.
22 ChooseMobileNetworkDialog(); 26 // ui::WebDialogDelegate:
23
24 // Overridden from ui::WebDialogDelegate:
25 virtual ui::ModalType GetDialogModalType() const OVERRIDE; 27 virtual ui::ModalType GetDialogModalType() const OVERRIDE;
26 virtual base::string16 GetDialogTitle() const OVERRIDE; 28 virtual base::string16 GetDialogTitle() const OVERRIDE;
27 virtual GURL GetDialogContentURL() const OVERRIDE; 29 virtual GURL GetDialogContentURL() const OVERRIDE;
28 virtual void GetWebUIMessageHandlers( 30 virtual void GetWebUIMessageHandlers(
29 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE; 31 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE;
30 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; 32 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE;
31 virtual std::string GetDialogArgs() const OVERRIDE; 33 virtual std::string GetDialogArgs() const OVERRIDE;
32 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; 34 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE;
33 virtual void OnCloseContents( 35 virtual void OnCloseContents(
34 content::WebContents* source, bool* out_close_dialog) OVERRIDE; 36 content::WebContents* source, bool* out_close_dialog) OVERRIDE;
35 virtual bool ShouldShowDialogTitle() const OVERRIDE; 37 virtual bool ShouldShowDialogTitle() const OVERRIDE;
36 virtual bool HandleContextMenu( 38 virtual bool HandleContextMenu(
37 const content::ContextMenuParams& params) OVERRIDE; 39 const content::ContextMenuParams& params) OVERRIDE;
38 40
39 DISALLOW_COPY_AND_ASSIGN(ChooseMobileNetworkDialog); 41 private:
42 DISALLOW_COPY_AND_ASSIGN(SetTimeDialog);
40 }; 43 };
41 44
42 } // namespace chromeos 45 } // namespace chromeos
43 46
44 #endif // CHROME_BROWSER_CHROMEOS_UI_CHOOSE_MOBILE_NETWORK_DIALOG_H_ 47 #endif // CHROME_BROWSER_CHROMEOS_SET_TIME_DIALOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698