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

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

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/renderer/searchbox/searchbox.h ('k') | no next file » | 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 #include "chrome/renderer/searchbox/searchbox.h" 5 #include "chrome/renderer/searchbox/searchbox.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 void SearchBox::CheckIsUserSignedInToChromeAs(const base::string16& identity) { 279 void SearchBox::CheckIsUserSignedInToChromeAs(const base::string16& identity) {
280 instant_service_->ChromeIdentityCheck(page_seq_no_, identity); 280 instant_service_->ChromeIdentityCheck(page_seq_no_, identity);
281 } 281 }
282 282
283 void SearchBox::CheckIsUserSyncingHistory() { 283 void SearchBox::CheckIsUserSyncingHistory() {
284 instant_service_->HistorySyncCheck(page_seq_no_); 284 instant_service_->HistorySyncCheck(page_seq_no_);
285 } 285 }
286 286
287 void SearchBox::DeleteMostVisitedItem( 287 void SearchBox::DeleteMostVisitedItem(
288 InstantRestrictedID most_visited_item_id) { 288 InstantRestrictedID most_visited_item_id) {
289 instant_service_->SearchBoxDeleteMostVisitedItem( 289 instant_service_->DeleteMostVisitedItem(
290 page_seq_no_, GetURLForMostVisitedItem(most_visited_item_id)); 290 page_seq_no_, GetURLForMostVisitedItem(most_visited_item_id));
291 } 291 }
292 292
293 bool SearchBox::GenerateImageURLFromTransientURL(const GURL& transient_url, 293 bool SearchBox::GenerateImageURLFromTransientURL(const GURL& transient_url,
294 ImageSourceType type, 294 ImageSourceType type,
295 GURL* url) const { 295 GURL* url) const {
296 SearchBoxIconURLHelper helper(this); 296 SearchBoxIconURLHelper helper(this);
297 return internal::TranslateIconRestrictedUrl(transient_url, type, helper, url); 297 return internal::TranslateIconRestrictedUrl(transient_url, type, helper, url);
298 } 298 }
299 299
(...skipping 23 matching lines...) Expand all
323 323
324 void SearchBox::StartCapturingKeyStrokes() { 324 void SearchBox::StartCapturingKeyStrokes() {
325 instant_service_->FocusOmnibox(page_seq_no_, OMNIBOX_FOCUS_INVISIBLE); 325 instant_service_->FocusOmnibox(page_seq_no_, OMNIBOX_FOCUS_INVISIBLE);
326 } 326 }
327 327
328 void SearchBox::StopCapturingKeyStrokes() { 328 void SearchBox::StopCapturingKeyStrokes() {
329 instant_service_->FocusOmnibox(page_seq_no_, OMNIBOX_FOCUS_NONE); 329 instant_service_->FocusOmnibox(page_seq_no_, OMNIBOX_FOCUS_NONE);
330 } 330 }
331 331
332 void SearchBox::UndoAllMostVisitedDeletions() { 332 void SearchBox::UndoAllMostVisitedDeletions() {
333 instant_service_->SearchBoxUndoAllMostVisitedDeletions(page_seq_no_); 333 instant_service_->UndoAllMostVisitedDeletions(page_seq_no_);
334 } 334 }
335 335
336 void SearchBox::UndoMostVisitedDeletion( 336 void SearchBox::UndoMostVisitedDeletion(
337 InstantRestrictedID most_visited_item_id) { 337 InstantRestrictedID most_visited_item_id) {
338 instant_service_->SearchBoxUndoMostVisitedDeletion( 338 instant_service_->UndoMostVisitedDeletion(
339 page_seq_no_, GetURLForMostVisitedItem(most_visited_item_id)); 339 page_seq_no_, GetURLForMostVisitedItem(most_visited_item_id));
340 } 340 }
341 341
342 void SearchBox::SetPageSequenceNumber(int page_seq_no) { 342 void SearchBox::SetPageSequenceNumber(int page_seq_no) {
343 page_seq_no_ = page_seq_no; 343 page_seq_no_ = page_seq_no;
344 } 344 }
345 345
346 void SearchBox::ChromeIdentityCheckResult(const base::string16& identity, 346 void SearchBox::ChromeIdentityCheckResult(const base::string16& identity,
347 bool identity_match) { 347 bool identity_match) {
348 extensions_v8::SearchBoxExtension::DispatchChromeIdentityCheckResult( 348 extensions_v8::SearchBoxExtension::DispatchChromeIdentityCheckResult(
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 embedded_search_request_params_ = EmbeddedSearchRequestParams(); 459 embedded_search_request_params_ = EmbeddedSearchRequestParams();
460 suggestion_ = InstantSuggestion(); 460 suggestion_ = InstantSuggestion();
461 is_focused_ = false; 461 is_focused_ = false;
462 is_key_capture_enabled_ = false; 462 is_key_capture_enabled_ = false;
463 theme_info_ = ThemeBackgroundInfo(); 463 theme_info_ = ThemeBackgroundInfo();
464 } 464 }
465 465
466 void SearchBox::OnDestruct() { 466 void SearchBox::OnDestruct() {
467 delete this; 467 delete this;
468 } 468 }
OLDNEW
« no previous file with comments | « chrome/renderer/searchbox/searchbox.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698