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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 SetOmniboxBounds(const gfx::Rect& bounds); |
97 void SendAutocompleteResults( | 97 void SendAutocompleteResults( |
98 const std::vector<InstantAutocompleteResult>& results); | 98 const std::vector<InstantAutocompleteResult>& results); |
99 void UpOrDownKeyPressed(int count); | 99 void UpOrDownKeyPressed(int count); |
100 void SearchModeChanged(const chrome::search::Mode& mode); | 100 void SearchModeChanged(const chrome::search::Mode& mode); |
101 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info); | 101 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info); |
102 void SendThemeAreaHeight(int height); | 102 void SendThemeAreaHeight(int height); |
103 void SetDisplayInstantResults(bool display_instant_results); | 103 void SetDisplayInstantResults(bool display_instant_results); |
| 104 void KeyCaptureChanged(bool is_key_capture_enabled); |
104 | 105 |
105 private: | 106 private: |
106 class WebContentsDelegateImpl; | 107 class WebContentsDelegateImpl; |
107 | 108 |
108 // Overridden from InstantClient::Delegate: | 109 // Overridden from InstantClient::Delegate: |
109 virtual void SetSuggestions( | 110 virtual void SetSuggestions( |
110 const std::vector<InstantSuggestion>& suggestions) OVERRIDE; | 111 const std::vector<InstantSuggestion>& suggestions) OVERRIDE; |
111 virtual void InstantSupportDetermined(bool supports_instant) OVERRIDE; | 112 virtual void InstantSupportDetermined(bool supports_instant) OVERRIDE; |
112 virtual void ShowInstantPreview(InstantShownReason reason, | 113 virtual void ShowInstantPreview(InstantShownReason reason, |
113 int height, | 114 int height, |
(...skipping 24 matching lines...) Expand all Loading... |
138 bool is_pointer_down_from_activate_; | 139 bool is_pointer_down_from_activate_; |
139 history::HistoryAddPageArgs last_navigation_; | 140 history::HistoryAddPageArgs last_navigation_; |
140 | 141 |
141 // Used to get notifications about renderers coming and going. | 142 // Used to get notifications about renderers coming and going. |
142 content::NotificationRegistrar registrar_; | 143 content::NotificationRegistrar registrar_; |
143 | 144 |
144 DISALLOW_COPY_AND_ASSIGN(InstantLoader); | 145 DISALLOW_COPY_AND_ASSIGN(InstantLoader); |
145 }; | 146 }; |
146 | 147 |
147 #endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ | 148 #endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ |
OLD | NEW |