Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Side by Side Diff: public/web/WebFrameClient.h

Issue 861773003: Inform the WebFrameClient of BeforeUnload/Unload handlers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed nit Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « public/platform/Platform.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « public/platform/Platform.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698