Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: chrome/renderer/searchbox/searchbox_extension.h

Issue 2923433002: Move ExecuteScript method from WebFrame to WebLocalFrame. (Closed)
Patch Set: Tweaked a comment in WebViewPlugin::WebViewHelper::main_frame [as suggested in CR feedback] Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/macros.h" 8 #include "base/macros.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 class Extension; 12 class Extension;
13 } 13 }
14 14
15 namespace blink { 15 namespace blink {
16 class WebFrame; 16 class WebLocalFrame;
17 } 17 }
18 18
19 namespace extensions_v8 { 19 namespace extensions_v8 {
20 20
21 // Reference implementation of the SearchBox API as described in: 21 // Reference implementation of the SearchBox API as described in:
22 // http://dev.chromium.org/searchbox 22 // http://dev.chromium.org/searchbox
23 class SearchBoxExtension { 23 class SearchBoxExtension {
24 public: 24 public:
25 // Returns the v8::Extension object handling searchbox bindings. Returns null 25 // Returns the v8::Extension object handling searchbox bindings. Returns null
26 // if match-preview is not enabled. Caller takes ownership of returned object. 26 // if match-preview is not enabled. Caller takes ownership of returned object.
27 static v8::Extension* Get(); 27 static v8::Extension* Get();
28 28
29 // Helpers to dispatch Javascript events. 29 // Helpers to dispatch Javascript events.
30 static void DispatchChromeIdentityCheckResult(blink::WebFrame* frame, 30 static void DispatchChromeIdentityCheckResult(blink::WebLocalFrame* frame,
31 const base::string16& identity, 31 const base::string16& identity,
32 bool identity_match); 32 bool identity_match);
33 static void DispatchFocusChange(blink::WebFrame* frame); 33 static void DispatchFocusChange(blink::WebLocalFrame* frame);
34 static void DispatchHistorySyncCheckResult(blink::WebFrame* frame, 34 static void DispatchHistorySyncCheckResult(blink::WebLocalFrame* frame,
35 bool sync_history); 35 bool sync_history);
36 static void DispatchInputCancel(blink::WebFrame* frame); 36 static void DispatchInputCancel(blink::WebLocalFrame* frame);
37 static void DispatchInputStart(blink::WebFrame* frame); 37 static void DispatchInputStart(blink::WebLocalFrame* frame);
38 static void DispatchKeyCaptureChange(blink::WebFrame* frame); 38 static void DispatchKeyCaptureChange(blink::WebLocalFrame* frame);
39 static void DispatchMostVisitedChanged(blink::WebFrame* frame); 39 static void DispatchMostVisitedChanged(blink::WebLocalFrame* frame);
40 static void DispatchSubmit(blink::WebFrame* frame); 40 static void DispatchSubmit(blink::WebLocalFrame* frame);
41 static void DispatchSuggestionChange(blink::WebFrame* frame); 41 static void DispatchSuggestionChange(blink::WebLocalFrame* frame);
42 static void DispatchThemeChange(blink::WebFrame* frame); 42 static void DispatchThemeChange(blink::WebLocalFrame* frame);
43 43
44 private: 44 private:
45 DISALLOW_IMPLICIT_CONSTRUCTORS(SearchBoxExtension); 45 DISALLOW_IMPLICIT_CONSTRUCTORS(SearchBoxExtension);
46 }; 46 };
47 47
48 } // namespace extensions_v8 48 } // namespace extensions_v8
49 49
50 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_EXTENSION_H_ 50 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_EXTENSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698