| 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 20 matching lines...) Expand all Loading... |
| 31 #endif | 31 #endif |
| 32 | 32 |
| 33 class GURL; | 33 class GURL; |
| 34 | 34 |
| 35 namespace base { | 35 namespace base { |
| 36 class FilePath; | 36 class FilePath; |
| 37 class ListValue; | 37 class ListValue; |
| 38 } | 38 } |
| 39 | 39 |
| 40 namespace content { | 40 namespace content { |
| 41 class BluetoothAllowedDevicesMapBase; |
| 41 class ColorChooser; | 42 class ColorChooser; |
| 42 class JavaScriptDialogManager; | 43 class JavaScriptDialogManager; |
| 43 class PageState; | 44 class PageState; |
| 44 class RenderFrameHost; | 45 class RenderFrameHost; |
| 45 class RenderWidgetHost; | 46 class RenderWidgetHost; |
| 46 class SessionStorageNamespace; | 47 class SessionStorageNamespace; |
| 47 class SiteInstance; | 48 class SiteInstance; |
| 48 class WebContents; | 49 class WebContents; |
| 49 class WebContentsImpl; | 50 class WebContentsImpl; |
| 50 struct ColorSuggestion; | 51 struct ColorSuggestion; |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 virtual void EnumerateDirectory(WebContents* web_contents, | 370 virtual void EnumerateDirectory(WebContents* web_contents, |
| 370 int request_id, | 371 int request_id, |
| 371 const base::FilePath& path) {} | 372 const base::FilePath& path) {} |
| 372 | 373 |
| 373 // Shows a chooser for the user to select a nearby Bluetooth device. The | 374 // Shows a chooser for the user to select a nearby Bluetooth device. The |
| 374 // observer must live at least as long as the returned chooser object. | 375 // observer must live at least as long as the returned chooser object. |
| 375 virtual std::unique_ptr<BluetoothChooser> RunBluetoothChooser( | 376 virtual std::unique_ptr<BluetoothChooser> RunBluetoothChooser( |
| 376 RenderFrameHost* frame, | 377 RenderFrameHost* frame, |
| 377 const BluetoothChooser::EventHandler& event_handler); | 378 const BluetoothChooser::EventHandler& event_handler); |
| 378 | 379 |
| 380 // Returns a bluetooth allowed devices map for |frame|. |
| 381 virtual BluetoothAllowedDevicesMapBase* GetBluetoothDevicesMap( |
| 382 RenderFrameHost* frame); |
| 383 |
| 379 // Returns true if the delegate will embed a WebContents-owned fullscreen | 384 // Returns true if the delegate will embed a WebContents-owned fullscreen |
| 380 // render widget. In this case, the delegate may access the widget by calling | 385 // render widget. In this case, the delegate may access the widget by calling |
| 381 // WebContents::GetFullscreenRenderWidgetHostView(). If false is returned, | 386 // WebContents::GetFullscreenRenderWidgetHostView(). If false is returned, |
| 382 // WebContents will be responsible for showing the fullscreen widget. | 387 // WebContents will be responsible for showing the fullscreen widget. |
| 383 virtual bool EmbedsFullscreenWidget() const; | 388 virtual bool EmbedsFullscreenWidget() const; |
| 384 | 389 |
| 385 // Called when the renderer puts a tab into fullscreen mode. | 390 // Called when the renderer puts a tab into fullscreen mode. |
| 386 // |origin| is the origin of the initiating frame inside the |web_contents|. | 391 // |origin| is the origin of the initiating frame inside the |web_contents|. |
| 387 // |origin| can be empty in which case the |web_contents| last committed | 392 // |origin| can be empty in which case the |web_contents| last committed |
| 388 // URL's origin should be used. | 393 // URL's origin should be used. |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 // Called when |this| is no longer the WebContentsDelegate for |source|. | 572 // Called when |this| is no longer the WebContentsDelegate for |source|. |
| 568 void Detach(WebContents* source); | 573 void Detach(WebContents* source); |
| 569 | 574 |
| 570 // The WebContents that this is currently a delegate for. | 575 // The WebContents that this is currently a delegate for. |
| 571 std::set<WebContents*> attached_contents_; | 576 std::set<WebContents*> attached_contents_; |
| 572 }; | 577 }; |
| 573 | 578 |
| 574 } // namespace content | 579 } // namespace content |
| 575 | 580 |
| 576 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 581 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |