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 23 matching lines...) Expand all Loading... |
34 public views::WindowDelegate { | 34 public views::WindowDelegate { |
35 public: | 35 public: |
36 HtmlDialogView(Browser* parent_browser, HtmlDialogUIDelegate* delegate); | 36 HtmlDialogView(Browser* parent_browser, HtmlDialogUIDelegate* delegate); |
37 virtual ~HtmlDialogView(); | 37 virtual ~HtmlDialogView(); |
38 | 38 |
39 // Initializes the contents of the dialog (the DOMView and the callbacks). | 39 // Initializes the contents of the dialog (the DOMView and the callbacks). |
40 void InitDialog(); | 40 void InitDialog(); |
41 | 41 |
42 // Overridden from views::View: | 42 // Overridden from views::View: |
43 virtual gfx::Size GetPreferredSize(); | 43 virtual gfx::Size GetPreferredSize(); |
| 44 virtual bool AcceleratorPressed(const views::Accelerator& accelerator); |
44 | 45 |
45 // Overridden from views::WindowDelegate: | 46 // Overridden from views::WindowDelegate: |
46 virtual bool CanResize() const; | 47 virtual bool CanResize() const; |
47 virtual bool IsModal() const; | 48 virtual bool IsModal() const; |
48 virtual std::wstring GetWindowTitle() const; | 49 virtual std::wstring GetWindowTitle() const; |
49 virtual void WindowClosing(); | 50 virtual void WindowClosing(); |
50 virtual views::View* GetContentsView(); | 51 virtual views::View* GetContentsView(); |
51 virtual views::View* GetInitiallyFocusedView(); | 52 virtual views::View* GetInitiallyFocusedView(); |
52 | 53 |
53 // Overridden from HtmlDialogUI::Delegate: | 54 // Overridden from HtmlDialogUI::Delegate: |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 // This view is a delegate to the HTML content since it needs to get notified | 95 // This view is a delegate to the HTML content since it needs to get notified |
95 // about when the dialog is closing. For all other actions (besides dialog | 96 // about when the dialog is closing. For all other actions (besides dialog |
96 // closing) we delegate to the creator of this view, which we keep track of | 97 // closing) we delegate to the creator of this view, which we keep track of |
97 // using this variable. | 98 // using this variable. |
98 HtmlDialogUIDelegate* delegate_; | 99 HtmlDialogUIDelegate* delegate_; |
99 | 100 |
100 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView); | 101 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView); |
101 }; | 102 }; |
102 | 103 |
103 #endif // CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H_ | 104 #endif // CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H_ |
OLD | NEW |