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

Side by Side Diff: chrome/browser/android/contextualsearch/resolved_search_term.h

Issue 1354763003: [Contextual Search] Trigger the translation one-box. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated comment about test infrastructure needing to be updated when shifting to new API. Created 5 years, 1 month 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_RESOLVED_SEARCH_TERM_H_
6 #define CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_RESOLVED_SEARCH_TERM_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11
12 // Encapsulates the various parts of a Resolved Search Term, which tells
13 // Contextual Search what to search for and how that term appears in the
14 // surrounding text.
15 struct ResolvedSearchTerm {
16 public:
17 ResolvedSearchTerm(bool is_invalid,
18 int response_code,
19 const std::string& search_term,
20 const std::string& display_text,
21 const std::string& alternate_term,
22 bool prevent_preload,
23 int selection_start_adjust,
24 int selection_end_adjust,
25 const std::string& context_language);
26 ~ResolvedSearchTerm();
27
28 const bool is_invalid;
29 const int response_code;
30 const std::string& search_term;
31 const std::string& display_text;
32 const std::string& alternate_term;
33 const bool prevent_preload;
34 const int selection_start_adjust;
35 const int selection_end_adjust;
36 const std::string& context_language;
37
38 DISALLOW_COPY_AND_ASSIGN(ResolvedSearchTerm);
39 };
40
41 #endif // CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_RESOLVED_SEARCH_TERM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698