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

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: Fix bad rebase. Created 4 years, 9 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
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 ~TestPlugin() override; 59 ~TestPlugin() override;
60 60
61 static const blink::WebString& MimeType(); 61 static const blink::WebString& MimeType();
62 static const blink::WebString& CanCreateWithoutRendererMimeType(); 62 static const blink::WebString& CanCreateWithoutRendererMimeType();
63 static const blink::WebString& PluginPersistsMimeType(); 63 static const blink::WebString& PluginPersistsMimeType();
64 static bool IsSupportedMimeType(const blink::WebString& mime_type); 64 static bool IsSupportedMimeType(const blink::WebString& mime_type);
65 65
66 // WebPlugin methods: 66 // WebPlugin methods:
67 bool initialize(blink::WebPluginContainer* container) override; 67 bool initialize(blink::WebPluginContainer* container) override;
68 void destroy() override; 68 void destroy() override;
69 NPObject* scriptableObject() override;
70 bool canProcessDrag() const override; 69 bool canProcessDrag() const override;
71 bool supportsKeyboardFocus() const override; 70 bool supportsKeyboardFocus() const override;
72 void updateAllLifecyclePhases() override {} 71 void updateAllLifecyclePhases() override {}
73 void paint(blink::WebCanvas* canvas, const blink::WebRect& rect) override {} 72 void paint(blink::WebCanvas* canvas, const blink::WebRect& rect) override {}
74 void updateGeometry(const blink::WebRect& window_rect, 73 void updateGeometry(const blink::WebRect& window_rect,
75 const blink::WebRect& clip_rect, 74 const blink::WebRect& clip_rect,
76 const blink::WebRect& unobscured_rect, 75 const blink::WebRect& unobscured_rect,
77 const blink::WebVector<blink::WebRect>& cut_outs_rects, 76 const blink::WebVector<blink::WebRect>& cut_outs_rects,
78 bool is_visible) override; 77 bool is_visible) override;
79 void updateFocus(bool focus, blink::WebFocusType focus_type) override {} 78 void updateFocus(bool focus, blink::WebFocusType focus_type) override {}
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 176
178 bool is_persistent_; 177 bool is_persistent_;
179 bool can_create_without_renderer_; 178 bool can_create_without_renderer_;
180 179
181 DISALLOW_COPY_AND_ASSIGN(TestPlugin); 180 DISALLOW_COPY_AND_ASSIGN(TestPlugin);
182 }; 181 };
183 182
184 } // namespace test_runner 183 } // namespace test_runner
185 184
186 #endif // COMPONENTS_TEST_RUNNER_TEST_PLUGIN_H_ 185 #endif // COMPONENTS_TEST_RUNNER_TEST_PLUGIN_H_
OLDNEW
« no previous file with comments | « no previous file | components/test_runner/test_plugin.cc » ('j') | content/child/npapi/np_channel_base.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698