| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 struct SecurityStyleExplanations; | 53 struct SecurityStyleExplanations; |
| 54 struct SSLStatus; | 54 struct SSLStatus; |
| 55 } | 55 } |
| 56 | 56 |
| 57 namespace gfx { | 57 namespace gfx { |
| 58 class Point; | 58 class Point; |
| 59 class Rect; | 59 class Rect; |
| 60 class Size; | 60 class Size; |
| 61 } | 61 } |
| 62 | 62 |
| 63 namespace url { |
| 64 class Origin; |
| 65 } |
| 66 |
| 63 namespace blink { | 67 namespace blink { |
| 64 class WebGestureEvent; | 68 class WebGestureEvent; |
| 65 } | 69 } |
| 66 | 70 |
| 67 namespace content { | 71 namespace content { |
| 68 | 72 |
| 69 struct OpenURLParams; | 73 struct OpenURLParams; |
| 70 | 74 |
| 71 // Objects implement this interface to get notified about changes in the | 75 // Objects implement this interface to get notified about changes in the |
| 72 // WebContents and to provide necessary functionality. | 76 // WebContents and to provide necessary functionality. |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 // directory. | 351 // directory. |
| 348 virtual void EnumerateDirectory(WebContents* web_contents, | 352 virtual void EnumerateDirectory(WebContents* web_contents, |
| 349 int request_id, | 353 int request_id, |
| 350 const base::FilePath& path) {} | 354 const base::FilePath& path) {} |
| 351 | 355 |
| 352 // Shows a chooser for the user to select a nearby Bluetooth device. The | 356 // Shows a chooser for the user to select a nearby Bluetooth device. The |
| 353 // observer must live at least as long as the returned chooser object. | 357 // observer must live at least as long as the returned chooser object. |
| 354 virtual scoped_ptr<BluetoothChooser> RunBluetoothChooser( | 358 virtual scoped_ptr<BluetoothChooser> RunBluetoothChooser( |
| 355 WebContents* web_contents, | 359 WebContents* web_contents, |
| 356 const BluetoothChooser::EventHandler& event_handler, | 360 const BluetoothChooser::EventHandler& event_handler, |
| 357 const GURL& origin); | 361 const url::Origin& origin); |
| 358 | 362 |
| 359 // Returns true if the delegate will embed a WebContents-owned fullscreen | 363 // Returns true if the delegate will embed a WebContents-owned fullscreen |
| 360 // render widget. In this case, the delegate may access the widget by calling | 364 // render widget. In this case, the delegate may access the widget by calling |
| 361 // WebContents::GetFullscreenRenderWidgetHostView(). If false is returned, | 365 // WebContents::GetFullscreenRenderWidgetHostView(). If false is returned, |
| 362 // WebContents will be responsible for showing the fullscreen widget. | 366 // WebContents will be responsible for showing the fullscreen widget. |
| 363 virtual bool EmbedsFullscreenWidget() const; | 367 virtual bool EmbedsFullscreenWidget() const; |
| 364 | 368 |
| 365 // Called when the renderer puts a tab into fullscreen mode. | 369 // Called when the renderer puts a tab into fullscreen mode. |
| 366 // |origin| is the origin of the initiating frame inside the |web_contents|. | 370 // |origin| is the origin of the initiating frame inside the |web_contents|. |
| 367 // |origin| can be empty in which case the |web_contents| last committed | 371 // |origin| can be empty in which case the |web_contents| last committed |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 // Called when |this| is no longer the WebContentsDelegate for |source|. | 539 // Called when |this| is no longer the WebContentsDelegate for |source|. |
| 536 void Detach(WebContents* source); | 540 void Detach(WebContents* source); |
| 537 | 541 |
| 538 // The WebContents that this is currently a delegate for. | 542 // The WebContents that this is currently a delegate for. |
| 539 std::set<WebContents*> attached_contents_; | 543 std::set<WebContents*> attached_contents_; |
| 540 }; | 544 }; |
| 541 | 545 |
| 542 } // namespace content | 546 } // namespace content |
| 543 | 547 |
| 544 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 548 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |