| 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_ANDROID_H_ | 5 #ifndef BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_VIEW_ANDROID_H_ |
| 6 #define BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_VIEW_ANDROID_H_ | 6 #define BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_VIEW_ANDROID_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "blimp/client/core/contents/blimp_contents_view.h" | 9 #include "blimp/client/core/contents/blimp_contents_view.h" |
| 10 #include "ui/android/view_android.h" | 10 #include "ui/android/view_android.h" |
| 11 | 11 |
| 12 namespace blimp { | 12 namespace blimp { |
| 13 namespace client { | 13 namespace client { |
| 14 class BlimpContentsImpl; | 14 class BlimpContentsImpl; |
| 15 class BlimpView; | 15 class BlimpView; |
| 16 class ImeHelperDialog; |
| 16 | 17 |
| 17 class BlimpContentsViewAndroid : public BlimpContentsView { | 18 class BlimpContentsViewAndroid : public BlimpContentsView { |
| 18 public: | 19 public: |
| 19 BlimpContentsViewAndroid(BlimpContentsImpl* blimp_contents, | 20 BlimpContentsViewAndroid(BlimpContentsImpl* blimp_contents, |
| 20 scoped_refptr<cc::Layer> contents_layer); | 21 scoped_refptr<cc::Layer> contents_layer); |
| 21 ~BlimpContentsViewAndroid() override; | 22 ~BlimpContentsViewAndroid() override; |
| 22 | 23 |
| 23 // BlimpContentsView implementation. | 24 // BlimpContentsView implementation. |
| 24 gfx::NativeView GetNativeView() override; | 25 gfx::NativeView GetNativeView() override; |
| 26 ImeFeature::Delegate* GetImeDelegate() override; |
| 25 | 27 |
| 26 // Returns the JNI-bridge for the Android View for this BlimpContentsView. | 28 // Returns the JNI-bridge for the Android View for this BlimpContentsView. |
| 27 BlimpView* GetBlimpView(); | 29 BlimpView* GetBlimpView(); |
| 28 | 30 |
| 29 private: | 31 private: |
| 30 std::unique_ptr<ui::ViewAndroid> view_; | 32 std::unique_ptr<ui::ViewAndroid> view_; |
| 31 | 33 |
| 32 // The JNI-bridge for the Android View for this BlimpContentsView. | 34 // The JNI-bridge for the Android View for this BlimpContentsView. |
| 33 std::unique_ptr<BlimpView> blimp_view_; | 35 std::unique_ptr<BlimpView> blimp_view_; |
| 34 | 36 |
| 37 std::unique_ptr<ImeHelperDialog> ime_dialog_; |
| 38 |
| 35 DISALLOW_COPY_AND_ASSIGN(BlimpContentsViewAndroid); | 39 DISALLOW_COPY_AND_ASSIGN(BlimpContentsViewAndroid); |
| 36 }; | 40 }; |
| 37 | 41 |
| 38 } // namespace client | 42 } // namespace client |
| 39 } // namespace blimp | 43 } // namespace blimp |
| 40 | 44 |
| 41 #endif // BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_VIEW_ANDROID_H_ | 45 #endif // BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_VIEW_ANDROID_H_ |
| OLD | NEW |