OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "content/browser/tab_contents/navigation_entry.h" | 12 #include "content/browser/tab_contents/navigation_entry.h" |
13 #include "content/common/navigation_types.h" | 13 #include "content/common/navigation_types.h" |
14 #include "content/common/page_transition_types.h" | 14 #include "content/common/page_transition_types.h" |
15 #include "ui/gfx/native_widget_types.h" | 15 #include "ui/gfx/native_widget_types.h" |
16 #include "webkit/glue/window_open_disposition.h" | 16 #include "webkit/glue/window_open_disposition.h" |
17 | 17 |
| 18 namespace content { |
| 19 class JavaScriptDialogCreator; |
| 20 } |
| 21 |
18 namespace gfx { | 22 namespace gfx { |
19 class Point; | 23 class Point; |
20 class Rect; | 24 class Rect; |
21 class Size; | 25 class Size; |
22 } | 26 } |
23 | 27 |
24 namespace history { | 28 namespace history { |
25 class HistoryAddPageArgs; | 29 class HistoryAddPageArgs; |
26 } | 30 } |
27 | 31 |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 // See description above MainFrameCommitDetails for details. Default returns | 296 // See description above MainFrameCommitDetails for details. Default returns |
293 // NULL. Caller owns return value. | 297 // NULL. Caller owns return value. |
294 virtual MainFrameCommitDetails* CreateMainFrameCommitDetails( | 298 virtual MainFrameCommitDetails* CreateMainFrameCommitDetails( |
295 TabContents* tab); | 299 TabContents* tab); |
296 | 300 |
297 // See description above MainFrameCommitDetails for details. | 301 // See description above MainFrameCommitDetails for details. |
298 virtual void DidNavigateMainFramePostCommit( | 302 virtual void DidNavigateMainFramePostCommit( |
299 TabContents* tab, | 303 TabContents* tab, |
300 const MainFrameCommitDetails& details); | 304 const MainFrameCommitDetails& details); |
301 | 305 |
| 306 // Returns a pointer to a service to create JavaScript dialogs. The default |
| 307 // pointer returned is to a stub service that marks all dialogs as suppressed |
| 308 // and displays nothing. |
| 309 virtual content::JavaScriptDialogCreator* GetJavaScriptDialogCreator(); |
| 310 |
302 protected: | 311 protected: |
303 virtual ~TabContentsDelegate(); | 312 virtual ~TabContentsDelegate(); |
304 }; | 313 }; |
305 | 314 |
306 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 315 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
OLD | NEW |