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

Side by Side Diff: chrome/browser/android/contextualsearch/contextual_search_context.cc

Issue 2211353002: [TTS] Gather surrounding text on Tap before any UX. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split usage of the Tapped text from the SearchAction into a separate CL. Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/android/contextualsearch/contextual_search_context.h" 5 #include "chrome/browser/android/contextualsearch/contextual_search_context.h"
6 6
7 ContextualSearchContext::ContextualSearchContext( 7 ContextualSearchContext::ContextualSearchContext(
8 const std::string& selected_text, 8 const std::string& selected_text,
9 const bool use_resolved_search_term, 9 const bool use_resolved_search_term,
10 const GURL& page_url, 10 const GURL& page_url,
11 const std::string& encoding) 11 const std::string& encoding)
12 : selected_text(selected_text), 12 : use_resolved_search_term(use_resolved_search_term),
13 use_resolved_search_term(use_resolved_search_term),
14 page_url(page_url), 13 page_url(page_url),
15 encoding(encoding) { 14 encoding(encoding),
16 } 15 selected_text(selected_text) {}
16
17 ContextualSearchContext::ContextualSearchContext(
18 const bool use_resolved_search_term,
19 const GURL& page_url,
20 const std::string& encoding)
21 : use_resolved_search_term(use_resolved_search_term),
22 page_url(page_url),
23 encoding(encoding) {}
17 24
18 ContextualSearchContext::~ContextualSearchContext() { 25 ContextualSearchContext::~ContextualSearchContext() {
19 } 26 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698