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

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

Issue 23477051: Embed Flash Fullscreen widget within browser window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add caution comment to chrome_switches.cc. Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « content/public/browser/web_contents.h ('k') | content/public/browser/web_contents_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 virtual void RunFileChooser(WebContents* web_contents, 341 virtual void RunFileChooser(WebContents* web_contents,
342 const FileChooserParams& params) {} 342 const FileChooserParams& params) {}
343 343
344 // Request to enumerate a directory. This is equivalent to running the file 344 // Request to enumerate a directory. This is equivalent to running the file
345 // chooser in directory-enumeration mode and having the user select the given 345 // chooser in directory-enumeration mode and having the user select the given
346 // directory. 346 // directory.
347 virtual void EnumerateDirectory(WebContents* web_contents, 347 virtual void EnumerateDirectory(WebContents* web_contents,
348 int request_id, 348 int request_id,
349 const base::FilePath& path) {} 349 const base::FilePath& path) {}
350 350
351 // Returns true if the delegate will embed a WebContents-owned fullscreen
352 // render widget. In this case, the delegate may access the widget by calling
353 // WebContents::GetFullscreenRenderWidgetHostView(). If false is returned,
354 // WebContents will be responsible for showing the fullscreen widget.
355 virtual bool EmbedsFullscreenWidget() const;
356
351 // Called when the renderer puts a tab into or out of fullscreen mode. 357 // Called when the renderer puts a tab into or out of fullscreen mode.
352 virtual void ToggleFullscreenModeForTab(WebContents* web_contents, 358 virtual void ToggleFullscreenModeForTab(WebContents* web_contents,
353 bool enter_fullscreen) {} 359 bool enter_fullscreen) {}
354 virtual bool IsFullscreenForTabOrPending( 360 virtual bool IsFullscreenForTabOrPending(
355 const WebContents* web_contents) const; 361 const WebContents* web_contents) const;
356 362
357 // Called when the renderer has scrolled programmatically. 363 // Called when the renderer has scrolled programmatically.
358 virtual void DidProgrammaticallyScroll(WebContents* web_contents, 364 virtual void DidProgrammaticallyScroll(WebContents* web_contents,
359 const gfx::Vector2d& scroll_point) {} 365 const gfx::Vector2d& scroll_point) {}
360 366
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 // Called when |this| is no longer the WebContentsDelegate for |source|. 458 // Called when |this| is no longer the WebContentsDelegate for |source|.
453 void Detach(WebContents* source); 459 void Detach(WebContents* source);
454 460
455 // The WebContents that this is currently a delegate for. 461 // The WebContents that this is currently a delegate for.
456 std::set<WebContents*> attached_contents_; 462 std::set<WebContents*> attached_contents_;
457 }; 463 };
458 464
459 } // namespace content 465 } // namespace content
460 466
461 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 467 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/browser/web_contents.h ('k') | content/public/browser/web_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698