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 void KeyCaptureChanged(bool is_key_capture_enabled); | 105 void KeyCaptureChanged(bool is_key_capture_enabled); |
105 | 106 |
106 private: | 107 private: |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 bool is_pointer_down_from_activate_; | 142 bool is_pointer_down_from_activate_; |
142 history::HistoryAddPageArgs last_navigation_; | 143 history::HistoryAddPageArgs last_navigation_; |
143 | 144 |
144 // Used to get notifications about renderers coming and going. | 145 // Used to get notifications about renderers coming and going. |
145 content::NotificationRegistrar registrar_; | 146 content::NotificationRegistrar registrar_; |
146 | 147 |
147 DISALLOW_COPY_AND_ASSIGN(InstantLoader); | 148 DISALLOW_COPY_AND_ASSIGN(InstantLoader); |
148 }; | 149 }; |
149 | 150 |
150 #endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ | 151 #endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ |
OLD | NEW |