| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_CHOOSE_MOBILE_NETWORK_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CHOOSE_MOBILE_NETWORK_DIALOG_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_CHOOSE_MOBILE_NETWORK_DIALOG_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CHOOSE_MOBILE_NETWORK_DIALOG_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/ui/webui/html_dialog_ui.h" | 8 #include "chrome/browser/ui/webui/html_dialog_ui.h" |
| 9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
| 10 | 10 |
| 11 namespace chromeos { | 11 namespace chromeos { |
| 12 | 12 |
| 13 // Dialog for manual selection of cellular network. | 13 // Dialog for manual selection of cellular network. |
| 14 class ChooseMobileNetworkDialog : private HtmlDialogUIDelegate { | 14 class ChooseMobileNetworkDialog : private HtmlDialogUIDelegate { |
| 15 public: | 15 public: |
| 16 // Shows the dialog box. | 16 // Shows the dialog box. |
| 17 static void ShowDialog(gfx::NativeWindow owning_window); | 17 static void ShowDialog(gfx::NativeWindow owning_window); |
| 18 | 18 |
| 19 private: | 19 private: |
| 20 ChooseMobileNetworkDialog(); | 20 ChooseMobileNetworkDialog(); |
| 21 | 21 |
| 22 // Overridden from HtmlDialogUI::Delegate: | 22 // Overridden from HtmlDialogUI::Delegate: |
| 23 virtual bool IsDialogModal() const; | 23 virtual bool IsDialogModal() const OVERRIDE; |
| 24 virtual std::wstring GetDialogTitle() const; | 24 virtual std::wstring GetDialogTitle() const OVERRIDE; |
| 25 virtual GURL GetDialogContentURL() const; | 25 virtual GURL GetDialogContentURL() const OVERRIDE; |
| 26 virtual void GetWebUIMessageHandlers( | 26 virtual void GetWebUIMessageHandlers( |
| 27 std::vector<WebUIMessageHandler*>* handlers) const; | 27 std::vector<WebUIMessageHandler*>* handlers) const OVERRIDE; |
| 28 virtual void GetDialogSize(gfx::Size* size) const; | 28 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; |
| 29 virtual std::string GetDialogArgs() const; | 29 virtual std::string GetDialogArgs() const OVERRIDE; |
| 30 virtual void OnDialogClosed(const std::string& json_retval); | 30 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; |
| 31 virtual void OnCloseContents(TabContents* source, bool* out_close_dialog); | 31 virtual void OnCloseContents( |
| 32 virtual bool ShouldShowDialogTitle() const; | 32 TabContents* source, bool* out_close_dialog) OVERRIDE; |
| 33 virtual bool ShouldShowDialogTitle() const OVERRIDE; |
| 34 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; |
| 33 | 35 |
| 34 DISALLOW_COPY_AND_ASSIGN(ChooseMobileNetworkDialog); | 36 DISALLOW_COPY_AND_ASSIGN(ChooseMobileNetworkDialog); |
| 35 }; | 37 }; |
| 36 | 38 |
| 37 } // namespace chromeos | 39 } // namespace chromeos |
| 38 | 40 |
| 39 #endif // CHROME_BROWSER_CHROMEOS_CHOOSE_MOBILE_NETWORK_DIALOG_H_ | 41 #endif // CHROME_BROWSER_CHROMEOS_CHOOSE_MOBILE_NETWORK_DIALOG_H_ |
| OLD | NEW |