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 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
601 // then WebWidget::{will,Did}EnterFullScreen should bound resizing the | 601 // then WebWidget::{will,Did}EnterFullScreen should bound resizing the |
602 // WebWidget into fullscreen mode. Similarly, when exitFullScreen is | 602 // WebWidget into fullscreen mode. Similarly, when exitFullScreen is |
603 // called, WebWidget::{will,Did}ExitFullScreen should bound resizing the | 603 // called, WebWidget::{will,Did}ExitFullScreen should bound resizing the |
604 // WebWidget out of fullscreen mode. | 604 // WebWidget out of fullscreen mode. |
605 virtual bool enterFullscreen() { return false; } | 605 virtual bool enterFullscreen() { return false; } |
606 virtual bool exitFullscreen() { return false; } | 606 virtual bool exitFullscreen() { return false; } |
607 | 607 |
608 | 608 |
609 // Sudden termination -------------------------------------------------- | 609 // Sudden termination -------------------------------------------------- |
610 | 610 |
611 // Called when an element preventing the sudden termination of the frame is | 611 // Called when elements preventing the sudden termination of the frame are |
Charlie Reis
2015/01/28 20:45:02
nit: are -> become
clamy
2015/01/29 12:49:11
Done.
| |
612 // added or removed. |variation| is the number of elements added, removed if | 612 // present or stop being present. |type| is the type of element |
613 // it is negative. |type| is the type of element (BeforeUnload handler, | 613 // (BeforeUnload handler, Unload handler). |
614 // Unload handler). | |
615 enum SuddenTerminationDisablerType { | 614 enum SuddenTerminationDisablerType { |
616 BeforeUnloadHandler, | 615 BeforeUnloadHandler, |
617 UnloadHandler, | 616 UnloadHandler, |
618 }; | 617 }; |
619 virtual void suddenTerminationDisablerChanged(int variation, SuddenTerminati onDisablerType) { } | 618 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio nDisablerType) { } |
620 | 619 |
621 protected: | 620 protected: |
622 virtual ~WebFrameClient() { } | 621 virtual ~WebFrameClient() { } |
623 }; | 622 }; |
624 | 623 |
625 } // namespace blink | 624 } // namespace blink |
626 | 625 |
627 #endif | 626 #endif |
OLD | NEW |