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 const base::FilePath& path) {} | 365 const base::FilePath& path) {} |
366 | 366 |
367 // Returns true if the delegate will embed a WebContents-owned fullscreen | 367 // Returns true if the delegate will embed a WebContents-owned fullscreen |
368 // render widget. In this case, the delegate may access the widget by calling | 368 // render widget. In this case, the delegate may access the widget by calling |
369 // WebContents::GetFullscreenRenderWidgetHostView(). If false is returned, | 369 // WebContents::GetFullscreenRenderWidgetHostView(). If false is returned, |
370 // WebContents will be responsible for showing the fullscreen widget. | 370 // WebContents will be responsible for showing the fullscreen widget. |
371 virtual bool EmbedsFullscreenWidget() const; | 371 virtual bool EmbedsFullscreenWidget() const; |
372 | 372 |
373 // Called when the renderer puts a tab into or out of fullscreen mode. | 373 // Called when the renderer puts a tab into or out of fullscreen mode. |
374 virtual void ToggleFullscreenModeForTab(WebContents* web_contents, | 374 virtual void ToggleFullscreenModeForTab(WebContents* web_contents, |
375 bool enter_fullscreen) {} | 375 bool enter_fullscreen, |
| 376 bool is_video) {} |
376 virtual bool IsFullscreenForTabOrPending( | 377 virtual bool IsFullscreenForTabOrPending( |
377 const WebContents* web_contents) const; | 378 const WebContents* web_contents) const; |
378 | 379 |
379 // Register a new handler for URL requests with the given scheme. | 380 // Register a new handler for URL requests with the given scheme. |
380 // |user_gesture| is true if the registration is made in the context of a user | 381 // |user_gesture| is true if the registration is made in the context of a user |
381 // gesture. | 382 // gesture. |
382 virtual void RegisterProtocolHandler(WebContents* web_contents, | 383 virtual void RegisterProtocolHandler(WebContents* web_contents, |
383 const std::string& protocol, | 384 const std::string& protocol, |
384 const GURL& url, | 385 const GURL& url, |
385 bool user_gesture) {} | 386 bool user_gesture) {} |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 // Called when |this| is no longer the WebContentsDelegate for |source|. | 500 // Called when |this| is no longer the WebContentsDelegate for |source|. |
500 void Detach(WebContents* source); | 501 void Detach(WebContents* source); |
501 | 502 |
502 // The WebContents that this is currently a delegate for. | 503 // The WebContents that this is currently a delegate for. |
503 std::set<WebContents*> attached_contents_; | 504 std::set<WebContents*> attached_contents_; |
504 }; | 505 }; |
505 | 506 |
506 } // namespace content | 507 } // namespace content |
507 | 508 |
508 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 509 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
OLD | NEW |