• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2011 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.
4 
5 #ifndef CHROME_BROWSER_CHROMEOS_CHOOSE_MOBILE_NETWORK_DIALOG_H_
6 #define CHROME_BROWSER_CHROMEOS_CHOOSE_MOBILE_NETWORK_DIALOG_H_
7 
8 #include "chrome/browser/ui/webui/html_dialog_ui.h"
9 #include "ui/gfx/native_widget_types.h"
10 
11 namespace chromeos {
12 
13 // Dialog for manual selection of cellular network.
14 class ChooseMobileNetworkDialog : private HtmlDialogUIDelegate {
15  public:
16   // Shows the dialog box.
17   static void ShowDialog(gfx::NativeWindow owning_window);
18 
19  private:
20   ChooseMobileNetworkDialog();
21 
22   // Overridden from HtmlDialogUI::Delegate:
23   virtual bool IsDialogModal() const;
24   virtual std::wstring GetDialogTitle() const;
25   virtual GURL GetDialogContentURL() const;
26   virtual void GetWebUIMessageHandlers(
27       std::vector<WebUIMessageHandler*>* handlers) const;
28   virtual void GetDialogSize(gfx::Size* size) const;
29   virtual std::string GetDialogArgs() const;
30   virtual void OnDialogClosed(const std::string& json_retval);
31   virtual void OnCloseContents(TabContents* source, bool* out_close_dialog);
32   virtual bool ShouldShowDialogTitle() const;
33 
34   DISALLOW_COPY_AND_ASSIGN(ChooseMobileNetworkDialog);
35 };
36 
37 }  // namespace chromeos
38 
39 #endif  // CHROME_BROWSER_CHROMEOS_CHOOSE_MOBILE_NETWORK_DIALOG_H_
40