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

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

Issue 2479123003: WIP Add getCoalescedEvents API using vector of WebInputEvents (Closed)
Patch Set: Created 4 years, 1 month 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void updateAllLifecyclePhases() override {} 54 void updateAllLifecyclePhases() override {}
55 void paint(WebCanvas*, const WebRect&) override {} 55 void paint(WebCanvas*, const WebRect&) override {}
56 void updateGeometry(const WebRect& clientRect, 56 void updateGeometry(const WebRect& clientRect,
57 const WebRect& clipRect, 57 const WebRect& clipRect,
58 const WebRect& windowClipRect, 58 const WebRect& windowClipRect,
59 const WebVector<WebRect>& cutOutsRects, 59 const WebVector<WebRect>& cutOutsRects,
60 bool isVisible) override {} 60 bool isVisible) override {}
61 void updateFocus(bool, WebFocusType) override {} 61 void updateFocus(bool, WebFocusType) override {}
62 void updateVisibility(bool) override {} 62 void updateVisibility(bool) override {}
63 WebInputEventResult handleInputEvent(const WebInputEvent&, 63 WebInputEventResult handleInputEvent(const WebInputEvent&,
64 const std::vector<const WebInputEvent*>&,
64 WebCursorInfo&) override { 65 WebCursorInfo&) override {
65 return WebInputEventResult::NotHandled; 66 return WebInputEventResult::NotHandled;
66 } 67 }
67 bool handleDragStatusUpdate(WebDragStatus, 68 bool handleDragStatusUpdate(WebDragStatus,
68 const WebDragData&, 69 const WebDragData&,
69 WebDragOperationsMask, 70 WebDragOperationsMask,
70 const WebPoint& position, 71 const WebPoint& position,
71 const WebPoint& screenPosition) override { 72 const WebPoint& screenPosition) override {
72 return false; 73 return false;
73 } 74 }
74 void didReceiveResponse(const WebURLResponse&) override {} 75 void didReceiveResponse(const WebURLResponse&) override {}
75 void didReceiveData(const char* data, int dataLength) override {} 76 void didReceiveData(const char* data, int dataLength) override {}
76 void didFinishLoading() override {} 77 void didFinishLoading() override {}
77 void didFailLoading(const WebURLError&) override {} 78 void didFailLoading(const WebURLError&) override {}
78 bool isPlaceholder() override { return false; } 79 bool isPlaceholder() override { return false; }
79 80
80 protected: 81 protected:
81 virtual ~FakeWebPlugin(); 82 virtual ~FakeWebPlugin();
82 83
83 WebPluginContainer* container() const { return m_container; } 84 WebPluginContainer* container() const { return m_container; }
84 85
85 private: 86 private:
86 WebFrame* m_frame; 87 WebFrame* m_frame;
87 WebPluginContainer* m_container; 88 WebPluginContainer* m_container;
88 }; 89 };
89 90
90 } // namespace blink 91 } // namespace blink
91 92
92 #endif // FakeWebPlugin_h 93 #endif // FakeWebPlugin_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698