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 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 // Fullscreen ---------------------------------------------------------- | 604 // Fullscreen ---------------------------------------------------------- |
605 | 605 |
606 // Called to enter/exit fullscreen mode. If enterFullScreen returns true, | 606 // Called to enter/exit fullscreen mode. If enterFullScreen returns true, |
607 // then WebWidget::{will,Did}EnterFullScreen should bound resizing the | 607 // then WebWidget::{will,Did}EnterFullScreen should bound resizing the |
608 // WebWidget into fullscreen mode. Similarly, when exitFullScreen is | 608 // WebWidget into fullscreen mode. Similarly, when exitFullScreen is |
609 // called, WebWidget::{will,Did}ExitFullScreen should bound resizing the | 609 // called, WebWidget::{will,Did}ExitFullScreen should bound resizing the |
610 // WebWidget out of fullscreen mode. | 610 // WebWidget out of fullscreen mode. |
611 virtual bool enterFullscreen() { return false; } | 611 virtual bool enterFullscreen() { return false; } |
612 virtual bool exitFullscreen() { return false; } | 612 virtual bool exitFullscreen() { return false; } |
613 | 613 |
| 614 |
| 615 // Sudden termination -------------------------------------------------- |
| 616 |
| 617 // Called when an element preventing the sudden termination of the frame is |
| 618 // added or removed. |variation| is the number of elements added, removed if |
| 619 // it is negative. |type| is the type of element (BeforeUnload handler, |
| 620 // Unload handler). |
| 621 enum SuddenTerminationDisablerType { |
| 622 BeforeUnloadHandler, |
| 623 UnloadHandler, |
| 624 }; |
| 625 virtual void suddenTerminationDisablerChanged(int variation, SuddenTerminati
onDisablerType) { } |
| 626 |
614 protected: | 627 protected: |
615 virtual ~WebFrameClient() { } | 628 virtual ~WebFrameClient() { } |
616 }; | 629 }; |
617 | 630 |
618 } // namespace blink | 631 } // namespace blink |
619 | 632 |
620 #endif | 633 #endif |
OLD | NEW |