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 COMPONENTS_TEST_RUNNER_TEST_PLUGIN_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_TEST_PLUGIN_H_ |
6 #define COMPONENTS_TEST_RUNNER_TEST_PLUGIN_H_ | 6 #define COMPONENTS_TEST_RUNNER_TEST_PLUGIN_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 const blink::WebPoint& screen_position) override; | 88 const blink::WebPoint& screen_position) override; |
89 void didReceiveResponse(const blink::WebURLResponse& response) override {} | 89 void didReceiveResponse(const blink::WebURLResponse& response) override {} |
90 void didReceiveData(const char* data, int data_length) override {} | 90 void didReceiveData(const char* data, int data_length) override {} |
91 void didFinishLoading() override {} | 91 void didFinishLoading() override {} |
92 void didFailLoading(const blink::WebURLError& error) override {} | 92 void didFailLoading(const blink::WebURLError& error) override {} |
93 bool isPlaceholder() override; | 93 bool isPlaceholder() override; |
94 | 94 |
95 // cc::TextureLayerClient methods: | 95 // cc::TextureLayerClient methods: |
96 bool PrepareTextureMailbox( | 96 bool PrepareTextureMailbox( |
97 cc::TextureMailbox* mailbox, | 97 cc::TextureMailbox* mailbox, |
98 std::unique_ptr<cc::SingleReleaseCallback>* release_callback, | 98 std::unique_ptr<cc::SingleReleaseCallback>* release_callback) override; |
99 bool use_shared_memory) override; | |
100 | 99 |
101 private: | 100 private: |
102 TestPlugin(blink::WebFrame* frame, | 101 TestPlugin(blink::WebFrame* frame, |
103 const blink::WebPluginParams& params, | 102 const blink::WebPluginParams& params, |
104 WebTestDelegate* delegate); | 103 WebTestDelegate* delegate); |
105 | 104 |
106 enum Primitive { PrimitiveNone, PrimitiveTriangle }; | 105 enum Primitive { PrimitiveNone, PrimitiveTriangle }; |
107 | 106 |
108 struct Scene { | 107 struct Scene { |
109 Primitive primitive; | 108 Primitive primitive; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 | 175 |
177 bool is_persistent_; | 176 bool is_persistent_; |
178 bool can_create_without_renderer_; | 177 bool can_create_without_renderer_; |
179 | 178 |
180 DISALLOW_COPY_AND_ASSIGN(TestPlugin); | 179 DISALLOW_COPY_AND_ASSIGN(TestPlugin); |
181 }; | 180 }; |
182 | 181 |
183 } // namespace test_runner | 182 } // namespace test_runner |
184 | 183 |
185 #endif // COMPONENTS_TEST_RUNNER_TEST_PLUGIN_H_ | 184 #endif // COMPONENTS_TEST_RUNNER_TEST_PLUGIN_H_ |
OLD | NEW |