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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 ~TestPlugin() override; | 53 ~TestPlugin() override; |
54 | 54 |
55 static const blink::WebString& MimeType(); | 55 static const blink::WebString& MimeType(); |
56 static const blink::WebString& CanCreateWithoutRendererMimeType(); | 56 static const blink::WebString& CanCreateWithoutRendererMimeType(); |
57 static const blink::WebString& PluginPersistsMimeType(); | 57 static const blink::WebString& PluginPersistsMimeType(); |
58 static bool IsSupportedMimeType(const blink::WebString& mime_type); | 58 static bool IsSupportedMimeType(const blink::WebString& mime_type); |
59 | 59 |
60 // WebPlugin methods: | 60 // WebPlugin methods: |
61 bool initialize(blink::WebPluginContainer* container) override; | 61 bool initialize(blink::WebPluginContainer* container) override; |
62 void destroy() override; | 62 void destroy() override; |
63 NPObject* scriptableObject() override; | |
64 bool canProcessDrag() const override; | 63 bool canProcessDrag() const override; |
65 bool supportsKeyboardFocus() const override; | 64 bool supportsKeyboardFocus() const override; |
66 void layoutIfNeeded() override {} | 65 void layoutIfNeeded() override {} |
67 void paint(blink::WebCanvas* canvas, const blink::WebRect& rect) override {} | 66 void paint(blink::WebCanvas* canvas, const blink::WebRect& rect) override {} |
68 void updateGeometry(const blink::WebRect& window_rect, | 67 void updateGeometry(const blink::WebRect& window_rect, |
69 const blink::WebRect& clip_rect, | 68 const blink::WebRect& clip_rect, |
70 const blink::WebRect& unobscured_rect, | 69 const blink::WebRect& unobscured_rect, |
71 const blink::WebVector<blink::WebRect>& cut_outs_rects, | 70 const blink::WebVector<blink::WebRect>& cut_outs_rects, |
72 bool is_visible) override; | 71 bool is_visible) override; |
73 void updateFocus(bool focus, blink::WebFocusType focus_type) override {} | 72 void updateFocus(bool focus, blink::WebFocusType focus_type) override {} |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 | 169 |
171 bool is_persistent_; | 170 bool is_persistent_; |
172 bool can_create_without_renderer_; | 171 bool can_create_without_renderer_; |
173 | 172 |
174 DISALLOW_COPY_AND_ASSIGN(TestPlugin); | 173 DISALLOW_COPY_AND_ASSIGN(TestPlugin); |
175 }; | 174 }; |
176 | 175 |
177 } // namespace test_runner | 176 } // namespace test_runner |
178 | 177 |
179 #endif // COMPONENTS_TEST_RUNNER_TEST_PLUGIN_H_ | 178 #endif // COMPONENTS_TEST_RUNNER_TEST_PLUGIN_H_ |
OLD | NEW |