OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_VIEWS_HTML_DIALOG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 bool* out_close_dialog) OVERRIDE; | 81 bool* out_close_dialog) OVERRIDE; |
82 virtual bool ShouldShowDialogTitle() const OVERRIDE; | 82 virtual bool ShouldShowDialogTitle() const OVERRIDE; |
83 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; | 83 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; |
84 | 84 |
85 // Overridden from content::WebContentsDelegate: | 85 // Overridden from content::WebContentsDelegate: |
86 virtual void MoveContents(content::WebContents* source, | 86 virtual void MoveContents(content::WebContents* source, |
87 const gfx::Rect& pos) OVERRIDE; | 87 const gfx::Rect& pos) OVERRIDE; |
88 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) | 88 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) |
89 OVERRIDE; | 89 OVERRIDE; |
90 virtual void CloseContents(content::WebContents* source) OVERRIDE; | 90 virtual void CloseContents(content::WebContents* source) OVERRIDE; |
| 91 virtual content::WebContents* OpenURLFromTab( |
| 92 content::WebContents* source, |
| 93 const content::OpenURLParams& params) OVERRIDE; |
| 94 virtual void AddNewContents(content::WebContents* source, |
| 95 content::WebContents* new_contents, |
| 96 WindowOpenDisposition disposition, |
| 97 const gfx::Rect& initial_pos, |
| 98 bool user_gesture) OVERRIDE; |
91 | 99 |
92 protected: | 100 protected: |
93 // Register accelerators for this dialog. | 101 // Register accelerators for this dialog. |
94 virtual void RegisterDialogAccelerators(); | 102 virtual void RegisterDialogAccelerators(); |
95 | 103 |
96 // TabFirstRenderWatcher::Delegate implementation. | 104 // TabFirstRenderWatcher::Delegate implementation. |
97 virtual void OnRenderHostCreated(RenderViewHost* host) OVERRIDE; | 105 virtual void OnRenderHostCreated(RenderViewHost* host) OVERRIDE; |
98 virtual void OnTabMainFrameLoaded() OVERRIDE; | 106 virtual void OnTabMainFrameLoaded() OVERRIDE; |
99 virtual void OnTabMainFrameFirstRender() OVERRIDE; | 107 virtual void OnTabMainFrameFirstRender() OVERRIDE; |
100 | 108 |
(...skipping 14 matching lines...) Expand all Loading... |
115 // using this variable. | 123 // using this variable. |
116 HtmlDialogUIDelegate* delegate_; | 124 HtmlDialogUIDelegate* delegate_; |
117 | 125 |
118 // Controls lifetime of dialog. | 126 // Controls lifetime of dialog. |
119 scoped_ptr<HtmlDialogController> dialog_controller_; | 127 scoped_ptr<HtmlDialogController> dialog_controller_; |
120 | 128 |
121 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView); | 129 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView); |
122 }; | 130 }; |
123 | 131 |
124 #endif // CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_ | 132 #endif // CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_ |
OLD | NEW |