cryptohome: Merge FakeCryptohomeClient and CryptohomeClinentStubImpl
[chromium-blink-merge.git] / chrome / browser / chromeos / choose_mobile_network_dialog.h
blob84d4208d40c6557b6ea09fbd8cb53107ade703df
1 // Copyright (c) 2012 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_CHOOSE_MOBILE_NETWORK_DIALOG_H_
6 #define CHROME_BROWSER_CHROMEOS_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"
13 namespace chromeos {
15 // Dialog for manual selection of cellular network.
16 class ChooseMobileNetworkDialog : public ui::WebDialogDelegate {
17 public:
18 // Shows the dialog box.
19 static void ShowDialog(gfx::NativeWindow owning_window);
21 private:
22 ChooseMobileNetworkDialog();
24 // Overridden from ui::WebDialogDelegate:
25 virtual ui::ModalType GetDialogModalType() const OVERRIDE;
26 virtual string16 GetDialogTitle() const OVERRIDE;
27 virtual GURL GetDialogContentURL() const OVERRIDE;
28 virtual void GetWebUIMessageHandlers(
29 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE;
30 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE;
31 virtual std::string GetDialogArgs() const OVERRIDE;
32 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE;
33 virtual void OnCloseContents(
34 content::WebContents* source, bool* out_close_dialog) OVERRIDE;
35 virtual bool ShouldShowDialogTitle() const OVERRIDE;
36 virtual bool HandleContextMenu(
37 const content::ContextMenuParams& params) OVERRIDE;
39 DISALLOW_COPY_AND_ASSIGN(ChooseMobileNetworkDialog);
42 } // namespace chromeos
44 #endif // CHROME_BROWSER_CHROMEOS_CHOOSE_MOBILE_NETWORK_DIALOG_H_