OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMMessageEvent.h" | 111 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMMessageEvent.h" |
112 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" | 112 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" |
113 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 113 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
114 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" | 114 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" |
115 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserParams.
h" | 115 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserParams.
h" |
116 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback
s.h" | 116 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback
s.h" |
117 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" | 117 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" |
118 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement
.h" | 118 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement
.h" |
119 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" | 119 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" |
120 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 120 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 121 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHelperPlugin.h" |
121 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" | 122 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" |
122 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" | 123 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" |
123 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 124 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
124 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIntent.h" | 125 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIntent.h" |
125 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIntentRequest.h" | 126 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIntentRequest.h" |
126 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIntentServiceInfo.
h" | 127 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIntentServiceInfo.
h" |
127 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.
h" | 128 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.
h" |
128 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMessagePortChannel
.h" | 129 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMessagePortChannel
.h" |
129 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeList.h" | 130 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeList.h" |
130 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializer.h" | 131 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializer.h" |
(...skipping 1667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1798 const WebString& path, | 1799 const WebString& path, |
1799 WebFileChooserCompletion* chooser_completion) { | 1800 WebFileChooserCompletion* chooser_completion) { |
1800 int id = enumeration_completion_id_++; | 1801 int id = enumeration_completion_id_++; |
1801 enumeration_completions_[id] = chooser_completion; | 1802 enumeration_completions_[id] = chooser_completion; |
1802 return Send(new ViewHostMsg_EnumerateDirectory( | 1803 return Send(new ViewHostMsg_EnumerateDirectory( |
1803 routing_id_, | 1804 routing_id_, |
1804 id, | 1805 id, |
1805 webkit_glue::WebStringToFilePath(path))); | 1806 webkit_glue::WebStringToFilePath(path))); |
1806 } | 1807 } |
1807 | 1808 |
| 1809 void RenderViewImpl::initializeHelperPluginWebFrame( |
| 1810 WebKit::WebHelperPlugin* plugin) { |
| 1811 plugin->initializeFrame(this); |
| 1812 } |
| 1813 |
1808 void RenderViewImpl::didStartLoading() { | 1814 void RenderViewImpl::didStartLoading() { |
1809 if (is_loading_) { | 1815 if (is_loading_) { |
1810 DVLOG(1) << "didStartLoading called while loading"; | 1816 DVLOG(1) << "didStartLoading called while loading"; |
1811 return; | 1817 return; |
1812 } | 1818 } |
1813 | 1819 |
1814 is_loading_ = true; | 1820 is_loading_ = true; |
1815 | 1821 |
1816 Send(new ViewHostMsg_DidStartLoading(routing_id_)); | 1822 Send(new ViewHostMsg_DidStartLoading(routing_id_)); |
1817 | 1823 |
(...skipping 3840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5658 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { | 5664 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { |
5659 return !!RenderThreadImpl::current()->compositor_thread(); | 5665 return !!RenderThreadImpl::current()->compositor_thread(); |
5660 } | 5666 } |
5661 | 5667 |
5662 void RenderViewImpl::OnJavaBridgeInit() { | 5668 void RenderViewImpl::OnJavaBridgeInit() { |
5663 DCHECK(!java_bridge_dispatcher_); | 5669 DCHECK(!java_bridge_dispatcher_); |
5664 #if defined(ENABLE_JAVA_BRIDGE) | 5670 #if defined(ENABLE_JAVA_BRIDGE) |
5665 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); | 5671 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); |
5666 #endif | 5672 #endif |
5667 } | 5673 } |
OLD | NEW |