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_SIM_DIALOG_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_SIM_DIALOG_DELEGATE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_SIM_DIALOG_DELEGATE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_SIM_DIALOG_DELEGATE_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 |
(...skipping 13 matching lines...) Expand all Loading... |
24 explicit SimDialogDelegate(SimDialogMode dialog_mode); | 24 explicit SimDialogDelegate(SimDialogMode dialog_mode); |
25 | 25 |
26 // Shows the SIM unlock dialog box with one of the specified modes. | 26 // Shows the SIM unlock dialog box with one of the specified modes. |
27 static void ShowDialog(gfx::NativeWindow owning_window, SimDialogMode mode); | 27 static void ShowDialog(gfx::NativeWindow owning_window, SimDialogMode mode); |
28 | 28 |
29 private: | 29 private: |
30 virtual ~SimDialogDelegate(); | 30 virtual ~SimDialogDelegate(); |
31 | 31 |
32 // Overridden from HtmlDialogUI::Delegate: | 32 // Overridden from HtmlDialogUI::Delegate: |
33 virtual bool IsDialogModal() const OVERRIDE; | 33 virtual bool IsDialogModal() const OVERRIDE; |
34 virtual std::wstring GetDialogTitle() const OVERRIDE; | 34 virtual string16 GetDialogTitle() const OVERRIDE; |
35 virtual GURL GetDialogContentURL() const OVERRIDE; | 35 virtual GURL GetDialogContentURL() const OVERRIDE; |
36 virtual void GetWebUIMessageHandlers( | 36 virtual void GetWebUIMessageHandlers( |
37 std::vector<WebUIMessageHandler*>* handlers) const OVERRIDE; | 37 std::vector<WebUIMessageHandler*>* handlers) const OVERRIDE; |
38 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; | 38 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; |
39 virtual std::string GetDialogArgs() const OVERRIDE; | 39 virtual std::string GetDialogArgs() const OVERRIDE; |
40 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; | 40 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; |
41 virtual void OnCloseContents( | 41 virtual void OnCloseContents( |
42 TabContents* source, bool* out_close_dialog) OVERRIDE; | 42 TabContents* source, bool* out_close_dialog) OVERRIDE; |
43 virtual bool ShouldShowDialogTitle() const OVERRIDE; | 43 virtual bool ShouldShowDialogTitle() const OVERRIDE; |
44 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; | 44 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; |
45 | 45 |
46 SimDialogMode dialog_mode_; | 46 SimDialogMode dialog_mode_; |
47 | 47 |
48 DISALLOW_COPY_AND_ASSIGN(SimDialogDelegate); | 48 DISALLOW_COPY_AND_ASSIGN(SimDialogDelegate); |
49 }; | 49 }; |
50 | 50 |
51 } // namespace chromeos | 51 } // namespace chromeos |
52 | 52 |
53 #endif // CHROME_BROWSER_CHROMEOS_SIM_DIALOG_DELEGATE_H_ | 53 #endif // CHROME_BROWSER_CHROMEOS_SIM_DIALOG_DELEGATE_H_ |
OLD | NEW |