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: ui/compositor/compositor_observer.h

Issue 859423002: Explicitly specify the ui::Compositor to DelegatedFrameHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add aura:: 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_COMPOSITOR_COMPOSITOR_OBSERVER_H_ 5 #ifndef UI_COMPOSITOR_COMPOSITOR_OBSERVER_H_
6 #define UI_COMPOSITOR_COMPOSITOR_OBSERVER_H_ 6 #define UI_COMPOSITOR_COMPOSITOR_OBSERVER_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "ui/compositor/compositor_export.h" 9 #include "ui/compositor/compositor_export.h"
10 10
(...skipping 23 matching lines...) Expand all
34 // Called when compositing completes: the present to screen has completed. 34 // Called when compositing completes: the present to screen has completed.
35 virtual void OnCompositingEnded(Compositor* compositor) = 0; 35 virtual void OnCompositingEnded(Compositor* compositor) = 0;
36 36
37 // Called when compositing is aborted (e.g. lost graphics context). 37 // Called when compositing is aborted (e.g. lost graphics context).
38 virtual void OnCompositingAborted(Compositor* compositor) = 0; 38 virtual void OnCompositingAborted(Compositor* compositor) = 0;
39 39
40 // Called when the compositor lock state changes. 40 // Called when the compositor lock state changes.
41 virtual void OnCompositingLockStateChanged(Compositor* compositor) = 0; 41 virtual void OnCompositingLockStateChanged(Compositor* compositor) = 0;
42 42
43 protected: 43 protected:
44 #if defined(OS_MACOSX) 44 // Instrumentation to ensure that observers are not left attached after they
45 // Debugging instrumentation for crbug.com/401630. 45 // are destroyed.
46 // TODO(ccameron): remove this.
47 friend class Compositor; 46 friend class Compositor;
48 int32 observing_count_; 47 int32 observing_count_;
49 #endif
50 48
51 virtual ~CompositorObserver(); 49 virtual ~CompositorObserver();
52 }; 50 };
53 51
54 } // namespace ui 52 } // namespace ui
55 53
56 #endif // UI_COMPOSITOR_COMPOSITOR_OBSERVER_H_ 54 #endif // UI_COMPOSITOR_COMPOSITOR_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698