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

Side by Side Diff: third_party/WebKit/Source/web/tests/FakeWebPlugin.h

Issue 2844823002: Support Coalesced Touch in ppapi (Closed)
Patch Set: Support Coalesced Touch in ppapi Created 3 years, 7 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 17 matching lines...) Expand all
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef FakeWebPlugin_h 31 #ifndef FakeWebPlugin_h
32 #define FakeWebPlugin_h 32 #define FakeWebPlugin_h
33 33
34 #include "public/web/WebPlugin.h" 34 #include "public/web/WebPlugin.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 class WebCoalescedInputEvent;
38 class WebDragData; 39 class WebDragData;
39 class WebInputEvent;
40 class WebPluginContainer; 40 class WebPluginContainer;
41 class WebURLResponse; 41 class WebURLResponse;
42 struct WebPluginParams; 42 struct WebPluginParams;
43 43
44 class FakeWebPlugin : public WebPlugin { 44 class FakeWebPlugin : public WebPlugin {
45 public: 45 public:
46 explicit FakeWebPlugin(const WebPluginParams&); 46 explicit FakeWebPlugin(const WebPluginParams&);
47 47
48 // WebPlugin methods: 48 // WebPlugin methods:
49 bool Initialize(WebPluginContainer*) override; 49 bool Initialize(WebPluginContainer*) override;
50 void Destroy() override; 50 void Destroy() override;
51 bool CanProcessDrag() const override { return false; } 51 bool CanProcessDrag() const override { return false; }
52 void UpdateAllLifecyclePhases() override {} 52 void UpdateAllLifecyclePhases() override {}
53 void Paint(WebCanvas*, const WebRect&) override {} 53 void Paint(WebCanvas*, const WebRect&) override {}
54 void UpdateGeometry(const WebRect& client_rect, 54 void UpdateGeometry(const WebRect& client_rect,
55 const WebRect& clip_rect, 55 const WebRect& clip_rect,
56 const WebRect& window_clip_rect, 56 const WebRect& window_clip_rect,
57 const WebVector<WebRect>& cut_outs_rects, 57 const WebVector<WebRect>& cut_outs_rects,
58 bool is_visible) override {} 58 bool is_visible) override {}
59 void UpdateFocus(bool, WebFocusType) override {} 59 void UpdateFocus(bool, WebFocusType) override {}
60 void UpdateVisibility(bool) override {} 60 void UpdateVisibility(bool) override {}
61 WebInputEventResult HandleInputEvent(const WebInputEvent&, 61 WebInputEventResult HandleInputEvent(const WebCoalescedInputEvent&,
62 WebCursorInfo&) override { 62 WebCursorInfo&) override {
63 return WebInputEventResult::kNotHandled; 63 return WebInputEventResult::kNotHandled;
64 } 64 }
65 bool HandleDragStatusUpdate(WebDragStatus, 65 bool HandleDragStatusUpdate(WebDragStatus,
66 const WebDragData&, 66 const WebDragData&,
67 WebDragOperationsMask, 67 WebDragOperationsMask,
68 const WebPoint& position, 68 const WebPoint& position,
69 const WebPoint& screen_position) override { 69 const WebPoint& screen_position) override {
70 return false; 70 return false;
71 } 71 }
72 void DidReceiveResponse(const WebURLResponse&) override {} 72 void DidReceiveResponse(const WebURLResponse&) override {}
73 void DidReceiveData(const char* data, int data_length) override {} 73 void DidReceiveData(const char* data, int data_length) override {}
74 void DidFinishLoading() override {} 74 void DidFinishLoading() override {}
75 void DidFailLoading(const WebURLError&) override {} 75 void DidFailLoading(const WebURLError&) override {}
76 bool IsPlaceholder() override { return false; } 76 bool IsPlaceholder() override { return false; }
77 77
78 protected: 78 protected:
79 virtual ~FakeWebPlugin(); 79 virtual ~FakeWebPlugin();
80 80
81 WebPluginContainer* Container() const { return container_; } 81 WebPluginContainer* Container() const { return container_; }
82 82
83 private: 83 private:
84 WebPluginContainer* container_; 84 WebPluginContainer* container_;
85 }; 85 };
86 86
87 } // namespace blink 87 } // namespace blink
88 88
89 #endif // FakeWebPlugin_h 89 #endif // FakeWebPlugin_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698