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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
291 // Invoked when navigating to a pending entry. When invoked the | 291 // Invoked when navigating to a pending entry. When invoked the |
292 // NavigationController has configured its pending entry, but it has not yet | 292 // NavigationController has configured its pending entry, but it has not yet |
293 // been committed. | 293 // been committed. |
294 virtual void DidNavigateToPendingEntry(TabContents* tab); | 294 virtual void DidNavigateToPendingEntry(TabContents* tab); |
295 | 295 |
296 // Returns a pointer to a service to create JavaScript dialogs. The default | 296 // Returns a pointer to a service to create JavaScript dialogs. The default |
297 // pointer returned is to a stub service that marks all dialogs as suppressed | 297 // pointer returned is to a stub service that marks all dialogs as suppressed |
298 // and displays nothing. | 298 // and displays nothing. |
299 virtual content::JavaScriptDialogCreator* GetJavaScriptDialogCreator(); | 299 virtual content::JavaScriptDialogCreator* GetJavaScriptDialogCreator(); |
300 | 300 |
301 // Called when the renderer puts a tab into or out of fullscreen mode. | |
302 virtual void ToggleFullscreenModeForTab(TabContents* tab, | |
303 bool enter_fullscreen); | |
brettw
2011/08/24 00:28:31
nit: align this to the TabContents param since it
koz (OOO until 15th September)
2011/08/24 00:36:08
Done.
| |
304 | |
301 protected: | 305 protected: |
302 virtual ~TabContentsDelegate(); | 306 virtual ~TabContentsDelegate(); |
303 | 307 |
304 private: | 308 private: |
305 friend class TabContents; | 309 friend class TabContents; |
306 | 310 |
307 // Called when |this| becomes the TabContentsDelegate for |source|. | 311 // Called when |this| becomes the TabContentsDelegate for |source|. |
308 void Attach(TabContents* source); | 312 void Attach(TabContents* source); |
309 | 313 |
310 // Called when |this| is no longer the TabContentsDelegate for |source|. | 314 // Called when |this| is no longer the TabContentsDelegate for |source|. |
311 void Detach(TabContents* source); | 315 void Detach(TabContents* source); |
312 | 316 |
313 // The TabContents that this is currently a delegate for. | 317 // The TabContents that this is currently a delegate for. |
314 std::set<TabContents*> attached_contents_; | 318 std::set<TabContents*> attached_contents_; |
315 }; | 319 }; |
316 | 320 |
317 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 321 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
OLD | NEW |