Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Side by Side Diff: content/public/browser/web_contents_delegate.h

Issue 652673002: NOT FOR REVIEW: Modify ToggleFullscreenMode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fixPowerBlockerNonMedia
Patch Set: Rebase Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698