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

Side by Side Diff: chrome/renderer/extensions/event_bindings.h

Issue 7774012: renderer/extensions: Forward declare a couple of v8 classes in EventBindings header. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/renderer/extensions/event_bindings.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CHROME_RENDERER_EXTENSIONS_EVENT_BINDINGS_H_ 5 #ifndef CHROME_RENDERER_EXTENSIONS_EVENT_BINDINGS_H_
6 #define CHROME_RENDERER_EXTENSIONS_EVENT_BINDINGS_H_ 6 #define CHROME_RENDERER_EXTENSIONS_EVENT_BINDINGS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "v8/include/v8.h"
12
13 class ExtensionDispatcher; 11 class ExtensionDispatcher;
14 class GURL; 12 class GURL;
15 class RenderThreadBase; 13 class RenderThreadBase;
16 class RenderView; 14 class RenderView;
17 15
18 namespace base { 16 namespace base {
19 class ListValue; 17 class ListValue;
20 } 18 }
21 19
20 namespace v8 {
21 class Context;
22 class Extension;
23 template <class T> class Handle;
24 }
25
22 namespace WebKit { 26 namespace WebKit {
23 class WebFrame; 27 class WebFrame;
24 } 28 }
25 29
26 // This class deals with the javascript bindings related to Event objects. 30 // This class deals with the javascript bindings related to Event objects.
27 class EventBindings { 31 class EventBindings {
28 public: 32 public:
29 static const char* kName; // The v8::Extension name, for dependencies. 33 static const char* kName; // The v8::Extension name, for dependencies.
30 static const char* kTestingExtensionId; 34 static const char* kTestingExtensionId;
31 35
(...skipping 17 matching lines...) Expand all
49 // The called javascript function should not return a value other than 53 // The called javascript function should not return a value other than
50 // v8::Undefined(). A DCHECK is setup to break if it is otherwise. 54 // v8::Undefined(). A DCHECK is setup to break if it is otherwise.
51 static void CallFunction(const std::string& extension_id, 55 static void CallFunction(const std::string& extension_id,
52 const std::string& function_name, 56 const std::string& function_name,
53 const base::ListValue& arguments, 57 const base::ListValue& arguments,
54 RenderView* render_view, 58 RenderView* render_view,
55 const GURL& event_url); 59 const GURL& event_url);
56 }; 60 };
57 61
58 #endif // CHROME_RENDERER_EXTENSIONS_EVENT_BINDINGS_H_ 62 #endif // CHROME_RENDERER_EXTENSIONS_EVENT_BINDINGS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/extensions/event_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698