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 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
335 virtual void EnumerateDirectory(WebContents* web_contents, | 335 virtual void EnumerateDirectory(WebContents* web_contents, |
336 int request_id, | 336 int request_id, |
337 const base::FilePath& path) {} | 337 const base::FilePath& path) {} |
338 | 338 |
339 // Called when the renderer puts a tab into or out of fullscreen mode. | 339 // Called when the renderer puts a tab into or out of fullscreen mode. |
340 virtual void ToggleFullscreenModeForTab(WebContents* web_contents, | 340 virtual void ToggleFullscreenModeForTab(WebContents* web_contents, |
341 bool enter_fullscreen) {} | 341 bool enter_fullscreen) {} |
342 virtual bool IsFullscreenForTabOrPending( | 342 virtual bool IsFullscreenForTabOrPending( |
343 const WebContents* web_contents) const; | 343 const WebContents* web_contents) const; |
344 | 344 |
345 // Called when the renderer requests the top controls to be hidden or | |
346 // shown. | |
347 virtual void RequestShowTopControls(WebContents* web_contents, bool show); | |
Ted C
2013/03/25 16:57:35
looks like all void functions have their empty def
| |
348 | |
345 // Called when a Javascript out of memory notification is received. | 349 // Called when a Javascript out of memory notification is received. |
346 virtual void JSOutOfMemory(WebContents* web_contents) {} | 350 virtual void JSOutOfMemory(WebContents* web_contents) {} |
347 | 351 |
348 // Register a new handler for URL requests with the given scheme. | 352 // Register a new handler for URL requests with the given scheme. |
349 // |user_gesture| is true if the registration is made in the context of a user | 353 // |user_gesture| is true if the registration is made in the context of a user |
350 // gesture. | 354 // gesture. |
351 virtual void RegisterProtocolHandler(WebContents* web_contents, | 355 virtual void RegisterProtocolHandler(WebContents* web_contents, |
352 const std::string& protocol, | 356 const std::string& protocol, |
353 const GURL& url, | 357 const GURL& url, |
354 const string16& title, | 358 const string16& title, |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
428 // Called when |this| is no longer the WebContentsDelegate for |source|. | 432 // Called when |this| is no longer the WebContentsDelegate for |source|. |
429 void Detach(WebContents* source); | 433 void Detach(WebContents* source); |
430 | 434 |
431 // The WebContents that this is currently a delegate for. | 435 // The WebContents that this is currently a delegate for. |
432 std::set<WebContents*> attached_contents_; | 436 std::set<WebContents*> attached_contents_; |
433 }; | 437 }; |
434 | 438 |
435 } // namespace content | 439 } // namespace content |
436 | 440 |
437 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 441 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
OLD | NEW |