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

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

Issue 6363001: Makes chrome pass down the length of text as the end of the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add support for selection_end and fix selectionStart Created 9 years, 11 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
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 1766 matching lines...) Expand 10 before | Expand all | Expand 10 after
1777 1777
1778 void RenderViewHost::SearchBoxCancel() { 1778 void RenderViewHost::SearchBoxCancel() {
1779 Send(new ViewMsg_SearchBoxCancel(routing_id())); 1779 Send(new ViewMsg_SearchBoxCancel(routing_id()));
1780 } 1780 }
1781 1781
1782 void RenderViewHost::SearchBoxResize(const gfx::Rect& search_box_bounds) { 1782 void RenderViewHost::SearchBoxResize(const gfx::Rect& search_box_bounds) {
1783 Send(new ViewMsg_SearchBoxResize(routing_id(), search_box_bounds)); 1783 Send(new ViewMsg_SearchBoxResize(routing_id(), search_box_bounds));
1784 } 1784 }
1785 1785
1786 void RenderViewHost::DetermineIfPageSupportsInstant(const string16& value, 1786 void RenderViewHost::DetermineIfPageSupportsInstant(const string16& value,
1787 bool verbatim) { 1787 bool verbatim,
1788 Send(new ViewMsg_DetermineIfPageSupportsInstant(routing_id(), value, 1788 int selection_start,
1789 verbatim)); 1789 int selection_end) {
1790 Send(new ViewMsg_DetermineIfPageSupportsInstant(
1791 routing_id(), value, verbatim, selection_start, selection_end));
1790 } 1792 }
1791 1793
1792 void RenderViewHost::FilterURL(ChildProcessSecurityPolicy* policy, 1794 void RenderViewHost::FilterURL(ChildProcessSecurityPolicy* policy,
1793 int renderer_id, 1795 int renderer_id,
1794 GURL* url) { 1796 GURL* url) {
1795 if (!url->is_valid()) 1797 if (!url->is_valid())
1796 return; // We don't need to block invalid URLs. 1798 return; // We don't need to block invalid URLs.
1797 1799
1798 if (url->SchemeIs(chrome::kAboutScheme)) { 1800 if (url->SchemeIs(chrome::kAboutScheme)) {
1799 // The renderer treats all URLs in the about: scheme as being about:blank. 1801 // The renderer treats all URLs in the about: scheme as being about:blank.
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.h ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698