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/browser/web_contents/web_contents_impl.h" | 5 #include "content/browser/web_contents/web_contents_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 using content::DevToolsAgentHost; | 127 using content::DevToolsAgentHost; |
128 using content::DevToolsAgentHostRegistry; | 128 using content::DevToolsAgentHostRegistry; |
129 using content::DevToolsManagerImpl; | 129 using content::DevToolsManagerImpl; |
130 using content::DownloadItem; | 130 using content::DownloadItem; |
131 using content::DownloadManager; | 131 using content::DownloadManager; |
132 using content::DownloadUrlParameters; | 132 using content::DownloadUrlParameters; |
133 using content::GlobalRequestID; | 133 using content::GlobalRequestID; |
134 using content::HostZoomMap; | 134 using content::HostZoomMap; |
135 using content::InterstitialPage; | 135 using content::InterstitialPage; |
136 using content::LoadNotificationDetails; | 136 using content::LoadNotificationDetails; |
| 137 using content::NativeWebKeyboardEvent; |
137 using content::NavigationController; | 138 using content::NavigationController; |
138 using content::NavigationEntry; | 139 using content::NavigationEntry; |
139 using content::NavigationEntryImpl; | 140 using content::NavigationEntryImpl; |
140 using content::OpenURLParams; | 141 using content::OpenURLParams; |
141 using content::RenderViewHost; | 142 using content::RenderViewHost; |
142 using content::RenderViewHostDelegate; | 143 using content::RenderViewHostDelegate; |
143 using content::RenderViewHostImpl; | 144 using content::RenderViewHostImpl; |
144 using content::RenderWidgetHost; | 145 using content::RenderWidgetHost; |
145 using content::RenderWidgetHostView; | 146 using content::RenderWidgetHostView; |
146 using content::RenderWidgetHostViewPort; | 147 using content::RenderWidgetHostViewPort; |
(...skipping 2635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2782 void WebContentsImpl::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { | 2783 void WebContentsImpl::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { |
2783 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); | 2784 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); |
2784 // Can be NULL during tests. | 2785 // Can be NULL during tests. |
2785 if (rwh_view) | 2786 if (rwh_view) |
2786 rwh_view->SetSize(GetView()->GetContainerSize()); | 2787 rwh_view->SetSize(GetView()->GetContainerSize()); |
2787 } | 2788 } |
2788 | 2789 |
2789 RenderViewHostImpl* WebContentsImpl::GetRenderViewHostImpl() { | 2790 RenderViewHostImpl* WebContentsImpl::GetRenderViewHostImpl() { |
2790 return static_cast<RenderViewHostImpl*>(GetRenderViewHost()); | 2791 return static_cast<RenderViewHostImpl*>(GetRenderViewHost()); |
2791 } | 2792 } |
OLD | NEW |