Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(866)

Side by Side Diff: chrome/browser/renderer_host/render_view_host.cc

Issue 2825051: Add support for a directory file chooser command, which creates a file list b... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1352 matching lines...) Expand 10 before | Expand all | Expand 10 after
1363 view()->SetTooltipText(wrapped_tooltip_text); 1363 view()->SetTooltipText(wrapped_tooltip_text);
1364 } 1364 }
1365 1365
1366 void RenderViewHost::OnMsgSelectionChanged(const std::string& text) { 1366 void RenderViewHost::OnMsgSelectionChanged(const std::string& text) {
1367 if (view()) 1367 if (view())
1368 view()->SelectionChanged(text); 1368 view()->SelectionChanged(text);
1369 } 1369 }
1370 1370
1371 void RenderViewHost::OnMsgRunFileChooser( 1371 void RenderViewHost::OnMsgRunFileChooser(
1372 const ViewHostMsg_RunFileChooser_Params& params) { 1372 const ViewHostMsg_RunFileChooser_Params& params) {
1373 delegate_->RunFileChooser(params); 1373 RenderViewHostDelegate::FileSelect* file_select_delegate =
1374 delegate()->GetFileSelectDelegate();
1375 if (file_select_delegate)
1376 file_select_delegate->RunFileChooser(params);
1374 } 1377 }
1375 1378
1376 void RenderViewHost::OnMsgRunJavaScriptMessage( 1379 void RenderViewHost::OnMsgRunJavaScriptMessage(
1377 const std::wstring& message, 1380 const std::wstring& message,
1378 const std::wstring& default_prompt, 1381 const std::wstring& default_prompt,
1379 const GURL& frame_url, 1382 const GURL& frame_url,
1380 const int flags, 1383 const int flags,
1381 IPC::Message* reply_msg) { 1384 IPC::Message* reply_msg) {
1382 // While a JS message dialog is showing, tabs in the same process shouldn't 1385 // While a JS message dialog is showing, tabs in the same process shouldn't
1383 // process input events. 1386 // process input events.
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
2030 RenderViewHostDelegate::ContentSettings* content_settings_delegate = 2033 RenderViewHostDelegate::ContentSettings* content_settings_delegate =
2031 delegate_->GetContentSettingsDelegate(); 2034 delegate_->GetContentSettingsDelegate();
2032 if (content_settings_delegate) 2035 if (content_settings_delegate)
2033 content_settings_delegate->OnWebDatabaseAccessed( 2036 content_settings_delegate->OnWebDatabaseAccessed(
2034 url, name, display_name, estimated_size, blocked_by_policy); 2037 url, name, display_name, estimated_size, blocked_by_policy);
2035 } 2038 }
2036 2039
2037 void RenderViewHost::OnSetDisplayingPDFContent() { 2040 void RenderViewHost::OnSetDisplayingPDFContent() {
2038 delegate_->SetDisplayingPDFContent(); 2041 delegate_->SetDisplayingPDFContent();
2039 } 2042 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698