| 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 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 virtual bool isControlledByServiceWorker(WebDataSource&) { return false; } | 647 virtual bool isControlledByServiceWorker(WebDataSource&) { return false; } |
| 648 | 648 |
| 649 // Returns an identifier of the service worker controlling the document | 649 // Returns an identifier of the service worker controlling the document |
| 650 // associated with the WebDataSource. | 650 // associated with the WebDataSource. |
| 651 virtual int64_t serviceWorkerID(WebDataSource&) { return -1; } | 651 virtual int64_t serviceWorkerID(WebDataSource&) { return -1; } |
| 652 | 652 |
| 653 | 653 |
| 654 // Fullscreen ---------------------------------------------------------- | 654 // Fullscreen ---------------------------------------------------------- |
| 655 | 655 |
| 656 // Called to enter/exit fullscreen mode. | 656 // Called to enter/exit fullscreen mode. |
| 657 // After calling enterFullscreen, WebWidget::{will,Did}EnterFullScreen | 657 // After calling enterFullscreen or exitFullscreen, |
| 658 // should bound resizing the WebWidget into fullscreen mode. | 658 // WebWidget::didEnterFullscreen or WebWidget::didExitFullscreen |
| 659 // Similarly, when exitFullScreen is called, | 659 // respectively will be called once the fullscreen mode has changed. |
| 660 // WebWidget::{will,Did}ExitFullScreen should bound resizing the WebWidget | 660 virtual void enterFullscreen() { } |
| 661 // out of fullscreen mode. | 661 virtual void exitFullscreen() { } |
| 662 // Note: the return value is ignored. | |
| 663 virtual bool enterFullscreen() { return false; } | |
| 664 virtual bool exitFullscreen() { return false; } | |
| 665 | 662 |
| 666 | 663 |
| 667 // Sudden termination -------------------------------------------------- | 664 // Sudden termination -------------------------------------------------- |
| 668 | 665 |
| 669 // Called when elements preventing the sudden termination of the frame | 666 // Called when elements preventing the sudden termination of the frame |
| 670 // become present or stop being present. |type| is the type of element | 667 // become present or stop being present. |type| is the type of element |
| 671 // (BeforeUnload handler, Unload handler). | 668 // (BeforeUnload handler, Unload handler). |
| 672 enum SuddenTerminationDisablerType { | 669 enum SuddenTerminationDisablerType { |
| 673 BeforeUnloadHandler, | 670 BeforeUnloadHandler, |
| 674 UnloadHandler, | 671 UnloadHandler, |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 727 return WebPageVisibilityStateVisible; | 724 return WebPageVisibilityStateVisible; |
| 728 } | 725 } |
| 729 | 726 |
| 730 protected: | 727 protected: |
| 731 virtual ~WebFrameClient() { } | 728 virtual ~WebFrameClient() { } |
| 732 }; | 729 }; |
| 733 | 730 |
| 734 } // namespace blink | 731 } // namespace blink |
| 735 | 732 |
| 736 #endif | 733 #endif |
| OLD | NEW |