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

Unified 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: rebase, single quotes in browsertest js 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/chromeos/set_time_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/set_time_dialog.h
diff --git a/chrome/browser/chromeos/ui/choose_mobile_network_dialog.h b/chrome/browser/chromeos/set_time_dialog.h
similarity index 63%
copy from chrome/browser/chromeos/ui/choose_mobile_network_dialog.h
copy to chrome/browser/chromeos/set_time_dialog.h
index 99b4e4e6c6c0b39cd04695c4f9b070565369c304..11cf4b632c7ecbd6d6370546f86705a30cb3a454 100644
--- a/chrome/browser/chromeos/ui/choose_mobile_network_dialog.h
+++ b/chrome/browser/chromeos/set_time_dialog.h
@@ -2,26 +2,28 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_CHROMEOS_UI_CHOOSE_MOBILE_NETWORK_DIALOG_H_
-#define CHROME_BROWSER_CHROMEOS_UI_CHOOSE_MOBILE_NETWORK_DIALOG_H_
+#ifndef CHROME_BROWSER_CHROMEOS_SET_TIME_DIALOG_H_
+#define CHROME_BROWSER_CHROMEOS_SET_TIME_DIALOG_H_
+
+#include <string>
-#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/values.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/web_dialogs/web_dialog_delegate.h"
namespace chromeos {
-// Dialog for manual selection of cellular network.
-class ChooseMobileNetworkDialog : public ui::WebDialogDelegate {
+// Set Time dialog for setting the system time, date and time zone.
+class SetTimeDialog : public ui::WebDialogDelegate {
public:
- // Shows the dialog box.
+ SetTimeDialog();
+ virtual ~SetTimeDialog();
+
static void ShowDialog(gfx::NativeWindow owning_window);
private:
- ChooseMobileNetworkDialog();
-
- // Overridden from ui::WebDialogDelegate:
+ // ui::WebDialogDelegate:
virtual ui::ModalType GetDialogModalType() const OVERRIDE;
virtual base::string16 GetDialogTitle() const OVERRIDE;
virtual GURL GetDialogContentURL() const OVERRIDE;
@@ -30,15 +32,15 @@ class ChooseMobileNetworkDialog : public ui::WebDialogDelegate {
virtual void GetDialogSize(gfx::Size* size) const OVERRIDE;
virtual std::string GetDialogArgs() const OVERRIDE;
virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE;
- virtual void OnCloseContents(
- content::WebContents* source, bool* out_close_dialog) OVERRIDE;
+ virtual void OnCloseContents(content::WebContents* source,
+ bool* out_close_dialog) OVERRIDE;
virtual bool ShouldShowDialogTitle() const OVERRIDE;
virtual bool HandleContextMenu(
const content::ContextMenuParams& params) OVERRIDE;
- DISALLOW_COPY_AND_ASSIGN(ChooseMobileNetworkDialog);
+ DISALLOW_COPY_AND_ASSIGN(SetTimeDialog);
};
} // namespace chromeos
-#endif // CHROME_BROWSER_CHROMEOS_UI_CHOOSE_MOBILE_NETWORK_DIALOG_H_
+#endif // CHROME_BROWSER_CHROMEOS_SET_TIME_DIALOG_H_
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/chromeos/set_time_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698