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 // Called when the renderer puts a tab into or out of fullscreen mode. |
| 293 virtual void ToggleFullscreenModeForTab(TabContents* tab, |
| 294 bool enter_fullscreen); |
| 295 |
292 protected: | 296 protected: |
293 virtual ~TabContentsDelegate(); | 297 virtual ~TabContentsDelegate(); |
294 | 298 |
295 private: | 299 private: |
296 friend class TabContents; | 300 friend class TabContents; |
297 | 301 |
298 // Called when |this| becomes the TabContentsDelegate for |source|. | 302 // Called when |this| becomes the TabContentsDelegate for |source|. |
299 void Attach(TabContents* source); | 303 void Attach(TabContents* source); |
300 | 304 |
301 // Called when |this| is no longer the TabContentsDelegate for |source|. | 305 // Called when |this| is no longer the TabContentsDelegate for |source|. |
302 void Detach(TabContents* source); | 306 void Detach(TabContents* source); |
303 | 307 |
304 // The TabContents that this is currently a delegate for. | 308 // The TabContents that this is currently a delegate for. |
305 std::set<TabContents*> attached_contents_; | 309 std::set<TabContents*> attached_contents_; |
306 }; | 310 }; |
307 | 311 |
308 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 312 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
OLD | NEW |