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

Side by Side Diff: components/contextual_search/browser/contextual_search_js_api_handler.h

Issue 1532743002: [Contextual Search] Use Mojo API for Quick Answers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated a comment. Created 4 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
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 #ifndef COMPONENTS_CONTEXTUAL_SEARCH_BROWSER_CONTEXTUAL_SEARCH_UI_HANDLE_H_ 5 #ifndef COMPONENTS_CONTEXTUAL_SEARCH_BROWSER_CONTEXTUAL_SEARCH_JS_API_HANDLER_H_
6 #define COMPONENTS_CONTEXTUAL_SEARCH_BROWSER_CONTEXTUAL_SEARCH_UI_HANDLE_H_ 6 #define COMPONENTS_CONTEXTUAL_SEARCH_BROWSER_CONTEXTUAL_SEARCH_JS_API_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 11
12 namespace contextual_search { 12 namespace contextual_search {
13 13
14 // Interface that the Contextual Search Renderer API uses to call back to 14 // Interface that the Contextual Search Renderer uses to call back to
15 // the browser. 15 // the browser to handle its JavaScript API.
16 class ContextualSearchUIHandle { 16 class ContextualSearchJsApiHandler {
17 public: 17 public:
18 ContextualSearchUIHandle() {} 18 ContextualSearchJsApiHandler() {}
19 virtual ~ContextualSearchUIHandle() {} 19 virtual ~ContextualSearchJsApiHandler() {}
20 20
21 // Set the caption in the Contextual Search Bar, and indicate whether 21 // Set the caption in the Contextual Search Bar, and indicate whether
22 // the caption provides an answer (such as an actual definition), rather than 22 // the caption provides an answer (such as an actual definition), rather than
23 // just general notification of what kind of answer may be available. 23 // just general notification of what kind of answer may be available.
24 virtual void SetCaption(std::string caption, bool does_answer) = 0; 24 virtual void SetCaption(std::string caption, bool does_answer) = 0;
25 25
26 private: 26 private:
27 DISALLOW_COPY_AND_ASSIGN(ContextualSearchUIHandle); 27 DISALLOW_COPY_AND_ASSIGN(ContextualSearchJsApiHandler);
28 }; 28 };
29 29
30 } // namespace contextual_search 30 } // namespace contextual_search
31 31
32 #endif // COMPONENTS_CONTEXTUAL_SEARCH_BROWSER_CONTEXTUAL_SEARCH_UI_HANDLE_H_ 32 #endif // COMPONENTS_CONTEXTUAL_SEARCH_BROWSER_CONTEXTUAL_SEARCH_JS_API_HANDLER _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698