| 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 20 matching lines...) Expand all Loading... |
| 31 public: | 31 public: |
| 32 HtmlDialogView(Browser* parent_browser, | 32 HtmlDialogView(Browser* parent_browser, |
| 33 Profile* profile, | 33 Profile* profile, |
| 34 HtmlDialogContentsDelegate* delegate); | 34 HtmlDialogContentsDelegate* delegate); |
| 35 virtual ~HtmlDialogView(); | 35 virtual ~HtmlDialogView(); |
| 36 | 36 |
| 37 // Initializes the contents of the dialog (the DOMView and the callbacks). | 37 // Initializes the contents of the dialog (the DOMView and the callbacks). |
| 38 void InitDialog(); | 38 void InitDialog(); |
| 39 | 39 |
| 40 // Overridden from ChromeViews::View: | 40 // Overridden from ChromeViews::View: |
| 41 virtual void GetPreferredSize(CSize *out); | 41 virtual gfx::Size GetPreferredSize(); |
| 42 | 42 |
| 43 // Overridden from ChromeViews::WindowDelegate: | 43 // Overridden from ChromeViews::WindowDelegate: |
| 44 virtual bool CanResize() const; | 44 virtual bool CanResize() const; |
| 45 virtual bool IsModal() const; | 45 virtual bool IsModal() const; |
| 46 virtual std::wstring GetWindowTitle() const; | 46 virtual std::wstring GetWindowTitle() const; |
| 47 virtual void WindowClosing(); | 47 virtual void WindowClosing(); |
| 48 virtual ChromeViews::View* GetContentsView(); | 48 virtual ChromeViews::View* GetContentsView(); |
| 49 | 49 |
| 50 // Overridden from HtmlDialogContentsDelegate: | 50 // Overridden from HtmlDialogContentsDelegate: |
| 51 virtual GURL GetDialogContentURL() const; | 51 virtual GURL GetDialogContentURL() const; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 // about when the dialog is closing. For all other actions (besides dialog | 87 // 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 | 88 // closing) we delegate to the creator of this view, which we keep track of |
| 89 // using this variable. | 89 // using this variable. |
| 90 HtmlDialogContentsDelegate* delegate_; | 90 HtmlDialogContentsDelegate* delegate_; |
| 91 | 91 |
| 92 DISALLOW_EVIL_CONSTRUCTORS(HtmlDialogView); | 92 DISALLOW_EVIL_CONSTRUCTORS(HtmlDialogView); |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 #endif // CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H__ | 95 #endif // CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H__ |
| 96 | 96 |
| OLD | NEW |