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

Side by Side Diff: third_party/WebKit/Source/core/page/PageVisibilityObserver.h

Issue 2463703003: blink: Cleanup core class forward declarations (Closed)
Patch Set: Remove redundant empty lines Created 4 years, 1 month 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
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 15 matching lines...) Expand all
26 26
27 #ifndef PageVisibilityObserver_h 27 #ifndef PageVisibilityObserver_h
28 #define PageVisibilityObserver_h 28 #define PageVisibilityObserver_h
29 29
30 #include "core/CoreExport.h" 30 #include "core/CoreExport.h"
31 #include "core/page/Page.h" 31 #include "core/page/Page.h"
32 #include "platform/LifecycleObserver.h" 32 #include "platform/LifecycleObserver.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 class LocalFrame;
37
38 class CORE_EXPORT PageVisibilityObserver 36 class CORE_EXPORT PageVisibilityObserver
39 : public LifecycleObserver<Page, PageVisibilityObserver> { 37 : public LifecycleObserver<Page, PageVisibilityObserver> {
40 public: 38 public:
41 virtual void pageVisibilityChanged() {} 39 virtual void pageVisibilityChanged() {}
42 40
43 Page* page() const { return lifecycleContext(); } 41 Page* page() const { return lifecycleContext(); }
44 42
45 protected: 43 protected:
46 explicit PageVisibilityObserver(Page* page) : LifecycleObserver(page) {} 44 explicit PageVisibilityObserver(Page* page) : LifecycleObserver(page) {}
47 }; 45 };
48 46
49 } // namespace blink 47 } // namespace blink
50 48
51 #endif // PageVisibilityObserver_h 49 #endif // PageVisibilityObserver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698