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

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

Issue 1463823003: Return a enumeration of the state of handling of InputEvents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 bool initialize(WebPluginContainer*) override; 51 bool initialize(WebPluginContainer*) override;
52 void destroy() override; 52 void destroy() override;
53 NPObject* scriptableObject() override { return 0; } 53 NPObject* scriptableObject() override { return 0; }
54 bool canProcessDrag() const override { return false; } 54 bool canProcessDrag() const override { return false; }
55 void layoutIfNeeded() override { } 55 void layoutIfNeeded() override { }
56 void paint(WebCanvas*, const WebRect&) override { } 56 void paint(WebCanvas*, const WebRect&) override { }
57 void updateGeometry(const WebRect& clientRect, const WebRect& clipRect, cons t WebRect& windowClipRect, const WebVector<WebRect>& cutOutsRects, bool isVisibl e) override { } 57 void updateGeometry(const WebRect& clientRect, const WebRect& clipRect, cons t WebRect& windowClipRect, const WebVector<WebRect>& cutOutsRects, bool isVisibl e) override { }
58 void updateFocus(bool, WebFocusType) override { } 58 void updateFocus(bool, WebFocusType) override { }
59 void updateVisibility(bool) override { } 59 void updateVisibility(bool) override { }
60 bool acceptsInputEvents() override { return true; } 60 bool acceptsInputEvents() override { return true; }
61 bool handleInputEvent(const WebInputEvent&, WebCursorInfo&) override { retur n false; } 61 WebInputEventResult handleInputEvent(const WebInputEvent&, WebCursorInfo&) o verride { return WebInputEventResult::NotHandled; }
62 bool handleDragStatusUpdate(WebDragStatus, const WebDragData&, WebDragOperat ionsMask, const WebPoint& position, const WebPoint& screenPosition) override { r eturn false; } 62 bool handleDragStatusUpdate(WebDragStatus, const WebDragData&, WebDragOperat ionsMask, const WebPoint& position, const WebPoint& screenPosition) override { r eturn false; }
63 void didReceiveResponse(const WebURLResponse&) override { } 63 void didReceiveResponse(const WebURLResponse&) override { }
64 void didReceiveData(const char* data, int dataLength) override { } 64 void didReceiveData(const char* data, int dataLength) override { }
65 void didFinishLoading() override { } 65 void didFinishLoading() override { }
66 void didFailLoading(const WebURLError&) override { } 66 void didFailLoading(const WebURLError&) override { }
67 void didFinishLoadingFrameRequest(const WebURL&, void* notifyData) override { } 67 void didFinishLoadingFrameRequest(const WebURL&, void* notifyData) override { }
68 void didFailLoadingFrameRequest(const WebURL&, void* notifyData, const WebUR LError&) override { } 68 void didFailLoadingFrameRequest(const WebURL&, void* notifyData, const WebUR LError&) override { }
69 bool isPlaceholder() override { return false; } 69 bool isPlaceholder() override { return false; }
70 70
71 protected: 71 protected:
72 virtual ~FakeWebPlugin(); 72 virtual ~FakeWebPlugin();
73 73
74 WebPluginContainer* container() const { return m_container; } 74 WebPluginContainer* container() const { return m_container; }
75 75
76 private: 76 private:
77 WebFrame* m_frame; 77 WebFrame* m_frame;
78 WebPluginContainer* m_container; 78 WebPluginContainer* m_container;
79 }; 79 };
80 80
81 } // namespace blink 81 } // namespace blink
82 82
83 #endif // FakeWebPlugin_h 83 #endif // FakeWebPlugin_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698