| 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" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 class BlimpNavigationController; | 28 class BlimpNavigationController; |
| 29 class TabControlFeature; | 29 class TabControlFeature; |
| 30 | 30 |
| 31 class BlimpContentsImpl : public BlimpContents, | 31 class BlimpContentsImpl : public BlimpContents, |
| 32 public BlimpNavigationControllerDelegate { | 32 public BlimpNavigationControllerDelegate { |
| 33 public: | 33 public: |
| 34 explicit BlimpContentsImpl(int id, TabControlFeature* tab_control_feature); | 34 explicit BlimpContentsImpl(int id, TabControlFeature* tab_control_feature); |
| 35 ~BlimpContentsImpl() override; | 35 ~BlimpContentsImpl() override; |
| 36 | 36 |
| 37 #if defined(OS_ANDROID) | 37 #if defined(OS_ANDROID) |
| 38 base::android::ScopedJavaLocalRef<jobject> GetJavaBlimpContentsImpl(); | 38 base::android::ScopedJavaLocalRef<jobject> GetJavaObject() override; |
| 39 BlimpContentsImplAndroid* GetBlimpContentsImplAndroid(); | 39 BlimpContentsImplAndroid* GetBlimpContentsImplAndroid(); |
| 40 #endif // defined(OS_ANDROID) | 40 #endif // defined(OS_ANDROID) |
| 41 | 41 |
| 42 // BlimpContents implementation. | 42 // BlimpContents implementation. |
| 43 BlimpNavigationControllerImpl& GetNavigationController() override; | 43 BlimpNavigationControllerImpl& GetNavigationController() override; |
| 44 void AddObserver(BlimpContentsObserver* observer) override; | 44 void AddObserver(BlimpContentsObserver* observer) override; |
| 45 void RemoveObserver(BlimpContentsObserver* observer) override; | 45 void RemoveObserver(BlimpContentsObserver* observer) override; |
| 46 | 46 |
| 47 // Check if some observer is in the observer list. | 47 // Check if some observer is in the observer list. |
| 48 bool HasObserver(BlimpContentsObserver* observer); | 48 bool HasObserver(BlimpContentsObserver* observer); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 73 // feature instead of tab control feature. crbug.com/639154. | 73 // feature instead of tab control feature. crbug.com/639154. |
| 74 TabControlFeature* tab_control_feature_ = nullptr; | 74 TabControlFeature* tab_control_feature_ = nullptr; |
| 75 | 75 |
| 76 DISALLOW_COPY_AND_ASSIGN(BlimpContentsImpl); | 76 DISALLOW_COPY_AND_ASSIGN(BlimpContentsImpl); |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace client | 79 } // namespace client |
| 80 } // namespace blimp | 80 } // namespace blimp |
| 81 | 81 |
| 82 #endif // BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_IMPL_H_ | 82 #endif // BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_IMPL_H_ |
| OLD | NEW |