| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 void Hide() override; | 63 void Hide() override; |
| 64 | 64 |
| 65 // Returns the platform specific window that this BlimpContents is showed in. | 65 // Returns the platform specific window that this BlimpContents is showed in. |
| 66 gfx::NativeWindow GetNativeWindow(); | 66 gfx::NativeWindow GetNativeWindow(); |
| 67 | 67 |
| 68 // Check if some observer is in the observer list. | 68 // Check if some observer is in the observer list. |
| 69 bool HasObserver(BlimpContentsObserver* observer); | 69 bool HasObserver(BlimpContentsObserver* observer); |
| 70 | 70 |
| 71 // BlimpNavigationControllerDelegate implementation. | 71 // BlimpNavigationControllerDelegate implementation. |
| 72 void OnNavigationStateChanged() override; | 72 void OnNavigationStateChanged() override; |
| 73 void OnLoadingStateChanged(bool loading) override; |
| 73 | 74 |
| 74 // Pushes the size and scale information to the engine, which will affect the | 75 // Pushes the size and scale information to the engine, which will affect the |
| 75 // web content display area for all tabs. | 76 // web content display area for all tabs. |
| 76 void SetSizeAndScale(const gfx::Size& size, float device_pixel_ratio); | 77 void SetSizeAndScale(const gfx::Size& size, float device_pixel_ratio); |
| 77 | 78 |
| 78 int id() { return id_; } | 79 int id() { return id_; } |
| 79 | 80 |
| 80 // Returns the BlimpContentsView for this BlimpContentsImpl. | 81 // Returns the BlimpContentsView for this BlimpContentsImpl. |
| 81 BlimpContentsView* GetBlimpContentsView(); | 82 BlimpContentsView* GetBlimpContentsView(); |
| 82 | 83 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 // from the BlimpContents. | 116 // from the BlimpContents. |
| 116 std::unique_ptr<BlimpContentsView> blimp_contents_view_; | 117 std::unique_ptr<BlimpContentsView> blimp_contents_view_; |
| 117 | 118 |
| 118 DISALLOW_COPY_AND_ASSIGN(BlimpContentsImpl); | 119 DISALLOW_COPY_AND_ASSIGN(BlimpContentsImpl); |
| 119 }; | 120 }; |
| 120 | 121 |
| 121 } // namespace client | 122 } // namespace client |
| 122 } // namespace blimp | 123 } // namespace blimp |
| 123 | 124 |
| 124 #endif // BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_IMPL_H_ | 125 #endif // BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_IMPL_H_ |
| OLD | NEW |