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

Side by Side Diff: chrome/browser/ui/webui/options2/home_page_overlay_handler.cc

Issue 10857071: Options: Rename options2 namespace to options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/browser/ui/webui/options2/home_page_overlay_handler.h" 5 #include "chrome/browser/ui/webui/options2/home_page_overlay_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/autocomplete/autocomplete_controller.h" 10 #include "chrome/browser/autocomplete/autocomplete_controller.h"
11 #include "chrome/browser/autocomplete/autocomplete_input.h" 11 #include "chrome/browser/autocomplete/autocomplete_input.h"
12 #include "chrome/browser/autocomplete/autocomplete_result.h" 12 #include "chrome/browser/autocomplete/autocomplete_result.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "content/public/browser/web_ui.h" 14 #include "content/public/browser/web_ui.h"
15 #include "grit/generated_resources.h" 15 #include "grit/generated_resources.h"
16 #include "ui/base/l10n/l10n_util.h" 16 #include "ui/base/l10n/l10n_util.h"
17 17
18 namespace options2 { 18 namespace options {
19 19
20 HomePageOverlayHandler::HomePageOverlayHandler() { 20 HomePageOverlayHandler::HomePageOverlayHandler() {
21 } 21 }
22 22
23 HomePageOverlayHandler::~HomePageOverlayHandler() { 23 HomePageOverlayHandler::~HomePageOverlayHandler() {
24 } 24 }
25 25
26 void HomePageOverlayHandler::RegisterMessages() { 26 void HomePageOverlayHandler::RegisterMessages() {
27 web_ui()->RegisterMessageCallback( 27 web_ui()->RegisterMessageCallback(
28 "requestAutocompleteSuggestionsForHomePage", 28 "requestAutocompleteSuggestionsForHomePage",
(...skipping 23 matching lines...) Expand all
52 } 52 }
53 53
54 void HomePageOverlayHandler::OnResultChanged(bool default_match_changed) { 54 void HomePageOverlayHandler::OnResultChanged(bool default_match_changed) {
55 const AutocompleteResult& result = autocomplete_controller_->result(); 55 const AutocompleteResult& result = autocomplete_controller_->result();
56 base::ListValue suggestions; 56 base::ListValue suggestions;
57 OptionsUI::ProcessAutocompleteSuggestions(result, &suggestions); 57 OptionsUI::ProcessAutocompleteSuggestions(result, &suggestions);
58 web_ui()->CallJavascriptFunction( 58 web_ui()->CallJavascriptFunction(
59 "HomePageOverlay.updateAutocompleteSuggestions", suggestions); 59 "HomePageOverlay.updateAutocompleteSuggestions", suggestions);
60 } 60 }
61 61
62 } // namespace options2 62 } // namespace options
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options2/home_page_overlay_handler.h ('k') | chrome/browser/ui/webui/options2/import_data_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698