| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_EXTENSION_H_ | 5 #ifndef CHROME_RENDERER_SEARCHBOX_EXTENSION_H_ |
| 6 #define CHROME_RENDERER_SEARCHBOX_EXTENSION_H_ | 6 #define CHROME_RENDERER_SEARCHBOX_EXTENSION_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| 11 class Extension; | 11 class Extension; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 23 public: | 23 public: |
| 24 // Returns the v8::Extension object handling searchbox bindings. Returns null | 24 // Returns the v8::Extension object handling searchbox bindings. Returns null |
| 25 // if match-preview is not enabled. Caller takes ownership of returned object. | 25 // if match-preview is not enabled. Caller takes ownership of returned object. |
| 26 static v8::Extension* Get(); | 26 static v8::Extension* Get(); |
| 27 | 27 |
| 28 static void DispatchChange(WebKit::WebFrame* frame); | 28 static void DispatchChange(WebKit::WebFrame* frame); |
| 29 static void DispatchSubmit(WebKit::WebFrame* frame); | 29 static void DispatchSubmit(WebKit::WebFrame* frame); |
| 30 static void DispatchCancel(WebKit::WebFrame* frame); | 30 static void DispatchCancel(WebKit::WebFrame* frame); |
| 31 static void DispatchResize(WebKit::WebFrame* frame); | 31 static void DispatchResize(WebKit::WebFrame* frame); |
| 32 | 32 |
| 33 // Extended API. |
| 34 static void DispatchNativeSuggestions(WebKit::WebFrame* frame); |
| 35 static void DispatchKeyPress(WebKit::WebFrame* frame); |
| 36 static void DispatchFocus(WebKit::WebFrame* frame); |
| 37 static void DispatchBlur(WebKit::WebFrame* frame); |
| 38 |
| 33 static bool PageSupportsInstant(WebKit::WebFrame* frame); | 39 static bool PageSupportsInstant(WebKit::WebFrame* frame); |
| 34 | 40 |
| 35 private: | 41 private: |
| 36 DISALLOW_COPY_AND_ASSIGN(SearchBoxExtension); | 42 DISALLOW_COPY_AND_ASSIGN(SearchBoxExtension); |
| 37 }; | 43 }; |
| 38 | 44 |
| 39 } // namespace extensions_v8 | 45 } // namespace extensions_v8 |
| 40 | 46 |
| 41 #endif // CHROME_RENDERER_SEARCHBOX_EXTENSION_H_ | 47 #endif // CHROME_RENDERER_SEARCHBOX_EXTENSION_H_ |
| OLD | NEW |