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_LOADER_H_ | 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ |
6 #define CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ | 6 #define CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // to the history service had this WebContents not been used for Instant. | 86 // to the history service had this WebContents not been used for Instant. |
87 void DidNavigate(const history::HistoryAddPageArgs& add_page_args); | 87 void DidNavigate(const history::HistoryAddPageArgs& add_page_args); |
88 | 88 |
89 // Calls through to methods of the same name on InstantClient. | 89 // Calls through to methods of the same name on InstantClient. |
90 void Update(const string16& text, | 90 void Update(const string16& text, |
91 size_t selection_start, | 91 size_t selection_start, |
92 size_t selection_end, | 92 size_t selection_end, |
93 bool verbatim); | 93 bool verbatim); |
94 void Submit(const string16& text); | 94 void Submit(const string16& text); |
95 void Cancel(const string16& text); | 95 void Cancel(const string16& text); |
96 void SetOmniboxBounds(const gfx::Rect& bounds); | 96 void SetPopupBounds(const gfx::Rect& bounds); |
| 97 void SetMarginSize(int start, int end); |
97 void SendAutocompleteResults( | 98 void SendAutocompleteResults( |
98 const std::vector<InstantAutocompleteResult>& results); | 99 const std::vector<InstantAutocompleteResult>& results); |
99 void UpOrDownKeyPressed(int count); | 100 void UpOrDownKeyPressed(int count); |
100 void SearchModeChanged(const chrome::search::Mode& mode); | 101 void SearchModeChanged(const chrome::search::Mode& mode); |
101 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info); | 102 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info); |
102 void SendThemeAreaHeight(int height); | 103 void SendThemeAreaHeight(int height); |
103 void SetDisplayInstantResults(bool display_instant_results); | 104 void SetDisplayInstantResults(bool display_instant_results); |
104 | 105 |
105 private: | 106 private: |
106 class WebContentsDelegateImpl; | 107 class WebContentsDelegateImpl; |
(...skipping 29 matching lines...) Expand all Loading... |
136 bool is_pointer_down_from_activate_; | 137 bool is_pointer_down_from_activate_; |
137 history::HistoryAddPageArgs last_navigation_; | 138 history::HistoryAddPageArgs last_navigation_; |
138 | 139 |
139 // Used to get notifications about renderers coming and going. | 140 // Used to get notifications about renderers coming and going. |
140 content::NotificationRegistrar registrar_; | 141 content::NotificationRegistrar registrar_; |
141 | 142 |
142 DISALLOW_COPY_AND_ASSIGN(InstantLoader); | 143 DISALLOW_COPY_AND_ASSIGN(InstantLoader); |
143 }; | 144 }; |
144 | 145 |
145 #endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ | 146 #endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ |
OLD | NEW |