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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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, ToggleFullscreenModeForTab() is used to enter | |
jam
2013/09/11 02:48:26
nit: don't mention what chrome code does in src/co
miu
2013/09/11 03:57:03
Done.
| |
353 // fullscreen mode and the browser view will access the widget by calling | |
354 // WebContents::GetFullscreenRenderWidgetHostView(). If false is returned, | |
355 // WebContents will be responsible for showing the fullscreen widget. | |
356 virtual bool EmbedsFullscreenWidget() const; | |
357 | |
351 // Called when the renderer puts a tab into or out of fullscreen mode. | 358 // Called when the renderer puts a tab into or out of fullscreen mode. |
352 virtual void ToggleFullscreenModeForTab(WebContents* web_contents, | 359 virtual void ToggleFullscreenModeForTab(WebContents* web_contents, |
353 bool enter_fullscreen) {} | 360 bool enter_fullscreen) {} |
354 virtual bool IsFullscreenForTabOrPending( | 361 virtual bool IsFullscreenForTabOrPending( |
355 const WebContents* web_contents) const; | 362 const WebContents* web_contents) const; |
356 | 363 |
357 // Called when the renderer has scrolled programmatically. | 364 // Called when the renderer has scrolled programmatically. |
358 virtual void DidProgrammaticallyScroll(WebContents* web_contents, | 365 virtual void DidProgrammaticallyScroll(WebContents* web_contents, |
359 const gfx::Vector2d& scroll_point) {} | 366 const gfx::Vector2d& scroll_point) {} |
360 | 367 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
452 // Called when |this| is no longer the WebContentsDelegate for |source|. | 459 // Called when |this| is no longer the WebContentsDelegate for |source|. |
453 void Detach(WebContents* source); | 460 void Detach(WebContents* source); |
454 | 461 |
455 // The WebContents that this is currently a delegate for. | 462 // The WebContents that this is currently a delegate for. |
456 std::set<WebContents*> attached_contents_; | 463 std::set<WebContents*> attached_contents_; |
457 }; | 464 }; |
458 | 465 |
459 } // namespace content | 466 } // namespace content |
460 | 467 |
461 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 468 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
OLD | NEW |