| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_MODAL_HTML_DIALOG_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_MODAL_HTML_DIALOG_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_MODAL_HTML_DIALOG_DELEGATE_H_ | 6 #define CHROME_BROWSER_MODAL_HTML_DIALOG_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/gfx/size.h" | 10 #include "base/gfx/size.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 // Notification service callback. | 27 // Notification service callback. |
| 28 virtual void Observe(NotificationType type, | 28 virtual void Observe(NotificationType type, |
| 29 const NotificationSource& source, | 29 const NotificationSource& source, |
| 30 const NotificationDetails& details); | 30 const NotificationDetails& details); |
| 31 | 31 |
| 32 // HTMLDialogUIDelegate implementation: | 32 // HTMLDialogUIDelegate implementation: |
| 33 virtual bool IsDialogModal() const; | 33 virtual bool IsDialogModal() const; |
| 34 virtual std::wstring GetDialogTitle() const { return L"Gears"; } | 34 virtual std::wstring GetDialogTitle() const { return L"Gears"; } |
| 35 virtual GURL GetDialogContentURL() const; | 35 virtual GURL GetDialogContentURL() const; |
| 36 virtual void GetDOMMessageHandlers( |
| 37 std::vector<DOMMessageHandler*>* handlers) const { } |
| 36 virtual void GetDialogSize(gfx::Size* size) const; | 38 virtual void GetDialogSize(gfx::Size* size) const; |
| 37 virtual std::string GetDialogArgs() const; | 39 virtual std::string GetDialogArgs() const; |
| 38 virtual void OnDialogClosed(const std::string& json_retval); | 40 virtual void OnDialogClosed(const std::string& json_retval); |
| 39 | 41 |
| 40 private: | 42 private: |
| 41 NotificationRegistrar registrar_; | 43 NotificationRegistrar registrar_; |
| 42 | 44 |
| 43 // The TabContents that opened the dialog. | 45 // The TabContents that opened the dialog. |
| 44 TabContents* contents_; | 46 TabContents* contents_; |
| 45 | 47 |
| 46 // The parameters needed to display a modal HTML dialog. | 48 // The parameters needed to display a modal HTML dialog. |
| 47 HtmlDialogUI::HtmlDialogParams params_; | 49 HtmlDialogUI::HtmlDialogParams params_; |
| 48 | 50 |
| 49 // Once we get our reply in OnModalDialogResponse we'll need to respond to the | 51 // Once we get our reply in OnModalDialogResponse we'll need to respond to the |
| 50 // plugin using this |sync_result| pointer so we store it between calls. | 52 // plugin using this |sync_result| pointer so we store it between calls. |
| 51 IPC::Message* sync_response_; | 53 IPC::Message* sync_response_; |
| 52 | 54 |
| 53 DISALLOW_COPY_AND_ASSIGN(ModalHtmlDialogDelegate); | 55 DISALLOW_COPY_AND_ASSIGN(ModalHtmlDialogDelegate); |
| 54 }; | 56 }; |
| 55 | 57 |
| 56 #endif // CHROME_BROWSER_MODAL_HTML_DIALOG_DELEGATE_H_ | 58 #endif // CHROME_BROWSER_MODAL_HTML_DIALOG_DELEGATE_H_ |
| OLD | NEW |