OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RENDERER_TEST_RUNNER_TEST_PLUGIN_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_PLUGIN_H_ |
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_PLUGIN_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_PLUGIN_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 void* notify_data) {} | 81 void* notify_data) {} |
82 virtual void didFailLoadingFrameRequest(const blink::WebURL& url, | 82 virtual void didFailLoadingFrameRequest(const blink::WebURL& url, |
83 void* notify_data, | 83 void* notify_data, |
84 const blink::WebURLError& error) {} | 84 const blink::WebURLError& error) {} |
85 virtual bool isPlaceholder(); | 85 virtual bool isPlaceholder(); |
86 | 86 |
87 // cc::TextureLayerClient methods: | 87 // cc::TextureLayerClient methods: |
88 virtual bool PrepareTextureMailbox( | 88 virtual bool PrepareTextureMailbox( |
89 cc::TextureMailbox* mailbox, | 89 cc::TextureMailbox* mailbox, |
90 scoped_ptr<cc::SingleReleaseCallback>* release_callback, | 90 scoped_ptr<cc::SingleReleaseCallback>* release_callback, |
91 bool use_shared_memory) OVERRIDE; | 91 bool use_shared_memory) override; |
92 | 92 |
93 private: | 93 private: |
94 TestPlugin(blink::WebFrame* frame, | 94 TestPlugin(blink::WebFrame* frame, |
95 const blink::WebPluginParams& params, | 95 const blink::WebPluginParams& params, |
96 WebTestDelegate* delegate); | 96 WebTestDelegate* delegate); |
97 | 97 |
98 enum Primitive { PrimitiveNone, PrimitiveTriangle }; | 98 enum Primitive { PrimitiveNone, PrimitiveTriangle }; |
99 | 99 |
100 struct Scene { | 100 struct Scene { |
101 Primitive primitive; | 101 Primitive primitive; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 | 166 |
167 bool is_persistent_; | 167 bool is_persistent_; |
168 bool can_create_without_renderer_; | 168 bool can_create_without_renderer_; |
169 | 169 |
170 DISALLOW_COPY_AND_ASSIGN(TestPlugin); | 170 DISALLOW_COPY_AND_ASSIGN(TestPlugin); |
171 }; | 171 }; |
172 | 172 |
173 } // namespace content | 173 } // namespace content |
174 | 174 |
175 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_PLUGIN_H_ | 175 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_PLUGIN_H_ |
OLD | NEW |