OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |