| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "chrome/browser/dom_ui/html_dialog_ui.h" | 11 #include "chrome/browser/dom_ui/html_dialog_ui.h" |
| 12 #include "chrome/common/notification_registrar.h" | 12 #include "chrome/common/notification_registrar.h" |
| 13 #include "gfx/size.h" | 13 |
| 14 #include "ipc/ipc_message.h" | 14 namespace gfx { |
| 15 class Size; |
| 16 } |
| 17 |
| 18 namespace IPC { |
| 19 class Message; |
| 20 } |
| 15 | 21 |
| 16 // This class can only be used on the UI thread. | 22 // This class can only be used on the UI thread. |
| 17 class ModalHtmlDialogDelegate | 23 class ModalHtmlDialogDelegate |
| 18 : public HtmlDialogUIDelegate, | 24 : public HtmlDialogUIDelegate, |
| 19 public NotificationObserver { | 25 public NotificationObserver { |
| 20 public: | 26 public: |
| 21 ModalHtmlDialogDelegate(const GURL& url, | 27 ModalHtmlDialogDelegate(const GURL& url, |
| 22 int width, int height, | 28 int width, int height, |
| 23 const std::string& json_arguments, | 29 const std::string& json_arguments, |
| 24 IPC::Message* sync_result, | 30 IPC::Message* sync_result, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 51 HtmlDialogUI::HtmlDialogParams params_; | 57 HtmlDialogUI::HtmlDialogParams params_; |
| 52 | 58 |
| 53 // Once we get our reply in OnModalDialogResponse we'll need to respond to the | 59 // Once we get our reply in OnModalDialogResponse we'll need to respond to the |
| 54 // plugin using this |sync_result| pointer so we store it between calls. | 60 // plugin using this |sync_result| pointer so we store it between calls. |
| 55 IPC::Message* sync_response_; | 61 IPC::Message* sync_response_; |
| 56 | 62 |
| 57 DISALLOW_COPY_AND_ASSIGN(ModalHtmlDialogDelegate); | 63 DISALLOW_COPY_AND_ASSIGN(ModalHtmlDialogDelegate); |
| 58 }; | 64 }; |
| 59 | 65 |
| 60 #endif // CHROME_BROWSER_MODAL_HTML_DIALOG_DELEGATE_H_ | 66 #endif // CHROME_BROWSER_MODAL_HTML_DIALOG_DELEGATE_H_ |
| OLD | NEW |