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

Side by Side Diff: ui/compositor/compositor_retriever_delegate.h

Issue 23726015: All together now (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screencast_cap
Patch Set: Created 7 years, 3 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 | « ui/compositor/compositor.gyp ('k') | ui/compositor/compositor_retriever_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_COMPOSITOR_COMPOSITOR_RETRIEVER_DELEGATE_H_
6 #define UI_COMPOSITOR_COMPOSITOR_RETRIEVER_DELEGATE_H_
7
8 namespace gfx {
9 class Display;
10 }
11
12 namespace ui {
13
14 class Compositor;
15
16 // A class that allows retrieving a compositor associated with a display.
17 class CompositorRetrieverDelegate {
18 public:
19 // Returns the compositor associated with the display.
20 virtual ui::Compositor* GetCompositorForDisplay(
21 const gfx::Display& display) = 0;
22
23 // Sets the CompositorRetrieverDelegate. Only one delegate may be registered.
24 static void SetDelegate(CompositorRetrieverDelegate* delegate);
25
26 // Gets the global CompositorRetrieverDelegate instance.
27 static CompositorRetrieverDelegate* GetInstance();
28 };
29
30 } // namespace ui
31
32 #endif // UI_COMPOSITOR_COMPOSITOR_RETRIEVER_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/compositor/compositor.gyp ('k') | ui/compositor/compositor_retriever_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698