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