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 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
610 // Similarly, when exitFullScreen is called, | 610 // Similarly, when exitFullScreen is called, |
611 // WebWidget::{will,Did}ExitFullScreen should bound resizing the WebWidget | 611 // WebWidget::{will,Did}ExitFullScreen should bound resizing the WebWidget |
612 // out of fullscreen mode. | 612 // out of fullscreen mode. |
613 // Note: the return value is ignored. | 613 // Note: the return value is ignored. |
614 virtual bool enterFullscreen() { return false; } | 614 virtual bool enterFullscreen() { return false; } |
615 virtual bool exitFullscreen() { return false; } | 615 virtual bool exitFullscreen() { return false; } |
616 | 616 |
617 | 617 |
618 // Sudden termination -------------------------------------------------- | 618 // Sudden termination -------------------------------------------------- |
619 | 619 |
620 // Called when an element preventing the sudden termination of the frame is | 620 // Called when elements preventing the sudden termination of the frame |
621 // added or removed. |variation| is the number of elements added, removed if | 621 // become present or stop being present. |type| is the type of element |
622 // it is negative. |type| is the type of element (BeforeUnload handler, | 622 // (BeforeUnload handler, Unload handler). |
623 // Unload handler). | |
624 enum SuddenTerminationDisablerType { | 623 enum SuddenTerminationDisablerType { |
625 BeforeUnloadHandler, | 624 BeforeUnloadHandler, |
626 UnloadHandler, | 625 UnloadHandler, |
627 }; | 626 }; |
628 virtual void suddenTerminationDisablerChanged(int variation, SuddenTerminati
onDisablerType) { } | 627 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio
nDisablerType) { } |
629 | 628 |
630 protected: | 629 protected: |
631 virtual ~WebFrameClient() { } | 630 virtual ~WebFrameClient() { } |
632 }; | 631 }; |
633 | 632 |
634 } // namespace blink | 633 } // namespace blink |
635 | 634 |
636 #endif | 635 #endif |
OLD | NEW |