| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_WEBVIEW_PLUGIN_H_ | 5 #ifndef COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ |
| 6 #define COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ | 6 #define COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 const blink::WebPoint&) override; | 167 const blink::WebPoint&) override; |
| 168 // TODO(ojan): Remove this override and have this class use a non-null | 168 // TODO(ojan): Remove this override and have this class use a non-null |
| 169 // layerTreeView. | 169 // layerTreeView. |
| 170 bool AllowsBrokenNullLayerTreeView() const override; | 170 bool AllowsBrokenNullLayerTreeView() const override; |
| 171 void DidInvalidateRect(const blink::WebRect&) override; | 171 void DidInvalidateRect(const blink::WebRect&) override; |
| 172 void DidChangeCursor(const blink::WebCursorInfo& cursor) override; | 172 void DidChangeCursor(const blink::WebCursorInfo& cursor) override; |
| 173 void ScheduleAnimation() override; | 173 void ScheduleAnimation() override; |
| 174 | 174 |
| 175 // WebFrameClient methods: | 175 // WebFrameClient methods: |
| 176 void DidClearWindowObject() override; | 176 void DidClearWindowObject() override; |
| 177 void FrameDetached(blink::WebLocalFrame*, DetachType) override; |
| 177 | 178 |
| 178 private: | 179 private: |
| 179 WebViewPlugin* plugin_; | 180 WebViewPlugin* plugin_; |
| 180 | 181 |
| 181 // Owned by us, deleted via |close()|. | 182 // Owned by us, deleted via |close()|. |
| 182 blink::WebView* web_view_; | 183 blink::WebView* web_view_; |
| 183 }; | 184 }; |
| 184 WebViewHelper web_view_helper_; | 185 WebViewHelper web_view_helper_; |
| 185 | 186 |
| 186 // Should be invalidated when destroy() is called. | 187 // Should be invalidated when destroy() is called. |
| 187 base::WeakPtrFactory<WebViewPlugin> weak_factory_; | 188 base::WeakPtrFactory<WebViewPlugin> weak_factory_; |
| 188 }; | 189 }; |
| 189 | 190 |
| 190 #endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ | 191 #endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ |
| OLD | NEW |