OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 // Encrypted Media ------------------------------------------------- | 582 // Encrypted Media ------------------------------------------------- |
583 | 583 |
584 virtual WebEncryptedMediaClient* encryptedMediaClient() { return 0; } | 584 virtual WebEncryptedMediaClient* encryptedMediaClient() { return 0; } |
585 | 585 |
586 | 586 |
587 // Web MIDI ------------------------------------------------------------- | 587 // Web MIDI ------------------------------------------------------------- |
588 | 588 |
589 virtual WebMIDIClient* webMIDIClient() { return 0; } | 589 virtual WebMIDIClient* webMIDIClient() { return 0; } |
590 | 590 |
591 | 591 |
592 // Messages ------------------------------------------------------ | 592 // User agent ------------------------------------------------------ |
593 | |
594 // Notifies the embedder that a postMessage was issued on this frame, and | |
595 // gives the embedder a chance to handle it instead of WebKit. Returns true | |
596 // if the embedder handled it. | |
597 virtual bool willCheckAndDispatchMessageEvent( | |
598 WebLocalFrame* sourceFrame, | |
599 WebFrame* targetFrame, | |
600 WebSecurityOrigin target, | |
601 WebDOMMessageEvent event) { return false; } | |
602 | 593 |
603 // Asks the embedder if a specific user agent should be used. Non-empty | 594 // Asks the embedder if a specific user agent should be used. Non-empty |
604 // strings indicate an override should be used. Otherwise, | 595 // strings indicate an override should be used. Otherwise, |
605 // Platform::current()->userAgent() will be called to provide one. | 596 // Platform::current()->userAgent() will be called to provide one. |
606 virtual WebString userAgentOverride() { return WebString(); } | 597 virtual WebString userAgentOverride() { return WebString(); } |
607 | 598 |
| 599 |
| 600 // Do not track ---------------------------------------------------- |
| 601 |
608 // Asks the embedder what value the network stack will send for the DNT | 602 // Asks the embedder what value the network stack will send for the DNT |
609 // header. An empty string indicates that no DNT header will be send. | 603 // header. An empty string indicates that no DNT header will be send. |
610 virtual WebString doNotTrackValue() { return WebString(); } | 604 virtual WebString doNotTrackValue() { return WebString(); } |
611 | 605 |
612 | 606 |
613 // WebGL ------------------------------------------------------ | 607 // WebGL ------------------------------------------------------ |
614 | 608 |
615 // Asks the embedder whether WebGL is allowed for the WebFrame. This call is | 609 // Asks the embedder whether WebGL is allowed for the WebFrame. This call is |
616 // placed here instead of WebContentSettingsClient because this class is | 610 // placed here instead of WebContentSettingsClient because this class is |
617 // implemented in content/, and putting it here avoids adding more public | 611 // implemented in content/, and putting it here avoids adding more public |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 // Mojo ---------------------------------------------------------------- | 712 // Mojo ---------------------------------------------------------------- |
719 virtual ServiceRegistry* serviceRegistry() { return nullptr; } | 713 virtual ServiceRegistry* serviceRegistry() { return nullptr; } |
720 | 714 |
721 protected: | 715 protected: |
722 virtual ~WebFrameClient() { } | 716 virtual ~WebFrameClient() { } |
723 }; | 717 }; |
724 | 718 |
725 } // namespace blink | 719 } // namespace blink |
726 | 720 |
727 #endif | 721 #endif |
OLD | NEW |