| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_VIEW_H_ | 5 #ifndef BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_VIEW_H_ |
| 6 #define BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_VIEW_H_ | 6 #define BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_VIEW_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" |
| 11 #include "ui/gfx/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
| 12 | 13 |
| 14 namespace cc { |
| 15 class Layer; |
| 16 } // namespace cc |
| 17 |
| 13 namespace blimp { | 18 namespace blimp { |
| 14 namespace client { | 19 namespace client { |
| 15 class BlimpContentsImpl; | 20 class BlimpContentsImpl; |
| 16 | 21 |
| 17 class BlimpContentsView { | 22 class BlimpContentsView { |
| 18 public: | 23 public: |
| 19 static std::unique_ptr<BlimpContentsView> Create( | 24 static std::unique_ptr<BlimpContentsView> Create( |
| 20 BlimpContentsImpl* blimp_contents); | 25 BlimpContentsImpl* blimp_contents, |
| 26 scoped_refptr<cc::Layer> contents_layer); |
| 21 | 27 |
| 22 virtual ~BlimpContentsView() {} | 28 virtual ~BlimpContentsView() {} |
| 23 | 29 |
| 24 virtual gfx::NativeView GetNativeView() = 0; | 30 virtual gfx::NativeView GetNativeView() = 0; |
| 25 }; | 31 }; |
| 26 | 32 |
| 27 } // namespace client | 33 } // namespace client |
| 28 } // namespace blimp | 34 } // namespace blimp |
| 29 | 35 |
| 30 #endif // BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_VIEW_H_ | 36 #endif // BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_VIEW_H_ |
| OLD | NEW |