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

Side by Side Diff: ash/sysui/stub_context_factory.h

Issue 2339633002: mash: Port KeyboardUIMus to mojo:ash; remove sysui. (Closed)
Patch Set: Add mash NOTIMPLEMENTED() in AccessibilityManager::UpdateVirtualKeyboardFromPref() Created 4 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 | « ash/sysui/shell_delegate_mus.cc ('k') | ash/sysui/stub_context_factory.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 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
5 #ifndef ASH_SYSUI_STUB_CONTEXT_FACTORY_H_
6 #define ASH_SYSUI_STUB_CONTEXT_FACTORY_H_
7
8 #include <memory>
9
10 #include "base/macros.h"
11 #include "ui/compositor/compositor.h"
12
13 namespace cc {
14 class SingleThreadTaskGraphRunner;
15 }
16
17 namespace ash {
18 namespace sysui {
19
20 class StubContextFactory : public ui::ContextFactory {
21 public:
22 StubContextFactory();
23 ~StubContextFactory() override;
24
25 private:
26 // ui::ContextFactory implementation.
27 void CreateOutputSurface(base::WeakPtr<ui::Compositor> compositor) override;
28 std::unique_ptr<ui::Reflector> CreateReflector(
29 ui::Compositor* mirrored_compositor,
30 ui::Layer* mirroring_layer) override;
31 void RemoveReflector(ui::Reflector* reflector) override;
32 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override;
33 void RemoveCompositor(ui::Compositor* compositor) override;
34 bool DoesCreateTestContexts() override;
35 uint32_t GetImageTextureTarget(gfx::BufferFormat format,
36 gfx::BufferUsage usage) override;
37 cc::SharedBitmapManager* GetSharedBitmapManager() override;
38 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
39 cc::TaskGraphRunner* GetTaskGraphRunner() override;
40 uint32_t AllocateSurfaceClientId() override;
41 cc::SurfaceManager* GetSurfaceManager() override;
42 void ResizeDisplay(ui::Compositor* compositor,
43 const gfx::Size& size) override;
44 void SetDisplayColorSpace(ui::Compositor* compositor,
45 const gfx::ColorSpace& color_space) override;
46 void SetAuthoritativeVSyncInterval(ui::Compositor* compositor,
47 base::TimeDelta interval) override {}
48 void SetDisplayVSyncParameters(ui::Compositor* compositor,
49 base::TimeTicks timebase,
50 base::TimeDelta interval) override {}
51 void SetOutputIsSecure(ui::Compositor* compositor, bool secure) override {}
52 void AddObserver(ui::ContextFactoryObserver* observer) override {}
53 void RemoveObserver(ui::ContextFactoryObserver* observer) override {}
54
55 uint32_t next_surface_id_namespace_;
56 std::unique_ptr<cc::SingleThreadTaskGraphRunner> task_graph_runner_;
57
58 DISALLOW_COPY_AND_ASSIGN(StubContextFactory);
59 };
60
61 } // namespace sysui
62 } // namespace ash
63
64 #endif // ASH_SYSUI_STUB_CONTEXT_FACTORY_H_
OLDNEW
« no previous file with comments | « ash/sysui/shell_delegate_mus.cc ('k') | ash/sysui/stub_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698