| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 // Request to enumerate a directory. This is equivalent to running the file | 328 // Request to enumerate a directory. This is equivalent to running the file |
| 329 // chooser in directory-enumeration mode and having the user select the given | 329 // chooser in directory-enumeration mode and having the user select the given |
| 330 // directory. | 330 // directory. |
| 331 virtual void EnumerateDirectory(WebContents* tab, | 331 virtual void EnumerateDirectory(WebContents* tab, |
| 332 int request_id, | 332 int request_id, |
| 333 const FilePath& path) {} | 333 const FilePath& path) {} |
| 334 | 334 |
| 335 // Called when the renderer puts a tab into or out of fullscreen mode. | 335 // Called when the renderer puts a tab into or out of fullscreen mode. |
| 336 virtual void ToggleFullscreenModeForTab(WebContents* tab, | 336 virtual void ToggleFullscreenModeForTab(WebContents* tab, |
| 337 bool enter_fullscreen) {} | 337 bool enter_fullscreen) {} |
| 338 virtual bool IsFullscreenForTab(const WebContents* tab) const; | 338 virtual bool IsFullscreenForTabOrPending(const WebContents* tab) const; |
| 339 | 339 |
| 340 // Called when a Javascript out of memory notification is received. | 340 // Called when a Javascript out of memory notification is received. |
| 341 virtual void JSOutOfMemory(WebContents* tab) {} | 341 virtual void JSOutOfMemory(WebContents* tab) {} |
| 342 | 342 |
| 343 // Register a new handler for URL requests with the given scheme. | 343 // Register a new handler for URL requests with the given scheme. |
| 344 virtual void RegisterProtocolHandler(WebContents* tab, | 344 virtual void RegisterProtocolHandler(WebContents* tab, |
| 345 const std::string& protocol, | 345 const std::string& protocol, |
| 346 const GURL& url, | 346 const GURL& url, |
| 347 const string16& title) {} | 347 const string16& title) {} |
| 348 | 348 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 // Called when |this| is no longer the WebContentsDelegate for |source|. | 406 // Called when |this| is no longer the WebContentsDelegate for |source|. |
| 407 void Detach(WebContents* source); | 407 void Detach(WebContents* source); |
| 408 | 408 |
| 409 // The WebContents that this is currently a delegate for. | 409 // The WebContents that this is currently a delegate for. |
| 410 std::set<WebContents*> attached_contents_; | 410 std::set<WebContents*> attached_contents_; |
| 411 }; | 411 }; |
| 412 | 412 |
| 413 } // namespace content | 413 } // namespace content |
| 414 | 414 |
| 415 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 415 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |