| 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/compositor/blimp_compositor_manager.h" | 10 #include "blimp/client/core/compositor/blimp_compositor_manager.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // BlimpCompositor based on the engine state. | 92 // BlimpCompositor based on the engine state. |
| 93 BlimpCompositorManager compositor_manager_; | 93 BlimpCompositorManager compositor_manager_; |
| 94 | 94 |
| 95 // A list of all the observers of this BlimpContentsImpl. | 95 // A list of all the observers of this BlimpContentsImpl. |
| 96 base::ObserverList<BlimpContentsObserver> observers_; | 96 base::ObserverList<BlimpContentsObserver> observers_; |
| 97 | 97 |
| 98 // The id is assigned during contents creation. It is used by | 98 // The id is assigned during contents creation. It is used by |
| 99 // BlimpContentsManager to control the life time of the its observer. | 99 // BlimpContentsManager to control the life time of the its observer. |
| 100 int id_; | 100 int id_; |
| 101 | 101 |
| 102 // Handles the text input for web forms. |
| 103 ImeFeature* ime_feature_; |
| 104 |
| 102 // The platform specific window that this BlimpContents is showed in. | 105 // The platform specific window that this BlimpContents is showed in. |
| 103 gfx::NativeWindow window_; | 106 gfx::NativeWindow window_; |
| 104 | 107 |
| 105 // The tab control feature through which the BlimpContentsImpl is able to | 108 // The tab control feature through which the BlimpContentsImpl is able to |
| 106 // set size and scale. | 109 // set size and scale. |
| 107 // TODO(mlliu): in the long term, we want to put size and scale in a different | 110 // TODO(mlliu): in the long term, we want to put size and scale in a different |
| 108 // feature instead of tab control feature. crbug.com/639154. | 111 // feature instead of tab control feature. crbug.com/639154. |
| 109 TabControlFeature* tab_control_feature_ = nullptr; | 112 TabControlFeature* tab_control_feature_ = nullptr; |
| 110 | 113 |
| 111 // The BlimpContentsView abstracts the platform specific view system details | 114 // The BlimpContentsView abstracts the platform specific view system details |
| 112 // from the BlimpContents. | 115 // from the BlimpContents. |
| 113 std::unique_ptr<BlimpContentsView> blimp_contents_view_; | 116 std::unique_ptr<BlimpContentsView> blimp_contents_view_; |
| 114 | 117 |
| 115 DISALLOW_COPY_AND_ASSIGN(BlimpContentsImpl); | 118 DISALLOW_COPY_AND_ASSIGN(BlimpContentsImpl); |
| 116 }; | 119 }; |
| 117 | 120 |
| 118 } // namespace client | 121 } // namespace client |
| 119 } // namespace blimp | 122 } // namespace blimp |
| 120 | 123 |
| 121 #endif // BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_IMPL_H_ | 124 #endif // BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_IMPL_H_ |
| OLD | NEW |