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

Side by Side Diff: public/platform/Platform.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 | « Source/web/FrameLoaderClientImpl.cpp ('k') | public/web/WebFrameClient.h » ('j') | 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 390
391 391
392 // Scrollbar ---------------------------------------------------------- 392 // Scrollbar ----------------------------------------------------------
393 393
394 // Must return non-null. 394 // Must return non-null.
395 virtual WebScrollbarBehavior* scrollbarBehavior() { return 0; } 395 virtual WebScrollbarBehavior* scrollbarBehavior() { return 0; }
396 396
397 397
398 // Sudden Termination -------------------------------------------------- 398 // Sudden Termination --------------------------------------------------
399 399
400 // Disable/Enable sudden termination. 400 // Disable/Enable sudden termination on a process level. When possible, it
401 // is preferable to disable sudden termination on a per-frame level via
402 // WebFrameClient::suddenTerminationDisablerChanged.
401 virtual void suddenTerminationChanged(bool enabled) { } 403 virtual void suddenTerminationChanged(bool enabled) { }
402 404
403 405
404 // System -------------------------------------------------------------- 406 // System --------------------------------------------------------------
405 407
406 // Returns a value such as "en-US". 408 // Returns a value such as "en-US".
407 virtual WebString defaultLocale() { return WebString(); } 409 virtual WebString defaultLocale() { return WebString(); }
408 410
409 // Wall clock time in seconds since the epoch. 411 // Wall clock time in seconds since the epoch.
410 virtual double currentTime() { return 0; } 412 virtual double currentTime() { return 0; }
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 652
651 virtual WebNavigatorConnectProvider* navigatorConnectProvider() { return 0; } 653 virtual WebNavigatorConnectProvider* navigatorConnectProvider() { return 0; }
652 654
653 protected: 655 protected:
654 virtual ~Platform() { } 656 virtual ~Platform() { }
655 }; 657 };
656 658
657 } // namespace blink 659 } // namespace blink
658 660
659 #endif 661 #endif
OLDNEW
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698