| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/renderer_host/render_view_host.h" | 5 #include "chrome/browser/renderer_host/render_view_host.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 1365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1376 void RenderViewHost::OnMsgSelectionChanged(const std::string& text) { | 1376 void RenderViewHost::OnMsgSelectionChanged(const std::string& text) { |
| 1377 if (view()) | 1377 if (view()) |
| 1378 view()->SelectionChanged(text); | 1378 view()->SelectionChanged(text); |
| 1379 } | 1379 } |
| 1380 | 1380 |
| 1381 void RenderViewHost::OnMsgRunFileChooser( | 1381 void RenderViewHost::OnMsgRunFileChooser( |
| 1382 const ViewHostMsg_RunFileChooser_Params& params) { | 1382 const ViewHostMsg_RunFileChooser_Params& params) { |
| 1383 RenderViewHostDelegate::FileSelect* file_select_delegate = | 1383 RenderViewHostDelegate::FileSelect* file_select_delegate = |
| 1384 delegate()->GetFileSelectDelegate(); | 1384 delegate()->GetFileSelectDelegate(); |
| 1385 if (file_select_delegate) | 1385 if (file_select_delegate) |
| 1386 file_select_delegate->RunFileChooser(params); | 1386 file_select_delegate->RunFileChooser(this, params); |
| 1387 } | 1387 } |
| 1388 | 1388 |
| 1389 void RenderViewHost::OnMsgRunJavaScriptMessage( | 1389 void RenderViewHost::OnMsgRunJavaScriptMessage( |
| 1390 const std::wstring& message, | 1390 const std::wstring& message, |
| 1391 const std::wstring& default_prompt, | 1391 const std::wstring& default_prompt, |
| 1392 const GURL& frame_url, | 1392 const GURL& frame_url, |
| 1393 const int flags, | 1393 const int flags, |
| 1394 IPC::Message* reply_msg) { | 1394 IPC::Message* reply_msg) { |
| 1395 // While a JS message dialog is showing, tabs in the same process shouldn't | 1395 // While a JS message dialog is showing, tabs in the same process shouldn't |
| 1396 // process input events. | 1396 // process input events. |
| (...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2064 RenderViewHostDelegate::ContentSettings* content_settings_delegate = | 2064 RenderViewHostDelegate::ContentSettings* content_settings_delegate = |
| 2065 delegate_->GetContentSettingsDelegate(); | 2065 delegate_->GetContentSettingsDelegate(); |
| 2066 if (content_settings_delegate) | 2066 if (content_settings_delegate) |
| 2067 content_settings_delegate->OnWebDatabaseAccessed( | 2067 content_settings_delegate->OnWebDatabaseAccessed( |
| 2068 url, name, display_name, estimated_size, blocked_by_policy); | 2068 url, name, display_name, estimated_size, blocked_by_policy); |
| 2069 } | 2069 } |
| 2070 | 2070 |
| 2071 void RenderViewHost::OnSetDisplayingPDFContent() { | 2071 void RenderViewHost::OnSetDisplayingPDFContent() { |
| 2072 delegate_->SetDisplayingPDFContent(); | 2072 delegate_->SetDisplayingPDFContent(); |
| 2073 } | 2073 } |
| OLD | NEW |