| 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 "base/memory/ref_counted.h" |
| 12 #include "blimp/client/core/contents/ime_feature.h" |
| 12 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
| 13 | 14 |
| 14 namespace cc { | 15 namespace cc { |
| 15 class Layer; | 16 class Layer; |
| 16 } // namespace cc | 17 } // namespace cc |
| 17 | 18 |
| 18 namespace blimp { | 19 namespace blimp { |
| 19 namespace client { | 20 namespace client { |
| 20 class BlimpContentsImpl; | 21 class BlimpContentsImpl; |
| 21 | 22 |
| 22 class BlimpContentsView { | 23 class BlimpContentsView { |
| 23 public: | 24 public: |
| 24 static std::unique_ptr<BlimpContentsView> Create( | 25 static std::unique_ptr<BlimpContentsView> Create( |
| 25 BlimpContentsImpl* blimp_contents, | 26 BlimpContentsImpl* blimp_contents, |
| 26 scoped_refptr<cc::Layer> contents_layer); | 27 scoped_refptr<cc::Layer> contents_layer); |
| 27 | 28 |
| 28 virtual ~BlimpContentsView() {} | 29 virtual ~BlimpContentsView() {} |
| 29 | 30 |
| 30 virtual gfx::NativeView GetNativeView() = 0; | 31 virtual gfx::NativeView GetNativeView() = 0; |
| 32 virtual ImeFeature::Delegate* GetImeDelegate() = 0; |
| 31 }; | 33 }; |
| 32 | 34 |
| 33 } // namespace client | 35 } // namespace client |
| 34 } // namespace blimp | 36 } // namespace blimp |
| 35 | 37 |
| 36 #endif // BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_VIEW_H_ | 38 #endif // BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_VIEW_H_ |
| OLD | NEW |