Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / chromeos / set_time_dialog.h
blob2862b8fb8bd429a457825821ccb422598b98d749
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.
5 #ifndef CHROME_BROWSER_CHROMEOS_SET_TIME_DIALOG_H_
6 #define CHROME_BROWSER_CHROMEOS_SET_TIME_DIALOG_H_
8 #include <string>
10 #include "base/compiler_specific.h"
11 #include "base/values.h"
12 #include "ui/gfx/native_widget_types.h"
13 #include "ui/web_dialogs/web_dialog_delegate.h"
15 namespace chromeos {
17 // Set Time dialog for setting the system time, date and time zone.
18 class SetTimeDialog : public ui::WebDialogDelegate {
19 public:
20 SetTimeDialog();
21 ~SetTimeDialog() override;
23 static void ShowDialog(gfx::NativeWindow owning_window);
25 private:
26 // ui::WebDialogDelegate:
27 ui::ModalType GetDialogModalType() const override;
28 base::string16 GetDialogTitle() const override;
29 GURL GetDialogContentURL() const override;
30 void GetWebUIMessageHandlers(
31 std::vector<content::WebUIMessageHandler*>* handlers) const override;
32 void GetDialogSize(gfx::Size* size) const override;
33 std::string GetDialogArgs() const override;
34 void OnDialogClosed(const std::string& json_retval) override;
35 void OnCloseContents(content::WebContents* source,
36 bool* out_close_dialog) override;
37 bool ShouldShowDialogTitle() const override;
38 bool HandleContextMenu(const content::ContextMenuParams& params) override;
40 DISALLOW_COPY_AND_ASSIGN(SetTimeDialog);
43 } // namespace chromeos
45 #endif // CHROME_BROWSER_CHROMEOS_SET_TIME_DIALOG_H_