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 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1295 } else if (text_direction_hint == WebKit::WebTextDirectionRightToLeft && | 1295 } else if (text_direction_hint == WebKit::WebTextDirectionRightToLeft && |
1296 !base::i18n::IsRTL()) { | 1296 !base::i18n::IsRTL()) { |
1297 // Force the tooltip to have RTL directionality. | 1297 // Force the tooltip to have RTL directionality. |
1298 base::i18n::WrapStringWithRTLFormatting(&wrapped_tooltip_text); | 1298 base::i18n::WrapStringWithRTLFormatting(&wrapped_tooltip_text); |
1299 } | 1299 } |
1300 } | 1300 } |
1301 if (view()) | 1301 if (view()) |
1302 view()->SetTooltipText(wrapped_tooltip_text); | 1302 view()->SetTooltipText(wrapped_tooltip_text); |
1303 } | 1303 } |
1304 | 1304 |
1305 void RenderViewHost::OnMsgSelectionChanged(const std::string& text) { | 1305 void RenderViewHost::OnMsgSelectionChanged(const std::string& text, |
| 1306 int start, |
| 1307 int end) { |
1306 if (view()) | 1308 if (view()) |
1307 view()->SelectionChanged(text); | 1309 view()->SelectionChanged(text, start, end); |
1308 } | 1310 } |
1309 | 1311 |
1310 void RenderViewHost::OnMsgRunFileChooser( | 1312 void RenderViewHost::OnMsgRunFileChooser( |
1311 const ViewHostMsg_RunFileChooser_Params& params) { | 1313 const ViewHostMsg_RunFileChooser_Params& params) { |
1312 RenderViewHostDelegate::FileSelect* file_select_delegate = | 1314 RenderViewHostDelegate::FileSelect* file_select_delegate = |
1313 delegate()->GetFileSelectDelegate(); | 1315 delegate()->GetFileSelectDelegate(); |
1314 if (file_select_delegate) | 1316 if (file_select_delegate) |
1315 file_select_delegate->RunFileChooser(this, params); | 1317 file_select_delegate->RunFileChooser(this, params); |
1316 } | 1318 } |
1317 | 1319 |
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2010 if (printer_query.get()) { | 2012 if (printer_query.get()) { |
2011 BrowserThread::PostTask( | 2013 BrowserThread::PostTask( |
2012 BrowserThread::IO, FROM_HERE, | 2014 BrowserThread::IO, FROM_HERE, |
2013 NewRunnableMethod(printer_query.get(), | 2015 NewRunnableMethod(printer_query.get(), |
2014 &printing::PrinterQuery::StopWorker)); | 2016 &printing::PrinterQuery::StopWorker)); |
2015 } | 2017 } |
2016 | 2018 |
2017 // Send the printingDone msg for now. | 2019 // Send the printingDone msg for now. |
2018 Send(new ViewMsg_PrintingDone(routing_id(), params.document_cookie, true)); | 2020 Send(new ViewMsg_PrintingDone(routing_id(), params.document_cookie, true)); |
2019 } | 2021 } |
OLD | NEW |