| 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_VIEWS_HTML_DIALOG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H_ |
| 6 #define CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/gfx/size.h" | 10 #include "base/gfx/size.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 virtual bool IsModal() const; | 47 virtual bool IsModal() const; |
| 48 virtual std::wstring GetWindowTitle() const; | 48 virtual std::wstring GetWindowTitle() const; |
| 49 virtual void WindowClosing(); | 49 virtual void WindowClosing(); |
| 50 virtual views::View* GetContentsView(); | 50 virtual views::View* GetContentsView(); |
| 51 virtual views::View* GetInitiallyFocusedView(); | 51 virtual views::View* GetInitiallyFocusedView(); |
| 52 | 52 |
| 53 // Overridden from HtmlDialogUI::Delegate: | 53 // Overridden from HtmlDialogUI::Delegate: |
| 54 virtual bool IsDialogModal() const; | 54 virtual bool IsDialogModal() const; |
| 55 virtual std::wstring GetDialogTitle() const; | 55 virtual std::wstring GetDialogTitle() const; |
| 56 virtual GURL GetDialogContentURL() const; | 56 virtual GURL GetDialogContentURL() const; |
| 57 virtual void GetDOMMessageHandlers( |
| 58 std::vector<DOMMessageHandler*>* handlers) const; |
| 57 virtual void GetDialogSize(gfx::Size* size) const; | 59 virtual void GetDialogSize(gfx::Size* size) const; |
| 58 virtual std::string GetDialogArgs() const; | 60 virtual std::string GetDialogArgs() const; |
| 59 virtual void OnDialogClosed(const std::string& json_retval); | 61 virtual void OnDialogClosed(const std::string& json_retval); |
| 60 | 62 |
| 61 // Overridden from TabContentsDelegate: | 63 // Overridden from TabContentsDelegate: |
| 62 virtual void OpenURLFromTab(TabContents* source, | 64 virtual void OpenURLFromTab(TabContents* source, |
| 63 const GURL& url, | 65 const GURL& url, |
| 64 const GURL& referrer, | 66 const GURL& referrer, |
| 65 WindowOpenDisposition disposition, | 67 WindowOpenDisposition disposition, |
| 66 PageTransition::Type transition); | 68 PageTransition::Type transition); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 92 // This view is a delegate to the HTML content since it needs to get notified | 94 // This view is a delegate to the HTML content since it needs to get notified |
| 93 // about when the dialog is closing. For all other actions (besides dialog | 95 // about when the dialog is closing. For all other actions (besides dialog |
| 94 // closing) we delegate to the creator of this view, which we keep track of | 96 // closing) we delegate to the creator of this view, which we keep track of |
| 95 // using this variable. | 97 // using this variable. |
| 96 HtmlDialogUIDelegate* delegate_; | 98 HtmlDialogUIDelegate* delegate_; |
| 97 | 99 |
| 98 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView); | 100 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView); |
| 99 }; | 101 }; |
| 100 | 102 |
| 101 #endif // CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H_ | 103 #endif // CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H_ |
| OLD | NEW |