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_UI_CHOOSE_MOBILE_NETWORK_DIALOG_H_
6 #define CHROME_BROWSER_CHROMEOS_UI_CHOOSE_MOBILE_NETWORK_DIALOG_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "ui/gfx/native_widget_types.h"
11 #include "ui/web_dialogs/web_dialog_delegate.h"
15 // Dialog for manual selection of cellular network.
16 class ChooseMobileNetworkDialog
: public ui::WebDialogDelegate
{
18 // Shows the dialog box.
19 static void ShowDialog(gfx::NativeWindow owning_window
);
22 ChooseMobileNetworkDialog();
24 // Overridden from ui::WebDialogDelegate:
25 ui::ModalType
GetDialogModalType() const override
;
26 base::string16
GetDialogTitle() const override
;
27 GURL
GetDialogContentURL() const override
;
28 void GetWebUIMessageHandlers(
29 std::vector
<content::WebUIMessageHandler
*>* handlers
) const override
;
30 void GetDialogSize(gfx::Size
* size
) const override
;
31 std::string
GetDialogArgs() const override
;
32 void OnDialogClosed(const std::string
& json_retval
) override
;
33 void OnCloseContents(content::WebContents
* source
,
34 bool* out_close_dialog
) override
;
35 bool ShouldShowDialogTitle() const override
;
36 bool HandleContextMenu(const content::ContextMenuParams
& params
) override
;
38 DISALLOW_COPY_AND_ASSIGN(ChooseMobileNetworkDialog
);
41 } // namespace chromeos
43 #endif // CHROME_BROWSER_CHROMEOS_UI_CHOOSE_MOBILE_NETWORK_DIALOG_H_