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

Side by Side Diff: chrome/browser/ui/search/instant_ipc_sender.cc

Issue 18095002: Merge 208596 "Pipe a bit down to the InstantExtended new tab pag..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1547/src/
Patch Set: Created 7 years, 5 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
« no previous file with comments | « chrome/browser/ui/search/instant_ipc_sender.h ('k') | chrome/browser/ui/search/instant_page.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/search/instant_ipc_sender.h" 5 #include "chrome/browser/ui/search/instant_ipc_sender.h"
6 6
7 #include "chrome/common/render_messages.h" 7 #include "chrome/common/render_messages.h"
8 8
9 namespace { 9 namespace {
10 10
(...skipping 28 matching lines...) Expand all
39 Send(new ChromeViewMsg_SearchBoxMarginChange( 39 Send(new ChromeViewMsg_SearchBoxMarginChange(
40 routing_id(), bounds.x(), bounds.width())); 40 routing_id(), bounds.x(), bounds.width()));
41 } 41 }
42 42
43 virtual void SetFontInformation(const string16& omnibox_font_name, 43 virtual void SetFontInformation(const string16& omnibox_font_name,
44 size_t omnibox_font_size) OVERRIDE { 44 size_t omnibox_font_size) OVERRIDE {
45 Send(new ChromeViewMsg_SearchBoxFontInformation( 45 Send(new ChromeViewMsg_SearchBoxFontInformation(
46 routing_id(), omnibox_font_name, omnibox_font_size)); 46 routing_id(), omnibox_font_name, omnibox_font_size));
47 } 47 }
48 48
49 virtual void SetPromoInformation(bool is_app_launcher_enabled) OVERRIDE {
50 Send(new ChromeViewMsg_SearchBoxPromoInformation(
51 routing_id(), is_app_launcher_enabled));
52 }
53
49 virtual void SendAutocompleteResults( 54 virtual void SendAutocompleteResults(
50 const std::vector<InstantAutocompleteResult>& results) OVERRIDE { 55 const std::vector<InstantAutocompleteResult>& results) OVERRIDE {
51 Send(new ChromeViewMsg_SearchBoxAutocompleteResults(routing_id(), results)); 56 Send(new ChromeViewMsg_SearchBoxAutocompleteResults(routing_id(), results));
52 } 57 }
53 58
54 virtual void UpOrDownKeyPressed(int count) OVERRIDE { 59 virtual void UpOrDownKeyPressed(int count) OVERRIDE {
55 Send(new ChromeViewMsg_SearchBoxUpOrDownKeyPressed(routing_id(), count)); 60 Send(new ChromeViewMsg_SearchBoxUpOrDownKeyPressed(routing_id(), count));
56 } 61 }
57 62
58 virtual void EscKeyPressed() OVERRIDE { 63 virtual void EscKeyPressed() OVERRIDE {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 scoped_ptr<InstantIPCSender> sender( 131 scoped_ptr<InstantIPCSender> sender(
127 is_incognito ? 132 is_incognito ?
128 static_cast<InstantIPCSender*>(new IncognitoInstantIPCSenderImpl()) : 133 static_cast<InstantIPCSender*>(new IncognitoInstantIPCSenderImpl()) :
129 static_cast<InstantIPCSender*>(new InstantIPCSenderImpl())); 134 static_cast<InstantIPCSender*>(new InstantIPCSenderImpl()));
130 return sender.Pass(); 135 return sender.Pass();
131 } 136 }
132 137
133 void InstantIPCSender::SetContents(content::WebContents* web_contents) { 138 void InstantIPCSender::SetContents(content::WebContents* web_contents) {
134 Observe(web_contents); 139 Observe(web_contents);
135 } 140 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/instant_ipc_sender.h ('k') | chrome/browser/ui/search/instant_page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698