Chromium Code Reviews| 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 69% |
| copy from chrome/browser/chromeos/ui/choose_mobile_network_dialog.h |
| copy to chrome/browser/chromeos/set_time_dialog.h |
| index 99b4e4e6c6c0b39cd04695c4f9b070565369c304..8e84286724cb05904c2e85c224b7cf3b03e45f98 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. |
| - static void ShowDialog(gfx::NativeWindow owning_window); |
| + SetTimeDialog(); |
| + virtual ~SetTimeDialog(); |
| - private: |
| - ChooseMobileNetworkDialog(); |
| + static void ShowDialog(gfx::NativeWindow owning_window); |
| - // Overridden from ui::WebDialogDelegate: |
| + 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.
|
| + // ui::WebDialogDelegate: |
| virtual ui::ModalType GetDialogModalType() const OVERRIDE; |
| virtual base::string16 GetDialogTitle() const OVERRIDE; |
| virtual GURL GetDialogContentURL() const OVERRIDE; |
| @@ -36,9 +38,10 @@ class ChooseMobileNetworkDialog : public ui::WebDialogDelegate { |
| virtual bool HandleContextMenu( |
| const content::ContextMenuParams& params) OVERRIDE; |
| - DISALLOW_COPY_AND_ASSIGN(ChooseMobileNetworkDialog); |
| + private: |
| + 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_ |