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_ |