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

Side by Side Diff: Source/core/page/PageLifecycleObserver.h

Issue 19641006: Cancel vibration when frame load is committed. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 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/core/page/PageLifecycleNotifier.h ('k') | Source/modules/vibration/NavigatorVibration.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 /* 2 /*
3 * Copyright (C) 2013 Google Inc. All Rights Reserved. 3 * Copyright (C) 2013 Google Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 13 matching lines...) Expand all
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */ 25 */
26 26
27 #ifndef PageLifecycleObserver_h 27 #ifndef PageLifecycleObserver_h
28 #define PageLifecycleObserver_h 28 #define PageLifecycleObserver_h
29 29
30 #include "core/platform/LifecycleObserver.h" 30 #include "core/platform/LifecycleObserver.h"
31 31
32 namespace WebCore { 32 namespace WebCore {
33 33
34 class Frame;
34 class Page; 35 class Page;
35 36
36 class PageLifecycleObserver : public LifecycleObserver { 37 class PageLifecycleObserver : public LifecycleObserver {
37 public: 38 public:
38 explicit PageLifecycleObserver(Page*); 39 explicit PageLifecycleObserver(Page*);
39 virtual ~PageLifecycleObserver(); 40 virtual ~PageLifecycleObserver();
40 41
41 Page* page() const; 42 Page* page() const;
42 43
43 virtual void pageVisibilityChanged() { } 44 virtual void pageVisibilityChanged() { }
45 virtual void didCommitLoad(Frame*) { }
44 }; 46 };
45 47
46 } // namespace WebCore 48 } // namespace WebCore
47 49
48 #endif // PageLifecycleObserver_h 50 #endif // PageLifecycleObserver_h
OLDNEW
« no previous file with comments | « Source/core/page/PageLifecycleNotifier.h ('k') | Source/modules/vibration/NavigatorVibration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698