| 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 | 312 |
| 313 // Request to enumerate a directory. This is equivalent to running the file | 313 // Request to enumerate a directory. This is equivalent to running the file |
| 314 // chooser in directory-enumeration mode and having the user select the given | 314 // chooser in directory-enumeration mode and having the user select the given |
| 315 // directory. | 315 // directory. |
| 316 virtual void EnumerateDirectory(TabContents* tab, int request_id, | 316 virtual void EnumerateDirectory(TabContents* tab, int request_id, |
| 317 const FilePath& path); | 317 const FilePath& path); |
| 318 | 318 |
| 319 // Called when the renderer puts a tab into or out of fullscreen mode. | 319 // Called when the renderer puts a tab into or out of fullscreen mode. |
| 320 virtual void ToggleFullscreenModeForTab(TabContents* tab, | 320 virtual void ToggleFullscreenModeForTab(TabContents* tab, |
| 321 bool enter_fullscreen); | 321 bool enter_fullscreen); |
| 322 virtual bool IsFullscreenForTab(const TabContents* tab) const; |
| 322 | 323 |
| 323 // Called when a Javascript out of memory notification is received. | 324 // Called when a Javascript out of memory notification is received. |
| 324 virtual void JSOutOfMemory(TabContents* tab); | 325 virtual void JSOutOfMemory(TabContents* tab); |
| 325 | 326 |
| 326 // Register a new handler for URL requests with the given scheme. | 327 // Register a new handler for URL requests with the given scheme. |
| 327 virtual void RegisterProtocolHandler(TabContents* tab, | 328 virtual void RegisterProtocolHandler(TabContents* tab, |
| 328 const std::string& protocol, | 329 const std::string& protocol, |
| 329 const GURL& url, | 330 const GURL& url, |
| 330 const string16& title); | 331 const string16& title); |
| 331 | 332 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 void Attach(TabContents* source); | 370 void Attach(TabContents* source); |
| 370 | 371 |
| 371 // Called when |this| is no longer the TabContentsDelegate for |source|. | 372 // Called when |this| is no longer the TabContentsDelegate for |source|. |
| 372 void Detach(TabContents* source); | 373 void Detach(TabContents* source); |
| 373 | 374 |
| 374 // The TabContents that this is currently a delegate for. | 375 // The TabContents that this is currently a delegate for. |
| 375 std::set<TabContents*> attached_contents_; | 376 std::set<TabContents*> attached_contents_; |
| 376 }; | 377 }; |
| 377 | 378 |
| 378 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 379 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |