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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
365 int request_id, | 365 int request_id, |
366 const base::FilePath& path) {} | 366 const base::FilePath& path) {} |
367 | 367 |
368 // Returns true if the delegate will embed a WebContents-owned fullscreen | 368 // Returns true if the delegate will embed a WebContents-owned fullscreen |
369 // render widget. In this case, the delegate may access the widget by calling | 369 // render widget. In this case, the delegate may access the widget by calling |
370 // WebContents::GetFullscreenRenderWidgetHostView(). If false is returned, | 370 // WebContents::GetFullscreenRenderWidgetHostView(). If false is returned, |
371 // WebContents will be responsible for showing the fullscreen widget. | 371 // WebContents will be responsible for showing the fullscreen widget. |
372 virtual bool EmbedsFullscreenWidget() const; | 372 virtual bool EmbedsFullscreenWidget() const; |
373 | 373 |
374 // Called when the renderer puts a tab into or out of fullscreen mode. | 374 // Called when the renderer puts a tab into or out of fullscreen mode. |
375 // |origin| will always be empty when |enter_fullscreen| is false. | |
Charlie Reis
2014/12/10 00:51:21
These comments help, but please first say what |or
mlamouri (slow - plz ping)
2014/12/10 15:47:02
Done.
| |
376 // |origin| can be empty when |enter_fullscreen| in which case the | |
Charlie Reis
2014/12/10 00:51:21
when |enter_fullscreen| is true, in which case...
mlamouri (slow - plz ping)
2014/12/10 15:47:02
No longer exists.
| |
377 // implementation is expected to use |web_contents|' origin instead. | |
375 virtual void ToggleFullscreenModeForTab(WebContents* web_contents, | 378 virtual void ToggleFullscreenModeForTab(WebContents* web_contents, |
379 const GURL& origin, | |
376 bool enter_fullscreen) {} | 380 bool enter_fullscreen) {} |
377 virtual bool IsFullscreenForTabOrPending( | 381 virtual bool IsFullscreenForTabOrPending( |
378 const WebContents* web_contents) const; | 382 const WebContents* web_contents) const; |
379 | 383 |
380 // Register a new handler for URL requests with the given scheme. | 384 // Register a new handler for URL requests with the given scheme. |
381 // |user_gesture| is true if the registration is made in the context of a user | 385 // |user_gesture| is true if the registration is made in the context of a user |
382 // gesture. | 386 // gesture. |
383 virtual void RegisterProtocolHandler(WebContents* web_contents, | 387 virtual void RegisterProtocolHandler(WebContents* web_contents, |
384 const std::string& protocol, | 388 const std::string& protocol, |
385 const GURL& url, | 389 const GURL& url, |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
504 // Called when |this| is no longer the WebContentsDelegate for |source|. | 508 // Called when |this| is no longer the WebContentsDelegate for |source|. |
505 void Detach(WebContents* source); | 509 void Detach(WebContents* source); |
506 | 510 |
507 // The WebContents that this is currently a delegate for. | 511 // The WebContents that this is currently a delegate for. |
508 std::set<WebContents*> attached_contents_; | 512 std::set<WebContents*> attached_contents_; |
509 }; | 513 }; |
510 | 514 |
511 } // namespace content | 515 } // namespace content |
512 | 516 |
513 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 517 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
OLD | NEW |