OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/tab_contents/tab_contents.h" | 5 #include "content/browser/tab_contents/tab_contents.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 if (!message_is_ok) { | 315 if (!message_is_ok) { |
316 UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_RVD")); | 316 UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_RVD")); |
317 GetRenderProcessHost()->ReceivedBadMessage(); | 317 GetRenderProcessHost()->ReceivedBadMessage(); |
318 } | 318 } |
319 | 319 |
320 return handled; | 320 return handled; |
321 } | 321 } |
322 | 322 |
323 void TabContents::RunFileChooser( | 323 void TabContents::RunFileChooser( |
324 RenderViewHost* render_view_host, | 324 RenderViewHost* render_view_host, |
325 const ViewHostMsg_RunFileChooser_Params& params) { | 325 const content::FileChooserParams& params) { |
326 delegate()->RunFileChooser(this, params); | 326 delegate()->RunFileChooser(this, params); |
327 } | 327 } |
328 | 328 |
329 content::RenderProcessHost* TabContents::GetRenderProcessHost() const { | 329 content::RenderProcessHost* TabContents::GetRenderProcessHost() const { |
330 if (render_manager_.current_host()) | 330 if (render_manager_.current_host()) |
331 return render_manager_.current_host()->process(); | 331 return render_manager_.current_host()->process(); |
332 else | 332 else |
333 return NULL; | 333 return NULL; |
334 } | 334 } |
335 | 335 |
(...skipping 1694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2030 | 2030 |
2031 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { | 2031 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { |
2032 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); | 2032 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); |
2033 rwh_view->SetSize(view()->GetContainerSize()); | 2033 rwh_view->SetSize(view()->GetContainerSize()); |
2034 } | 2034 } |
2035 | 2035 |
2036 bool TabContents::GotResponseToLockMouseRequest(bool allowed) { | 2036 bool TabContents::GotResponseToLockMouseRequest(bool allowed) { |
2037 return render_view_host() ? | 2037 return render_view_host() ? |
2038 render_view_host()->GotResponseToLockMouseRequest(allowed) : false; | 2038 render_view_host()->GotResponseToLockMouseRequest(allowed) : false; |
2039 } | 2039 } |
OLD | NEW |