| 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 "chrome/browser/dom_ui/html_dialog_contents.h" | 10 #include "chrome/browser/dom_ui/html_dialog_contents.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 // Overridden from HtmlDialogContentsDelegate: | 50 // Overridden from HtmlDialogContentsDelegate: |
| 51 virtual GURL GetDialogContentURL() const; | 51 virtual GURL GetDialogContentURL() const; |
| 52 virtual void GetDialogSize(CSize* size) const; | 52 virtual void GetDialogSize(CSize* size) const; |
| 53 virtual std::string GetDialogArgs() const; | 53 virtual std::string GetDialogArgs() const; |
| 54 virtual void OnDialogClosed(const std::string& json_retval); | 54 virtual void OnDialogClosed(const std::string& json_retval); |
| 55 | 55 |
| 56 // Overridden from TabContentsDelegate: | 56 // Overridden from TabContentsDelegate: |
| 57 virtual void OpenURLFromTab(TabContents* source, | 57 virtual void OpenURLFromTab(TabContents* source, |
| 58 const GURL& url, | 58 const GURL& url, |
| 59 const GURL& referrer, |
| 59 WindowOpenDisposition disposition, | 60 WindowOpenDisposition disposition, |
| 60 PageTransition::Type transition); | 61 PageTransition::Type transition); |
| 61 virtual void NavigationStateChanged(const TabContents* source, | 62 virtual void NavigationStateChanged(const TabContents* source, |
| 62 unsigned changed_flags); | 63 unsigned changed_flags); |
| 63 virtual void ReplaceContents(TabContents* source, | 64 virtual void ReplaceContents(TabContents* source, |
| 64 TabContents* new_contents); | 65 TabContents* new_contents); |
| 65 virtual void AddNewContents(TabContents* source, | 66 virtual void AddNewContents(TabContents* source, |
| 66 TabContents* new_contents, | 67 TabContents* new_contents, |
| 67 WindowOpenDisposition disposition, | 68 WindowOpenDisposition disposition, |
| 68 const gfx::Rect& initial_pos, | 69 const gfx::Rect& initial_pos, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 87 // about when the dialog is closing. For all other actions (besides dialog | 88 // about when the dialog is closing. For all other actions (besides dialog |
| 88 // closing) we delegate to the creator of this view, which we keep track of | 89 // closing) we delegate to the creator of this view, which we keep track of |
| 89 // using this variable. | 90 // using this variable. |
| 90 HtmlDialogContentsDelegate* delegate_; | 91 HtmlDialogContentsDelegate* delegate_; |
| 91 | 92 |
| 92 DISALLOW_EVIL_CONSTRUCTORS(HtmlDialogView); | 93 DISALLOW_EVIL_CONSTRUCTORS(HtmlDialogView); |
| 93 }; | 94 }; |
| 94 | 95 |
| 95 #endif // CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H__ | 96 #endif // CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H__ |
| 96 | 97 |
| OLD | NEW |