OLD | NEW |
---|---|
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 #ifndef CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_ |
6 #define CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_ | 6 #define CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
74 // Tells the page that the user pressed Enter in the omnibox. | 74 // Tells the page that the user pressed Enter in the omnibox. |
75 void Submit(const string16& text); | 75 void Submit(const string16& text); |
76 | 76 |
77 // Tells the page that the user clicked on it. Nothing is being cancelled; the | 77 // Tells the page that the user clicked on it. Nothing is being cancelled; the |
78 // poor choice of name merely reflects the IPC of the same (poor) name. | 78 // poor choice of name merely reflects the IPC of the same (poor) name. |
79 void Cancel(const string16& text); | 79 void Cancel(const string16& text); |
80 | 80 |
81 // Tells the page the bounds of the omnibox dropdown (in screen coordinates). | 81 // Tells the page the bounds of the omnibox dropdown (in screen coordinates). |
82 // This is used by the page to offset the results to avoid them being covered | 82 // This is used by the page to offset the results to avoid them being covered |
83 // by the omnibox dropdown. | 83 // by the omnibox dropdown. |
84 void SetOmniboxBounds(const gfx::Rect& bounds); | 84 void SetPopupBounds(const gfx::Rect& bounds); |
85 | |
86 // Tells the preview page what size start and end margins to use. | |
sreeram
2012/12/05 00:14:46
Nit: preview page -> page
melevin
2012/12/06 23:13:00
Done.
| |
87 void SetMarginSize(const int start, const int end); | |
85 | 88 |
86 // Tells the renderer to determine if the page supports the Instant API, which | 89 // Tells the renderer to determine if the page supports the Instant API, which |
87 // results in a call to InstantSupportDetermined() when the reply is received. | 90 // results in a call to InstantSupportDetermined() when the reply is received. |
88 void DetermineIfPageSupportsInstant(); | 91 void DetermineIfPageSupportsInstant(); |
89 | 92 |
90 // Tells the page about the available autocomplete results. | 93 // Tells the page about the available autocomplete results. |
91 void SendAutocompleteResults( | 94 void SendAutocompleteResults( |
92 const std::vector<InstantAutocompleteResult>& results); | 95 const std::vector<InstantAutocompleteResult>& results); |
93 | 96 |
94 // Tells the page that the user pressed Up or Down in the omnibox. |count| is | 97 // Tells the page that the user pressed Up or Down in the omnibox. |count| is |
(...skipping 28 matching lines...) Expand all Loading... | |
123 InstantShownReason reason, | 126 InstantShownReason reason, |
124 int height, | 127 int height, |
125 InstantSizeUnits units); | 128 InstantSizeUnits units); |
126 | 129 |
127 Delegate* const delegate_; | 130 Delegate* const delegate_; |
128 | 131 |
129 DISALLOW_COPY_AND_ASSIGN(InstantClient); | 132 DISALLOW_COPY_AND_ASSIGN(InstantClient); |
130 }; | 133 }; |
131 | 134 |
132 #endif // CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_ | 135 #endif // CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_ |
OLD | NEW |