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

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

Issue 545123002: Cleanup namespace usage in Source/web/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
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 27 matching lines...) Expand all
38 class WebDragData; 38 class WebDragData;
39 class WebFrame; 39 class WebFrame;
40 class WebInputEvent; 40 class WebInputEvent;
41 class WebPluginContainer; 41 class WebPluginContainer;
42 class WebURL; 42 class WebURL;
43 class WebURLRequest; 43 class WebURLRequest;
44 class WebURLResponse; 44 class WebURLResponse;
45 45
46 class FakeWebPlugin : public WebPlugin { 46 class FakeWebPlugin : public WebPlugin {
47 public: 47 public:
48 FakeWebPlugin(blink::WebFrame*, const blink::WebPluginParams&); 48 FakeWebPlugin(WebFrame*, const WebPluginParams&);
49 49
50 // WebPlugin methods: 50 // WebPlugin methods:
51 virtual bool initialize(blink::WebPluginContainer*) OVERRIDE; 51 virtual bool initialize(WebPluginContainer*) OVERRIDE;
52 virtual void destroy() OVERRIDE; 52 virtual void destroy() OVERRIDE;
53 virtual NPObject* scriptableObject() OVERRIDE { return 0; } 53 virtual NPObject* scriptableObject() OVERRIDE { return 0; }
54 virtual bool canProcessDrag() const OVERRIDE { return false; } 54 virtual bool canProcessDrag() const OVERRIDE { return false; }
55 virtual void paint(blink::WebCanvas*, const blink::WebRect&) OVERRIDE { } 55 virtual void paint(WebCanvas*, const WebRect&) OVERRIDE { }
56 virtual void updateGeometry(const blink::WebRect& frameRect, const blink::We bRect& clipRect, const blink::WebVector<blink::WebRect>& cutOutsRects, bool isVi sible) OVERRIDE { } 56 virtual void updateGeometry(const WebRect& frameRect, const WebRect& clipRec t, const WebVector<WebRect>& cutOutsRects, bool isVisible) OVERRIDE { }
57 virtual void updateFocus(bool) OVERRIDE { } 57 virtual void updateFocus(bool) OVERRIDE { }
58 virtual void updateVisibility(bool) OVERRIDE { } 58 virtual void updateVisibility(bool) OVERRIDE { }
59 virtual bool acceptsInputEvents() OVERRIDE { return true; } 59 virtual bool acceptsInputEvents() OVERRIDE { return true; }
60 virtual bool handleInputEvent(const blink::WebInputEvent&, blink::WebCursorI nfo&) OVERRIDE { return false; } 60 virtual bool handleInputEvent(const WebInputEvent&, WebCursorInfo&) OVERRIDE { return false; }
61 virtual bool handleDragStatusUpdate(blink::WebDragStatus, const blink::WebDr agData&, blink::WebDragOperationsMask, const blink::WebPoint& position, const bl ink::WebPoint& screenPosition) OVERRIDE { return false; } 61 virtual bool handleDragStatusUpdate(WebDragStatus, const WebDragData&, WebDr agOperationsMask, const WebPoint& position, const WebPoint& screenPosition) OVER RIDE { return false; }
62 virtual void didReceiveResponse(const blink::WebURLResponse&) OVERRIDE { } 62 virtual void didReceiveResponse(const WebURLResponse&) OVERRIDE { }
63 virtual void didReceiveData(const char* data, int dataLength) OVERRIDE { } 63 virtual void didReceiveData(const char* data, int dataLength) OVERRIDE { }
64 virtual void didFinishLoading() OVERRIDE { } 64 virtual void didFinishLoading() OVERRIDE { }
65 virtual void didFailLoading(const blink::WebURLError&) OVERRIDE { } 65 virtual void didFailLoading(const WebURLError&) OVERRIDE { }
66 virtual void didFinishLoadingFrameRequest(const blink::WebURL&, void* notify Data) OVERRIDE { } 66 virtual void didFinishLoadingFrameRequest(const WebURL&, void* notifyData) O VERRIDE { }
67 virtual void didFailLoadingFrameRequest(const blink::WebURL&, void* notifyDa ta, const blink::WebURLError&) OVERRIDE { } 67 virtual void didFailLoadingFrameRequest(const WebURL&, void* notifyData, con st WebURLError&) OVERRIDE { }
68 virtual bool isPlaceholder() OVERRIDE { return false; } 68 virtual bool isPlaceholder() OVERRIDE { return false; }
69 69
70 protected: 70 protected:
71 virtual ~FakeWebPlugin(); 71 virtual ~FakeWebPlugin();
72 72
73 private: 73 private:
74 WebFrame* m_frame; 74 WebFrame* m_frame;
75 WebPluginContainer* m_container; 75 WebPluginContainer* m_container;
76 }; 76 };
77 77
78 } // namespace blink 78 } // namespace blink
79 79
80 #endif // FakeWebPlugin_h 80 #endif // FakeWebPlugin_h
OLDNEW
« no previous file with comments | « Source/web/tests/ChromeClientImplTest.cpp ('k') | Source/web/tests/FrameLoaderClientImplTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698