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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 // Asks permission to use the camera and/or microphone. If permission is | 411 // Asks permission to use the camera and/or microphone. If permission is |
412 // granted, a call should be made to |callback| with the devices. If the | 412 // granted, a call should be made to |callback| with the devices. If the |
413 // request is denied, a call should be made to |callback| with an empty list | 413 // request is denied, a call should be made to |callback| with an empty list |
414 // of devices. |request| has the details of the request (e.g. which of audio | 414 // of devices. |request| has the details of the request (e.g. which of audio |
415 // and/or video devices are requested, and lists of available devices). | 415 // and/or video devices are requested, and lists of available devices). |
416 virtual void RequestMediaAccessPermission( | 416 virtual void RequestMediaAccessPermission( |
417 WebContents* web_contents, | 417 WebContents* web_contents, |
418 const MediaStreamRequest* request, | 418 const MediaStreamRequest* request, |
419 const MediaResponseCallback& callback) {} | 419 const MediaResponseCallback& callback) {} |
420 | 420 |
| 421 // Request to interactively fill out a form using autocomplete. |
| 422 virtual void RequestAutocomplete(WebContents* web_contents) {} |
| 423 |
421 #if defined(OS_ANDROID) | 424 #if defined(OS_ANDROID) |
422 // Called when a compositing layer becomes available for this web contents | 425 // Called when a compositing layer becomes available for this web contents |
423 // so the delegate can add it to the layer tree. | 426 // so the delegate can add it to the layer tree. |
424 virtual void AttachLayer(WebContents* web_contents, | 427 virtual void AttachLayer(WebContents* web_contents, |
425 WebKit::WebLayer* layer) {} | 428 WebKit::WebLayer* layer) {} |
426 | 429 |
427 // Called before a compositing layer becomes invalid so the delegate can | 430 // Called before a compositing layer becomes invalid so the delegate can |
428 // remove it from the layer tree. | 431 // remove it from the layer tree. |
429 virtual void RemoveLayer(WebContents* web_contents, | 432 virtual void RemoveLayer(WebContents* web_contents, |
430 WebKit::WebLayer* layer) {} | 433 WebKit::WebLayer* layer) {} |
(...skipping 11 matching lines...) Expand all Loading... |
442 // Called when |this| is no longer the WebContentsDelegate for |source|. | 445 // Called when |this| is no longer the WebContentsDelegate for |source|. |
443 void Detach(WebContents* source); | 446 void Detach(WebContents* source); |
444 | 447 |
445 // The WebContents that this is currently a delegate for. | 448 // The WebContents that this is currently a delegate for. |
446 std::set<WebContents*> attached_contents_; | 449 std::set<WebContents*> attached_contents_; |
447 }; | 450 }; |
448 | 451 |
449 } // namespace content | 452 } // namespace content |
450 | 453 |
451 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 454 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
OLD | NEW |