Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_PLUGINS_RENDERER_LOADABLE_PLUGIN_PLACEHOLDER_H_ | 5 #ifndef COMPONENTS_PLUGINS_RENDERER_LOADABLE_PLUGIN_PLACEHOLDER_H_ |
| 6 #define COMPONENTS_PLUGINS_RENDERER_LOADABLE_PLUGIN_PLACEHOLDER_H_ | 6 #define COMPONENTS_PLUGINS_RENDERER_LOADABLE_PLUGIN_PLACEHOLDER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 84 | 84 |
| 85 // True if the power saver heuristic has already been run on this content. | 85 // True if the power saver heuristic has already been run on this content. |
| 86 bool heuristic_run_before_; | 86 bool heuristic_run_before_; |
| 87 | 87 |
| 88 private: | 88 private: |
| 89 // WebViewPlugin::Delegate methods: | 89 // WebViewPlugin::Delegate methods: |
| 90 void PluginDestroyed() override; | 90 void PluginDestroyed() override; |
| 91 v8::Local<v8::Object> GetV8ScriptableObject( | 91 v8::Local<v8::Object> GetV8ScriptableObject( |
| 92 v8::Isolate* isolate) const override; | 92 v8::Isolate* isolate) const override; |
| 93 void OnUnobscuredRectUpdate(const gfx::Rect& unobscured_rect) override; | 93 void OnUnobscuredRectUpdate(const gfx::Rect& unobscured_rect) override; |
| 94 | 94 |
|
Bernhard Bauer
2017/03/30 09:08:28
Nit: leave out the empty line here; the whole bloc
George Joseph
2017/03/30 22:58:03
Done.
| |
| 95 bool isErrorPlaceholder() override; | |
| 96 | |
| 95 // RenderFrameObserver methods: | 97 // RenderFrameObserver methods: |
| 96 void WasShown() override; | 98 void WasShown() override; |
| 97 | 99 |
| 98 void UpdateMessage(); | 100 void UpdateMessage(); |
| 99 | 101 |
| 100 bool LoadingBlocked() const; | 102 bool LoadingBlocked() const; |
| 101 | 103 |
| 102 // Plugin creation is embedder-specific. | 104 // Plugin creation is embedder-specific. |
| 103 virtual blink::WebPlugin* CreatePlugin() = 0; | 105 virtual blink::WebPlugin* CreatePlugin() = 0; |
| 104 | 106 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 139 gfx::Rect unobscured_rect_; | 141 gfx::Rect unobscured_rect_; |
| 140 | 142 |
| 141 base::WeakPtrFactory<LoadablePluginPlaceholder> weak_factory_; | 143 base::WeakPtrFactory<LoadablePluginPlaceholder> weak_factory_; |
| 142 | 144 |
| 143 DISALLOW_COPY_AND_ASSIGN(LoadablePluginPlaceholder); | 145 DISALLOW_COPY_AND_ASSIGN(LoadablePluginPlaceholder); |
| 144 }; | 146 }; |
| 145 | 147 |
| 146 } // namespace plugins | 148 } // namespace plugins |
| 147 | 149 |
| 148 #endif // COMPONENTS_PLUGINS_RENDERER_LOADABLE_PLUGIN_PLACEHOLDER_H_ | 150 #endif // COMPONENTS_PLUGINS_RENDERER_LOADABLE_PLUGIN_PLACEHOLDER_H_ |
| OLD | NEW |