Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Side by Side Diff: blimp/client/core/contents/blimp_contents_impl.h

Issue 2300103004: Expose loading state from Blimp to Tab (Closed)
Patch Set: Added test! Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698