OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/renderer/searchbox_extension.h" | 5 #include "chrome/renderer/searchbox_extension.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/string_split.h" | 11 #include "base/string_split.h" |
12 #include "base/stringprintf.h" | 12 #include "base/stringprintf.h" |
13 #include "chrome/renderer/searchbox.h" | 13 #include "chrome/renderer/searchbox.h" |
14 #include "content/public/renderer/render_view.h" | 14 #include "content/public/renderer/render_view.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
18 #include "v8/include/v8.h" | 18 #include "v8/include/v8.h" |
19 | 19 |
20 using WebKit::WebFrame; | 20 using WebKit::WebFrame; |
21 using WebKit::WebScriptSource; | 21 using WebKit::WebScriptSource; |
22 using WebKit::WebString; | 22 using WebKit::WebString; |
23 using WebKit::WebView; | 23 using WebKit::WebView; |
24 | 24 |
25 namespace extensions_v8 { | 25 namespace extensions_v8 { |
26 | 26 |
27 static const char kSearchBoxExtensionName[] = "v8/SearchBox"; | 27 static const char kSearchBoxExtensionName[] = "v8/SearchBox"; |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 | 428 |
429 return supports_searchbox_api || supports_deprecated_api; | 429 return supports_searchbox_api || supports_deprecated_api; |
430 } | 430 } |
431 | 431 |
432 // static | 432 // static |
433 v8::Extension* SearchBoxExtension::Get() { | 433 v8::Extension* SearchBoxExtension::Get() { |
434 return new SearchBoxExtensionWrapper(); | 434 return new SearchBoxExtensionWrapper(); |
435 } | 435 } |
436 | 436 |
437 } // namespace extensions_v8 | 437 } // namespace extensions_v8 |
OLD | NEW |