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 #ifndef CHROME_BROWSER_UI_SEARCH_INSTANT_IPC_SENDER_H_ | 5 #ifndef CHROME_BROWSER_UI_SEARCH_INSTANT_IPC_SENDER_H_ |
6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_IPC_SENDER_H_ | 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_IPC_SENDER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 virtual void SetPopupBounds(const gfx::Rect& bounds) {} | 55 virtual void SetPopupBounds(const gfx::Rect& bounds) {} |
56 | 56 |
57 // Tells the page the bounds of the omnibox (in screen coordinates). This is | 57 // Tells the page the bounds of the omnibox (in screen coordinates). This is |
58 // used by the page to align text or assets properly with the omnibox. | 58 // used by the page to align text or assets properly with the omnibox. |
59 virtual void SetOmniboxBounds(const gfx::Rect& bounds) {} | 59 virtual void SetOmniboxBounds(const gfx::Rect& bounds) {} |
60 | 60 |
61 // Tells the page about the font information. | 61 // Tells the page about the font information. |
62 virtual void SetFontInformation(const string16& omnibox_font_name, | 62 virtual void SetFontInformation(const string16& omnibox_font_name, |
63 size_t omnibox_font_size) {} | 63 size_t omnibox_font_size) {} |
64 | 64 |
| 65 // Tells the page information it needs to display promos. |
| 66 virtual void SetPromoInformation(bool is_app_launcher_enabled) {} |
| 67 |
65 // Tells the page about the available autocomplete results. | 68 // Tells the page about the available autocomplete results. |
66 virtual void SendAutocompleteResults( | 69 virtual void SendAutocompleteResults( |
67 const std::vector<InstantAutocompleteResult>& results) {} | 70 const std::vector<InstantAutocompleteResult>& results) {} |
68 | 71 |
69 // Tells the page that the user pressed Up or Down in the omnibox. |count| is | 72 // Tells the page that the user pressed Up or Down in the omnibox. |count| is |
70 // a repeat count, negative for moving up, positive for moving down. | 73 // a repeat count, negative for moving up, positive for moving down. |
71 virtual void UpOrDownKeyPressed(int count) {} | 74 virtual void UpOrDownKeyPressed(int count) {} |
72 | 75 |
73 // Tells the page that the user pressed Esc key in the omnibox. | 76 // Tells the page that the user pressed Esc key in the omnibox. |
74 virtual void EscKeyPressed() {} | 77 virtual void EscKeyPressed() {} |
(...skipping 28 matching lines...) Expand all Loading... |
103 virtual void ToggleVoiceSearch() {} | 106 virtual void ToggleVoiceSearch() {} |
104 | 107 |
105 protected: | 108 protected: |
106 InstantIPCSender() {} | 109 InstantIPCSender() {} |
107 | 110 |
108 private: | 111 private: |
109 DISALLOW_COPY_AND_ASSIGN(InstantIPCSender); | 112 DISALLOW_COPY_AND_ASSIGN(InstantIPCSender); |
110 }; | 113 }; |
111 | 114 |
112 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_IPC_SENDER_H_ | 115 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_IPC_SENDER_H_ |
OLD | NEW |