| 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" |
| 11 #include "chrome/browser/tab_contents/tab_contents_delegate.h" | 11 #include "chrome/browser/tab_contents/tab_contents_delegate.h" |
| 12 #include "chrome/browser/views/dom_view.h" | 12 #include "chrome/browser/views/dom_view.h" |
| 13 | 13 |
| 14 class Browser; | 14 class Browser; |
| 15 namespace views { | 15 namespace views { |
| 16 class Window; | 16 class Window; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 // Overridden from views::View: | 41 // Overridden from views::View: |
| 42 virtual gfx::Size GetPreferredSize(); | 42 virtual gfx::Size GetPreferredSize(); |
| 43 | 43 |
| 44 // Overridden from views::WindowDelegate: | 44 // Overridden from views::WindowDelegate: |
| 45 virtual bool CanResize() const; | 45 virtual bool CanResize() const; |
| 46 virtual bool IsModal() const; | 46 virtual bool IsModal() const; |
| 47 virtual std::wstring GetWindowTitle() const; | 47 virtual std::wstring GetWindowTitle() const; |
| 48 virtual void WindowClosing(); | 48 virtual void WindowClosing(); |
| 49 virtual views::View* GetContentsView(); | 49 virtual views::View* GetContentsView(); |
| 50 virtual views::View* GetInitiallyFocusedView(); |
| 50 | 51 |
| 51 // Overridden from HtmlDialogContentsDelegate: | 52 // Overridden from HtmlDialogContentsDelegate: |
| 52 virtual GURL GetDialogContentURL() const; | 53 virtual GURL GetDialogContentURL() const; |
| 53 virtual void GetDialogSize(CSize* size) const; | 54 virtual void GetDialogSize(CSize* size) const; |
| 54 virtual std::string GetDialogArgs() const; | 55 virtual std::string GetDialogArgs() const; |
| 55 virtual void OnDialogClosed(const std::string& json_retval); | 56 virtual void OnDialogClosed(const std::string& json_retval); |
| 56 | 57 |
| 57 // Overridden from TabContentsDelegate: | 58 // Overridden from TabContentsDelegate: |
| 58 virtual void OpenURLFromTab(TabContents* source, | 59 virtual void OpenURLFromTab(TabContents* source, |
| 59 const GURL& url, | 60 const GURL& url, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 84 Browser* parent_browser_; | 85 Browser* parent_browser_; |
| 85 | 86 |
| 86 Profile* profile_; | 87 Profile* profile_; |
| 87 | 88 |
| 88 // This view is a delegate to the HTML content since it needs to get notified | 89 // This view is a delegate to the HTML content since it needs to get notified |
| 89 // about when the dialog is closing. For all other actions (besides dialog | 90 // about when the dialog is closing. For all other actions (besides dialog |
| 90 // closing) we delegate to the creator of this view, which we keep track of | 91 // closing) we delegate to the creator of this view, which we keep track of |
| 91 // using this variable. | 92 // using this variable. |
| 92 HtmlDialogContentsDelegate* delegate_; | 93 HtmlDialogContentsDelegate* delegate_; |
| 93 | 94 |
| 94 DISALLOW_EVIL_CONSTRUCTORS(HtmlDialogView); | 95 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView); |
| 95 }; | 96 }; |
| 96 | 97 |
| 97 #endif // CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H__ | 98 #endif // CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H_ |
| 98 | 99 |
| OLD | NEW |