Chromium Code Reviews| 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 <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 282 // Invoked when navigating to a pending entry. When invoked the | 282 // Invoked when navigating to a pending entry. When invoked the |
| 283 // NavigationController has configured its pending entry, but it has not yet | 283 // NavigationController has configured its pending entry, but it has not yet |
| 284 // been committed. | 284 // been committed. |
| 285 virtual void DidNavigateToPendingEntry(TabContents* tab); | 285 virtual void DidNavigateToPendingEntry(TabContents* tab); |
| 286 | 286 |
| 287 // Returns a pointer to a service to create JavaScript dialogs. The default | 287 // Returns a pointer to a service to create JavaScript dialogs. The default |
| 288 // pointer returned is to a stub service that marks all dialogs as suppressed | 288 // pointer returned is to a stub service that marks all dialogs as suppressed |
| 289 // and displays nothing. | 289 // and displays nothing. |
| 290 virtual content::JavaScriptDialogCreator* GetJavaScriptDialogCreator(); | 290 virtual content::JavaScriptDialogCreator* GetJavaScriptDialogCreator(); |
| 291 | 291 |
| 292 // Puts the current tab into fullscreen mode. | |
| 293 virtual void EnterFullscreenModeForCurrentTab(); | |
| 294 | |
| 295 // Exit fullscreen mode. | |
|
Peter Kasting
2011/08/11 17:53:38
Nit: Exit -> Exits
koz (OOO until 15th September)
2011/08/15 05:50:27
Done.
| |
| 296 virtual void ExitFullscreenMode(); | |
| 297 | |
| 292 protected: | 298 protected: |
| 293 virtual ~TabContentsDelegate(); | 299 virtual ~TabContentsDelegate(); |
| 294 | 300 |
| 295 private: | 301 private: |
| 296 friend class TabContents; | 302 friend class TabContents; |
| 297 | 303 |
| 298 // Called when |this| becomes the TabContentsDelegate for |source|. | 304 // Called when |this| becomes the TabContentsDelegate for |source|. |
| 299 void Attach(TabContents* source); | 305 void Attach(TabContents* source); |
| 300 | 306 |
| 301 // Called when |this| is no longer the TabContentsDelegate for |source|. | 307 // Called when |this| is no longer the TabContentsDelegate for |source|. |
| 302 void Detach(TabContents* source); | 308 void Detach(TabContents* source); |
| 303 | 309 |
| 304 // The TabContents that this is currently a delegate for. | 310 // The TabContents that this is currently a delegate for. |
| 305 std::set<TabContents*> attached_contents_; | 311 std::set<TabContents*> attached_contents_; |
| 306 }; | 312 }; |
| 307 | 313 |
| 308 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 314 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |