OLD | NEW |
1 // Copyright (c) 2012 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 CONTENT_SHELL_LAYOUT_TEST_CONTROLLER_BINDINGS_H_ | 5 #ifndef CONTENT_SHELL_LAYOUT_TEST_CONTROLLER_BINDINGS_H_ |
6 #define CONTENT_SHELL_LAYOUT_TEST_CONTROLLER_BINDINGS_H_ | 6 #define CONTENT_SHELL_LAYOUT_TEST_CONTROLLER_BINDINGS_H_ |
7 #pragma once | |
8 | 7 |
9 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
11 #include "v8/include/v8.h" | 10 #include "v8/include/v8.h" |
12 | 11 |
13 namespace content { | 12 namespace content { |
14 | 13 |
15 class LayoutTestControllerBindings : public v8::Extension { | 14 class LayoutTestControllerBindings : public v8::Extension { |
16 public: | 15 public: |
17 LayoutTestControllerBindings(); | 16 LayoutTestControllerBindings(); |
18 virtual ~LayoutTestControllerBindings(); | 17 virtual ~LayoutTestControllerBindings(); |
19 | 18 |
20 // v8::Extension implementation. | 19 // v8::Extension implementation. |
21 virtual v8::Handle<v8::FunctionTemplate> | 20 virtual v8::Handle<v8::FunctionTemplate> |
22 GetNativeFunction(v8::Handle<v8::String> name) OVERRIDE; | 21 GetNativeFunction(v8::Handle<v8::String> name) OVERRIDE; |
23 | 22 |
24 private: | 23 private: |
25 DISALLOW_COPY_AND_ASSIGN(LayoutTestControllerBindings); | 24 DISALLOW_COPY_AND_ASSIGN(LayoutTestControllerBindings); |
26 }; | 25 }; |
27 | 26 |
28 } // namespace content | 27 } // namespace content |
29 | 28 |
30 #endif // CONTENT_SHELL_LAYOUT_TEST_CONTROLLER_BINDINGS_H_ | 29 #endif // CONTENT_SHELL_LAYOUT_TEST_CONTROLLER_BINDINGS_H_ |
OLD | NEW |