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

Side by Side Diff: content/shell/renderer/test_runner/test_plugin.h

Issue 1023783008: Migrate plugins to support new 'unobscured' rect interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 'git cl format' Created 5 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
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 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 static const blink::WebString& PluginPersistsMimeType(); 58 static const blink::WebString& PluginPersistsMimeType();
59 static bool IsSupportedMimeType(const blink::WebString& mime_type); 59 static bool IsSupportedMimeType(const blink::WebString& mime_type);
60 60
61 // WebPlugin methods: 61 // WebPlugin methods:
62 virtual bool initialize(blink::WebPluginContainer* container); 62 virtual bool initialize(blink::WebPluginContainer* container);
63 virtual void destroy(); 63 virtual void destroy();
64 virtual NPObject* scriptableObject(); 64 virtual NPObject* scriptableObject();
65 virtual bool canProcessDrag() const; 65 virtual bool canProcessDrag() const;
66 virtual void paint(blink::WebCanvas* canvas, const blink::WebRect& rect) {} 66 virtual void paint(blink::WebCanvas* canvas, const blink::WebRect& rect) {}
67 virtual void updateGeometry( 67 virtual void updateGeometry(
68 const blink::WebRect& frame_rect, 68 const blink::WebRect& window_rect,
69 const blink::WebRect& clip_rect, 69 const blink::WebRect& clip_rect,
70 const blink::WebRect& unobscured_rect,
70 const blink::WebVector<blink::WebRect>& cut_outs_rects, 71 const blink::WebVector<blink::WebRect>& cut_outs_rects,
71 bool is_visible); 72 bool is_visible);
72 virtual void updateFocus(bool focus, blink::WebFocusType focus_type) {} 73 virtual void updateFocus(bool focus, blink::WebFocusType focus_type) {}
73 virtual void updateVisibility(bool visibility) {} 74 virtual void updateVisibility(bool visibility) {}
74 virtual bool acceptsInputEvents(); 75 virtual bool acceptsInputEvents();
75 virtual bool handleInputEvent(const blink::WebInputEvent& event, 76 virtual bool handleInputEvent(const blink::WebInputEvent& event,
76 blink::WebCursorInfo& info); 77 blink::WebCursorInfo& info);
77 virtual bool handleDragStatusUpdate(blink::WebDragStatus drag_status, 78 virtual bool handleDragStatusUpdate(blink::WebDragStatus drag_status,
78 const blink::WebDragData& data, 79 const blink::WebDragData& data,
79 blink::WebDragOperationsMask mask, 80 blink::WebDragOperationsMask mask,
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 173
173 bool is_persistent_; 174 bool is_persistent_;
174 bool can_create_without_renderer_; 175 bool can_create_without_renderer_;
175 176
176 DISALLOW_COPY_AND_ASSIGN(TestPlugin); 177 DISALLOW_COPY_AND_ASSIGN(TestPlugin);
177 }; 178 };
178 179
179 } // namespace content 180 } // namespace content
180 181
181 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_PLUGIN_H_ 182 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_PLUGIN_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_webplugin_impl.cc ('k') | content/shell/renderer/test_runner/test_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698