| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_LOGIN_LOGIN_HTML_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_HTML_DIALOG_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_HTML_DIALOG_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_HTML_DIALOG_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 // HtmlDialogUIDelegate implementation. | 50 // HtmlDialogUIDelegate implementation. |
| 51 virtual bool IsDialogModal() const { return true; } | 51 virtual bool IsDialogModal() const { return true; } |
| 52 virtual std::wstring GetDialogTitle() const { return title_; } | 52 virtual std::wstring GetDialogTitle() const { return title_; } |
| 53 virtual GURL GetDialogContentURL() const { return url_; } | 53 virtual GURL GetDialogContentURL() const { return url_; } |
| 54 virtual void GetDOMMessageHandlers( | 54 virtual void GetDOMMessageHandlers( |
| 55 std::vector<DOMMessageHandler*>* handlers) const {} | 55 std::vector<DOMMessageHandler*>* handlers) const {} |
| 56 virtual void GetDialogSize(gfx::Size* size) const; | 56 virtual void GetDialogSize(gfx::Size* size) const; |
| 57 virtual std::string GetDialogArgs() const { return std::string(); } | 57 virtual std::string GetDialogArgs() const { return std::string(); } |
| 58 virtual void OnDialogClosed(const std::string& json_retval); | 58 virtual void OnDialogClosed(const std::string& json_retval); |
| 59 virtual void OnCloseContents(TabContents* source, bool* out_close_dialog); | 59 virtual void OnCloseContents(TabContents* source, bool* out_close_dialog); |
| 60 virtual bool ShouldShowDialogTitle() const { return true; } |
| 60 | 61 |
| 61 private: | 62 private: |
| 62 // Notifications receiver. | 63 // Notifications receiver. |
| 63 Delegate* delegate_; | 64 Delegate* delegate_; |
| 64 | 65 |
| 65 gfx::NativeWindow parent_window_; | 66 gfx::NativeWindow parent_window_; |
| 66 std::wstring title_; | 67 std::wstring title_; |
| 67 GURL url_; | 68 GURL url_; |
| 68 Style style_; | 69 Style style_; |
| 69 | 70 |
| 70 // Dialog display size. | 71 // Dialog display size. |
| 71 int width_; | 72 int width_; |
| 72 int height_; | 73 int height_; |
| 73 | 74 |
| 74 DISALLOW_COPY_AND_ASSIGN(LoginHtmlDialog); | 75 DISALLOW_COPY_AND_ASSIGN(LoginHtmlDialog); |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 } // namespace chromeos | 78 } // namespace chromeos |
| 78 | 79 |
| 79 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_HTML_DIALOG_H_ | 80 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_HTML_DIALOG_H_ |
| OLD | NEW |