| 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_RENDERER_SEARCHBOX_SEARCHBOX_EXTENSION_H_ | 5 #ifndef CHROME_RENDERER_SEARCHBOX_SEARCHBOX_EXTENSION_H_ |
| 6 #define CHROME_RENDERER_SEARCHBOX_SEARCHBOX_EXTENSION_H_ | 6 #define CHROME_RENDERER_SEARCHBOX_SEARCHBOX_EXTENSION_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 // Returns true if a page supports Instant, that is, if it has bound an | 29 // Returns true if a page supports Instant, that is, if it has bound an |
| 30 // onsubmit() handler. | 30 // onsubmit() handler. |
| 31 static bool PageSupportsInstant(blink::WebFrame* frame); | 31 static bool PageSupportsInstant(blink::WebFrame* frame); |
| 32 | 32 |
| 33 // Helpers to dispatch Javascript events. | 33 // Helpers to dispatch Javascript events. |
| 34 static void DispatchChromeIdentityCheckResult(blink::WebFrame* frame, | 34 static void DispatchChromeIdentityCheckResult(blink::WebFrame* frame, |
| 35 const base::string16& identity, | 35 const base::string16& identity, |
| 36 bool identity_match); | 36 bool identity_match); |
| 37 static void DispatchFocusChange(blink::WebFrame* frame); | 37 static void DispatchFocusChange(blink::WebFrame* frame); |
| 38 static void DispatchHistorySyncCheckResult(blink::WebFrame* frame, |
| 39 bool sync_history); |
| 38 static void DispatchInputCancel(blink::WebFrame* frame); | 40 static void DispatchInputCancel(blink::WebFrame* frame); |
| 39 static void DispatchInputStart(blink::WebFrame* frame); | 41 static void DispatchInputStart(blink::WebFrame* frame); |
| 40 static void DispatchKeyCaptureChange(blink::WebFrame* frame); | 42 static void DispatchKeyCaptureChange(blink::WebFrame* frame); |
| 41 static void DispatchMarginChange(blink::WebFrame* frame); | 43 static void DispatchMarginChange(blink::WebFrame* frame); |
| 42 static void DispatchMostVisitedChanged(blink::WebFrame* frame); | 44 static void DispatchMostVisitedChanged(blink::WebFrame* frame); |
| 43 static void DispatchSubmit(blink::WebFrame* frame); | 45 static void DispatchSubmit(blink::WebFrame* frame); |
| 44 static void DispatchSuggestionChange(blink::WebFrame* frame); | 46 static void DispatchSuggestionChange(blink::WebFrame* frame); |
| 45 static void DispatchThemeChange(blink::WebFrame* frame); | 47 static void DispatchThemeChange(blink::WebFrame* frame); |
| 46 static void DispatchToggleVoiceSearch(blink::WebFrame* frame); | 48 static void DispatchToggleVoiceSearch(blink::WebFrame* frame); |
| 47 | 49 |
| 48 private: | 50 private: |
| 49 DISALLOW_IMPLICIT_CONSTRUCTORS(SearchBoxExtension); | 51 DISALLOW_IMPLICIT_CONSTRUCTORS(SearchBoxExtension); |
| 50 }; | 52 }; |
| 51 | 53 |
| 52 } // namespace extensions_v8 | 54 } // namespace extensions_v8 |
| 53 | 55 |
| 54 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_EXTENSION_H_ | 56 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_EXTENSION_H_ |
| OLD | NEW |