| 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_IMPL_H_ | 5 #ifndef BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_IMPL_H_ |
| 6 #define BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_IMPL_H_ | 6 #define BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
| 10 #include "blimp/client/core/contents/blimp_navigation_controller_delegate.h" | 10 #include "blimp/client/core/contents/blimp_navigation_controller_delegate.h" |
| 11 #include "blimp/client/core/contents/blimp_navigation_controller_impl.h" | 11 #include "blimp/client/core/contents/blimp_navigation_controller_impl.h" |
| 12 #include "blimp/client/public/contents/blimp_contents.h" | 12 #include "blimp/client/public/contents/blimp_contents.h" |
| 13 #include "ui/gfx/geometry/size.h" | 13 #include "ui/gfx/geometry/size.h" |
| 14 #include "url/gurl.h" | 14 #include "url/gurl.h" |
| 15 | 15 |
| 16 #if defined(OS_ANDROID) | 16 #if defined(OS_ANDROID) |
| 17 #include "base/android/scoped_java_ref.h" | 17 #include "base/android/scoped_java_ref.h" |
| 18 #endif // defined(OS_ANDROID) | 18 #endif // defined(OS_ANDROID) |
| 19 | 19 |
| 20 namespace blimp { | 20 namespace blimp { |
| 21 namespace client { | 21 namespace client { |
| 22 | 22 |
| 23 #if defined(OS_ANDROID) | 23 #if defined(OS_ANDROID) |
| 24 class BlimpContentsImplAndroid; | 24 class BlimpContentsImplAndroid; |
| 25 #endif // defined(OS_ANDROID) | 25 #endif // defined(OS_ANDROID) |
| 26 | 26 |
| 27 class BlimpContentsObserver; | 27 class BlimpContentsObserver; |
| 28 class BlimpNavigationController; | 28 class BlimpNavigationController; |
| 29 class ImeFeature; |
| 30 class NavigationFeature; |
| 29 class TabControlFeature; | 31 class TabControlFeature; |
| 30 | 32 |
| 31 class BlimpContentsImpl : public BlimpContents, | 33 class BlimpContentsImpl : public BlimpContents, |
| 32 public BlimpNavigationControllerDelegate { | 34 public BlimpNavigationControllerDelegate { |
| 33 public: | 35 public: |
| 34 explicit BlimpContentsImpl(int id, TabControlFeature* tab_control_feature); | 36 // Ownership of the features remains with the caller. |
| 37 explicit BlimpContentsImpl(int id, |
| 38 ImeFeature* ime_feature, |
| 39 NavigationFeature* navigation_feature, |
| 40 TabControlFeature* tab_control_feature); |
| 35 ~BlimpContentsImpl() override; | 41 ~BlimpContentsImpl() override; |
| 36 | 42 |
| 37 #if defined(OS_ANDROID) | 43 #if defined(OS_ANDROID) |
| 38 base::android::ScopedJavaLocalRef<jobject> GetJavaObject() override; | 44 base::android::ScopedJavaLocalRef<jobject> GetJavaObject() override; |
| 39 BlimpContentsImplAndroid* GetBlimpContentsImplAndroid(); | 45 BlimpContentsImplAndroid* GetBlimpContentsImplAndroid(); |
| 40 #endif // defined(OS_ANDROID) | 46 #endif // defined(OS_ANDROID) |
| 41 | 47 |
| 42 // BlimpContents implementation. | 48 // BlimpContents implementation. |
| 43 BlimpNavigationControllerImpl& GetNavigationController() override; | 49 BlimpNavigationControllerImpl& GetNavigationController() override; |
| 44 void AddObserver(BlimpContentsObserver* observer) override; | 50 void AddObserver(BlimpContentsObserver* observer) override; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 73 // feature instead of tab control feature. crbug.com/639154. | 79 // feature instead of tab control feature. crbug.com/639154. |
| 74 TabControlFeature* tab_control_feature_ = nullptr; | 80 TabControlFeature* tab_control_feature_ = nullptr; |
| 75 | 81 |
| 76 DISALLOW_COPY_AND_ASSIGN(BlimpContentsImpl); | 82 DISALLOW_COPY_AND_ASSIGN(BlimpContentsImpl); |
| 77 }; | 83 }; |
| 78 | 84 |
| 79 } // namespace client | 85 } // namespace client |
| 80 } // namespace blimp | 86 } // namespace blimp |
| 81 | 87 |
| 82 #endif // BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_IMPL_H_ | 88 #endif // BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_IMPL_H_ |
| OLD | NEW |