| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 | 350 |
| 351 // Request to enumerate a directory. This is equivalent to running the file | 351 // Request to enumerate a directory. This is equivalent to running the file |
| 352 // chooser in directory-enumeration mode and having the user select the given | 352 // chooser in directory-enumeration mode and having the user select the given |
| 353 // directory. | 353 // directory. |
| 354 virtual void EnumerateDirectory(WebContents* web_contents, | 354 virtual void EnumerateDirectory(WebContents* web_contents, |
| 355 int request_id, | 355 int request_id, |
| 356 const base::FilePath& path) {} | 356 const base::FilePath& path) {} |
| 357 | 357 |
| 358 // Shows a chooser for the user to select a nearby Bluetooth device. The | 358 // Shows a chooser for the user to select a nearby Bluetooth device. The |
| 359 // observer must live at least as long as the returned chooser object. | 359 // observer must live at least as long as the returned chooser object. |
| 360 virtual scoped_ptr<BluetoothChooser> RunBluetoothChooser( | 360 virtual std::unique_ptr<BluetoothChooser> RunBluetoothChooser( |
| 361 RenderFrameHost* frame, | 361 RenderFrameHost* frame, |
| 362 const BluetoothChooser::EventHandler& event_handler); | 362 const BluetoothChooser::EventHandler& event_handler); |
| 363 | 363 |
| 364 // Returns true if the delegate will embed a WebContents-owned fullscreen | 364 // Returns true if the delegate will embed a WebContents-owned fullscreen |
| 365 // render widget. In this case, the delegate may access the widget by calling | 365 // render widget. In this case, the delegate may access the widget by calling |
| 366 // WebContents::GetFullscreenRenderWidgetHostView(). If false is returned, | 366 // WebContents::GetFullscreenRenderWidgetHostView(). If false is returned, |
| 367 // WebContents will be responsible for showing the fullscreen widget. | 367 // WebContents will be responsible for showing the fullscreen widget. |
| 368 virtual bool EmbedsFullscreenWidget() const; | 368 virtual bool EmbedsFullscreenWidget() const; |
| 369 | 369 |
| 370 // Called when the renderer puts a tab into fullscreen mode. | 370 // Called when the renderer puts a tab into fullscreen mode. |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 // Called when |this| is no longer the WebContentsDelegate for |source|. | 545 // Called when |this| is no longer the WebContentsDelegate for |source|. |
| 546 void Detach(WebContents* source); | 546 void Detach(WebContents* source); |
| 547 | 547 |
| 548 // The WebContents that this is currently a delegate for. | 548 // The WebContents that this is currently a delegate for. |
| 549 std::set<WebContents*> attached_contents_; | 549 std::set<WebContents*> attached_contents_; |
| 550 }; | 550 }; |
| 551 | 551 |
| 552 } // namespace content | 552 } // namespace content |
| 553 | 553 |
| 554 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 554 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |