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 #include "components/plugins/renderer/webview_plugin.h" | 5 #include "components/plugins/renderer/webview_plugin.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/metrics/histogram_macros.h" | 12 #include "base/metrics/histogram_macros.h" |
13 #include "base/numerics/safe_conversions.h" | 13 #include "base/numerics/safe_conversions.h" |
14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
15 #include "base/threading/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
16 #include "content/public/common/web_preferences.h" | 16 #include "content/public/common/web_preferences.h" |
17 #include "content/public/renderer/render_view.h" | 17 #include "content/public/renderer/render_view.h" |
18 #include "gin/converter.h" | 18 #include "gin/converter.h" |
19 #include "skia/ext/platform_canvas.h" | 19 #include "skia/ext/platform_canvas.h" |
| 20 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
20 #include "third_party/WebKit/public/platform/WebURL.h" | 21 #include "third_party/WebKit/public/platform/WebURL.h" |
21 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 22 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
22 #include "third_party/WebKit/public/web/WebDocument.h" | 23 #include "third_party/WebKit/public/web/WebDocument.h" |
23 #include "third_party/WebKit/public/web/WebElement.h" | 24 #include "third_party/WebKit/public/web/WebElement.h" |
24 #include "third_party/WebKit/public/web/WebFrameWidget.h" | 25 #include "third_party/WebKit/public/web/WebFrameWidget.h" |
25 #include "third_party/WebKit/public/web/WebInputEvent.h" | |
26 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 26 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
27 #include "third_party/WebKit/public/web/WebPluginContainer.h" | 27 #include "third_party/WebKit/public/web/WebPluginContainer.h" |
28 #include "third_party/WebKit/public/web/WebView.h" | 28 #include "third_party/WebKit/public/web/WebView.h" |
29 | 29 |
30 using blink::WebCanvas; | 30 using blink::WebCanvas; |
31 using blink::WebCursorInfo; | 31 using blink::WebCursorInfo; |
32 using blink::WebDragData; | 32 using blink::WebDragData; |
33 using blink::WebDragOperationsMask; | 33 using blink::WebDragOperationsMask; |
34 using blink::WebFrameWidget; | 34 using blink::WebFrameWidget; |
35 using blink::WebImage; | 35 using blink::WebImage; |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 if (!delegate_) | 310 if (!delegate_) |
311 return; | 311 return; |
312 | 312 |
313 // The delegate may instantiate a new plugin. | 313 // The delegate may instantiate a new plugin. |
314 delegate_->OnUnobscuredRectUpdate(gfx::Rect(unobscured_rect)); | 314 delegate_->OnUnobscuredRectUpdate(gfx::Rect(unobscured_rect)); |
315 // The delegate may have dirtied style and layout of the WebView. | 315 // The delegate may have dirtied style and layout of the WebView. |
316 // See for example the resizePoster function in plugin_poster.html. | 316 // See for example the resizePoster function in plugin_poster.html. |
317 // Run the lifecycle now so that it is clean. | 317 // Run the lifecycle now so that it is clean. |
318 web_view_->updateAllLifecyclePhases(); | 318 web_view_->updateAllLifecyclePhases(); |
319 } | 319 } |
OLD | NEW |