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

Side by Side Diff: components/test_runner/test_plugin.h

Issue 1483733002: Remove support for NPObjects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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
« no previous file with comments | « no previous file | components/test_runner/test_plugin.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 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 ~TestPlugin() override; 61 ~TestPlugin() override;
62 62
63 static const blink::WebString& MimeType(); 63 static const blink::WebString& MimeType();
64 static const blink::WebString& CanCreateWithoutRendererMimeType(); 64 static const blink::WebString& CanCreateWithoutRendererMimeType();
65 static const blink::WebString& PluginPersistsMimeType(); 65 static const blink::WebString& PluginPersistsMimeType();
66 static bool IsSupportedMimeType(const blink::WebString& mime_type); 66 static bool IsSupportedMimeType(const blink::WebString& mime_type);
67 67
68 // WebPlugin methods: 68 // WebPlugin methods:
69 bool initialize(blink::WebPluginContainer* container) override; 69 bool initialize(blink::WebPluginContainer* container) override;
70 void destroy() override; 70 void destroy() override;
71 NPObject* scriptableObject() override;
72 bool canProcessDrag() const override; 71 bool canProcessDrag() const override;
73 bool supportsKeyboardFocus() const override; 72 bool supportsKeyboardFocus() const override;
74 void updateAllLifecyclePhases() override {} 73 void updateAllLifecyclePhases() override {}
75 void paint(blink::WebCanvas* canvas, const blink::WebRect& rect) override {} 74 void paint(blink::WebCanvas* canvas, const blink::WebRect& rect) override {}
76 void updateGeometry(const blink::WebRect& window_rect, 75 void updateGeometry(const blink::WebRect& window_rect,
77 const blink::WebRect& clip_rect, 76 const blink::WebRect& clip_rect,
78 const blink::WebRect& unobscured_rect, 77 const blink::WebRect& unobscured_rect,
79 const blink::WebVector<blink::WebRect>& cut_outs_rects, 78 const blink::WebVector<blink::WebRect>& cut_outs_rects,
80 bool is_visible) override; 79 bool is_visible) override;
81 void updateFocus(bool focus, blink::WebFocusType focus_type) override {} 80 void updateFocus(bool focus, blink::WebFocusType focus_type) override {}
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 179
181 bool is_persistent_; 180 bool is_persistent_;
182 bool can_create_without_renderer_; 181 bool can_create_without_renderer_;
183 182
184 DISALLOW_COPY_AND_ASSIGN(TestPlugin); 183 DISALLOW_COPY_AND_ASSIGN(TestPlugin);
185 }; 184 };
186 185
187 } // namespace test_runner 186 } // namespace test_runner
188 187
189 #endif // COMPONENTS_TEST_RUNNER_TEST_PLUGIN_H_ 188 #endif // COMPONENTS_TEST_RUNNER_TEST_PLUGIN_H_
OLDNEW
« no previous file with comments | « no previous file | components/test_runner/test_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698