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

Side by Side Diff: chromecast/graphics/cast_window_manager_aura.h

Issue 2643553002: [Chromecast] Reuse the Aura window manager across receiver apps. (Closed)
Patch Set: fix unit tests Created 3 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
(Empty)
1 // Copyright 2016 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 #ifndef CHROMECAST_GRAPHICS_CAST_WINDOW_MANAGER_AURA_H_
5 #define CHROMECAST_GRAPHICS_CAST_WINDOW_MANAGER_AURA_H_
6
7 #include <memory>
8
9 #include "base/macros.h"
10 #include "base/observer_list.h"
11 #include "chromecast/graphics/cast_vsync_settings.h"
12 #include "chromecast/graphics/cast_window_manager.h"
13
14 namespace aura {
15 class Window;
16 namespace client {
17 class DefaultCaptureClient;
18 }
derekjchow1 2017/01/18 02:49:13 } // namespace client } // namespace aura Helps
Joshua LeVasseur 2017/01/18 18:26:35 Done.
19 }
20
21 namespace chromecast {
22
23 class CastWindowTreeHost;
24
25 class CastWindowManagerAura : public CastWindowManager,
26 public CastVSyncSettings::Observer {
derekjchow1 2017/01/18 02:49:13 I don't think we need to publicly inherit from Cas
Joshua LeVasseur 2017/01/18 18:26:35 Done.
27 public:
28 ~CastWindowManagerAura() override;
29
30 // CastWindowManager implementation:
31 void Setup() override;
32 void TearDown() override;
33 void AddWindow(gfx::NativeView window) override;
34 void AddAndShowWindow(gfx::NativeView window) override;
35
36 private:
37 friend class CastWindowManager;
38
39 // This class should only be instantiated by CastWindowManager::Create.
40 explicit CastWindowManagerAura(bool enable_input);
41
42 // CastVSyncSettings::Observer implementation:
43 void OnVSyncIntervalChanged(base::TimeDelta interval) override;
44
45 const bool enable_input_;
46 std::unique_ptr<CastWindowTreeHost> window_tree_host_;
47 std::unique_ptr<aura::client::DefaultCaptureClient> capture_client_;
48
49 DISALLOW_COPY_AND_ASSIGN(CastWindowManagerAura);
50 };
51
52 } // namespace chromecast
53
54 #endif // CHROMECAST_GRAPHICS_CAST_WINDOW_MANAGER_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698