| 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 BlimpContentsImplAndroid; | 14 class BlimpContentsImpl; |
| 15 class BlimpView; |
| 15 | 16 |
| 16 class BlimpContentsViewAndroid : public BlimpContentsView { | 17 class BlimpContentsViewAndroid : public BlimpContentsView { |
| 17 public: | 18 public: |
| 18 explicit BlimpContentsViewAndroid(BlimpContentsImplAndroid* blimp_contents); | 19 explicit BlimpContentsViewAndroid(BlimpContentsImpl* blimp_contents); |
| 20 ~BlimpContentsViewAndroid() override; |
| 19 | 21 |
| 20 // BlimpContentsView implementation. | 22 // BlimpContentsView implementation. |
| 21 gfx::NativeView GetNativeView() override; | 23 gfx::NativeView GetNativeView() override; |
| 22 | 24 |
| 25 // Returns the JNI-bridge for the Android View for this BlimpContentsView. |
| 26 BlimpView* GetBlimpView(); |
| 27 |
| 23 private: | 28 private: |
| 24 ui::ViewAndroid view_; | 29 std::unique_ptr<ui::ViewAndroid> view_; |
| 30 |
| 31 // The JNI-bridge for the Android View for this BlimpContentsView. |
| 32 std::unique_ptr<BlimpView> blimp_view_; |
| 25 | 33 |
| 26 DISALLOW_COPY_AND_ASSIGN(BlimpContentsViewAndroid); | 34 DISALLOW_COPY_AND_ASSIGN(BlimpContentsViewAndroid); |
| 27 }; | 35 }; |
| 28 | 36 |
| 29 } // namespace client | 37 } // namespace client |
| 30 } // namespace blimp | 38 } // namespace blimp |
| 31 | 39 |
| 32 #endif // BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_VIEW_ANDROID_H_ | 40 #endif // BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_VIEW_ANDROID_H_ |
| OLD | NEW |