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

Side by Side Diff: chrome/renderer/searchbox/searchbox.h

Issue 2685863002: NTP: Rename mojo methods, fixing a TODO (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « chrome/common/instant.mojom ('k') | chrome/renderer/searchbox/searchbox.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ 5 #ifndef CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
6 #define CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ 6 #define CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // Sends LogMostVisitedNavigation to the browser. 60 // Sends LogMostVisitedNavigation to the browser.
61 void LogMostVisitedNavigation(int position, 61 void LogMostVisitedNavigation(int position,
62 ntp_tiles::NTPTileSource tile_source); 62 ntp_tiles::NTPTileSource tile_source);
63 63
64 // Sends ChromeIdentityCheck to the browser. 64 // Sends ChromeIdentityCheck to the browser.
65 void CheckIsUserSignedInToChromeAs(const base::string16& identity); 65 void CheckIsUserSignedInToChromeAs(const base::string16& identity);
66 66
67 // Sends HistorySyncCheck to the browser. 67 // Sends HistorySyncCheck to the browser.
68 void CheckIsUserSyncingHistory(); 68 void CheckIsUserSyncingHistory();
69 69
70 // Sends SearchBoxDeleteMostVisitedItem to the browser. 70 // Sends DeleteMostVisitedItem to the browser.
71 void DeleteMostVisitedItem(InstantRestrictedID most_visited_item_id); 71 void DeleteMostVisitedItem(InstantRestrictedID most_visited_item_id);
72 72
73 // Generates the image URL of |type| for the most visited item specified in 73 // Generates the image URL of |type| for the most visited item specified in
74 // |transient_url|. If |transient_url| is valid, |url| with a translated URL 74 // |transient_url|. If |transient_url| is valid, |url| with a translated URL
75 // and returns true. Otherwise it depends on |type|: 75 // and returns true. Otherwise it depends on |type|:
76 // - FAVICON: Returns true and renders an URL to display the default favicon. 76 // - FAVICON: Returns true and renders an URL to display the default favicon.
77 // - LARGE_ICON and FALLBACK_ICON: Returns false. 77 // - LARGE_ICON and FALLBACK_ICON: Returns false.
78 // 78 //
79 // For |type| == FAVICON, valid forms of |transient_url|: 79 // For |type| == FAVICON, valid forms of |transient_url|:
80 // chrome-search://favicon/<view_id>/<restricted_id> 80 // chrome-search://favicon/<view_id>/<restricted_id>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 const ThemeBackgroundInfo& GetThemeBackgroundInfo(); 115 const ThemeBackgroundInfo& GetThemeBackgroundInfo();
116 const EmbeddedSearchRequestParams& GetEmbeddedSearchRequestParams(); 116 const EmbeddedSearchRequestParams& GetEmbeddedSearchRequestParams();
117 117
118 // Sends ChromeViewHostMsg_StartCapturingKeyStrokes to the browser. 118 // Sends ChromeViewHostMsg_StartCapturingKeyStrokes to the browser.
119 void StartCapturingKeyStrokes(); 119 void StartCapturingKeyStrokes();
120 120
121 // Sends ChromeViewHostMsg_StopCapturingKeyStrokes to the browser. 121 // Sends ChromeViewHostMsg_StopCapturingKeyStrokes to the browser.
122 void StopCapturingKeyStrokes(); 122 void StopCapturingKeyStrokes();
123 123
124 // Sends SearchBoxUndoAllMostVisitedDeletions to the browser. 124 // Sends UndoAllMostVisitedDeletions to the browser.
125 void UndoAllMostVisitedDeletions(); 125 void UndoAllMostVisitedDeletions();
126 126
127 // Sends SearchBoxUndoMostVisitedDeletion to the browser. 127 // Sends UndoMostVisitedDeletion to the browser.
128 void UndoMostVisitedDeletion(InstantRestrictedID most_visited_item_id); 128 void UndoMostVisitedDeletion(InstantRestrictedID most_visited_item_id);
129 129
130 bool is_focused() const { return is_focused_; } 130 bool is_focused() const { return is_focused_; }
131 bool is_input_in_progress() const { return is_input_in_progress_; } 131 bool is_input_in_progress() const { return is_input_in_progress_; }
132 bool is_key_capture_enabled() const { return is_key_capture_enabled_; } 132 bool is_key_capture_enabled() const { return is_key_capture_enabled_; }
133 const base::string16& query() const { return query_; } 133 const base::string16& query() const { return query_; }
134 const InstantSuggestion& suggestion() const { return suggestion_; } 134 const InstantSuggestion& suggestion() const { return suggestion_; }
135 135
136 private: 136 private:
137 // Overridden from content::RenderFrameObserver: 137 // Overridden from content::RenderFrameObserver:
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 base::string16 query_; 173 base::string16 query_;
174 EmbeddedSearchRequestParams embedded_search_request_params_; 174 EmbeddedSearchRequestParams embedded_search_request_params_;
175 InstantSuggestion suggestion_; 175 InstantSuggestion suggestion_;
176 chrome::mojom::InstantAssociatedPtr instant_service_; 176 chrome::mojom::InstantAssociatedPtr instant_service_;
177 mojo::AssociatedBinding<chrome::mojom::SearchBox> binding_; 177 mojo::AssociatedBinding<chrome::mojom::SearchBox> binding_;
178 178
179 DISALLOW_COPY_AND_ASSIGN(SearchBox); 179 DISALLOW_COPY_AND_ASSIGN(SearchBox);
180 }; 180 };
181 181
182 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ 182 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
OLDNEW
« no previous file with comments | « chrome/common/instant.mojom ('k') | chrome/renderer/searchbox/searchbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698