Chromium Code Reviews| Index: components/mus/ws/platform_screen_impl.h |
| diff --git a/components/mus/ws/platform_screen_impl.h b/components/mus/ws/platform_screen_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9e2198cb6e190b5a109ea8db771562e83fd414ac |
| --- /dev/null |
| +++ b/components/mus/ws/platform_screen_impl.h |
| @@ -0,0 +1,45 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef COMPONENTS_MUS_WS_PLATFORM_SCREEN_IMPL_H_ |
| +#define COMPONENTS_MUS_WS_PLATFORM_SCREEN_IMPL_H_ |
| + |
| +#include <stdint.h> |
| + |
| +#include "base/callback.h" |
| +#include "base/memory/weak_ptr.h" |
| +#include "components/mus/ws/platform_screen.h" |
| + |
| +namespace gfx { |
| +class Rect; |
| +} |
| + |
| +namespace mus { |
| +namespace ws { |
| + |
| +// PlatformScreenImpl provides the necessary functionality to configure all |
| +// attached physical displays on non-ozone platforms. |
| +class PlatformScreenImpl : public PlatformScreen { |
| + public: |
| + PlatformScreenImpl(); |
| + ~PlatformScreenImpl() override; |
| + |
| + private: |
| + // PlatformScreen. |
| + void Init() override; |
| + using ConfiguredDisplayCallback = base::Callback<void(int64_t, gfx::Rect)>; |
|
sky
2016/05/04 17:05:44
This is already defined in PlatformScreen.
rjkroege
2016/05/04 22:50:13
Done.
|
| + void ConfigurePhysicalDisplay( |
| + const ConfiguredDisplayCallback& callback) override; |
| + |
| + void FixedSizeScreenConfiguration(ConfiguredDisplayCallback callback); |
|
sky
2016/05/04 17:05:44
const &
rjkroege
2016/05/04 22:50:13
Done.
|
| + |
| + base::WeakPtrFactory<PlatformScreenImpl> weak_ptr_factory_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(PlatformScreenImpl); |
| +}; |
| + |
| +} // namespace ws |
| +} // namespace mus |
| + |
| +#endif // COMPONENTS_MUS_WS_PLATFORM_SCREEN_IMPL_H_ |