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 "chrome/browser/dom_ui/html_dialog_contents.h" | 11 #include "chrome/browser/dom_ui/html_dialog_contents.h" |
11 #include "chrome/browser/tab_contents/tab_contents_delegate.h" | 12 #include "chrome/browser/tab_contents/tab_contents_delegate.h" |
12 #include "chrome/browser/views/dom_view.h" | 13 #include "chrome/browser/views/dom_view.h" |
13 #include "chrome/views/window_delegate.h" | 14 #include "chrome/views/window_delegate.h" |
14 | 15 |
15 class Browser; | 16 class Browser; |
16 namespace views { | 17 namespace views { |
17 class Window; | 18 class Window; |
18 } | 19 } |
19 | 20 |
(...skipping 28 matching lines...) Expand all Loading... |
48 virtual bool IsModal() const; | 49 virtual bool IsModal() const; |
49 virtual std::wstring GetWindowTitle() const; | 50 virtual std::wstring GetWindowTitle() const; |
50 virtual void WindowClosing(); | 51 virtual void WindowClosing(); |
51 virtual views::View* GetContentsView(); | 52 virtual views::View* GetContentsView(); |
52 virtual views::View* GetInitiallyFocusedView(); | 53 virtual views::View* GetInitiallyFocusedView(); |
53 | 54 |
54 // Overridden from HtmlDialogContentsDelegate: | 55 // Overridden from HtmlDialogContentsDelegate: |
55 virtual bool IsDialogModal() const; | 56 virtual bool IsDialogModal() const; |
56 virtual std::wstring GetDialogTitle() const; | 57 virtual std::wstring GetDialogTitle() const; |
57 virtual GURL GetDialogContentURL() const; | 58 virtual GURL GetDialogContentURL() const; |
58 virtual void GetDialogSize(CSize* size) const; | 59 virtual void GetDialogSize(gfx::Size* size) const; |
59 virtual std::string GetDialogArgs() const; | 60 virtual std::string GetDialogArgs() const; |
60 virtual void OnDialogClosed(const std::string& json_retval); | 61 virtual void OnDialogClosed(const std::string& json_retval); |
61 | 62 |
62 // Overridden from TabContentsDelegate: | 63 // Overridden from TabContentsDelegate: |
63 virtual void OpenURLFromTab(TabContents* source, | 64 virtual void OpenURLFromTab(TabContents* source, |
64 const GURL& url, | 65 const GURL& url, |
65 const GURL& referrer, | 66 const GURL& referrer, |
66 WindowOpenDisposition disposition, | 67 WindowOpenDisposition disposition, |
67 PageTransition::Type transition); | 68 PageTransition::Type transition); |
68 virtual void NavigationStateChanged(const TabContents* source, | 69 virtual void NavigationStateChanged(const TabContents* source, |
(...skipping 25 matching lines...) Expand all Loading... |
94 // 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 |
95 // 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 |
96 // using this variable. | 97 // using this variable. |
97 HtmlDialogContentsDelegate* delegate_; | 98 HtmlDialogContentsDelegate* delegate_; |
98 | 99 |
99 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView); | 100 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView); |
100 }; | 101 }; |
101 | 102 |
102 #endif // CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H_ | 103 #endif // CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H_ |
103 | 104 |
OLD | NEW |