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

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

Issue 2855123003: Remove rendundant WebLocalFrame parameter in various plugin code. (Closed)
Patch Set: Fix Android 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 18 matching lines...) Expand all
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 WebDragData; 38 class WebDragData;
39 class WebFrame;
40 class WebInputEvent; 39 class WebInputEvent;
41 class WebPluginContainer; 40 class WebPluginContainer;
42 class WebURLResponse; 41 class WebURLResponse;
43 struct WebPluginParams; 42 struct WebPluginParams;
44 43
45 class FakeWebPlugin : public WebPlugin { 44 class FakeWebPlugin : public WebPlugin {
46 public: 45 public:
47 FakeWebPlugin(WebFrame*, const WebPluginParams&); 46 explicit FakeWebPlugin(const WebPluginParams&);
48 47
49 // WebPlugin methods: 48 // WebPlugin methods:
50 bool Initialize(WebPluginContainer*) override; 49 bool Initialize(WebPluginContainer*) override;
51 void Destroy() override; 50 void Destroy() override;
52 bool CanProcessDrag() const override { return false; } 51 bool CanProcessDrag() const override { return false; }
53 void UpdateAllLifecyclePhases() override {} 52 void UpdateAllLifecyclePhases() override {}
54 void Paint(WebCanvas*, const WebRect&) override {} 53 void Paint(WebCanvas*, const WebRect&) override {}
55 void UpdateGeometry(const WebRect& client_rect, 54 void UpdateGeometry(const WebRect& client_rect,
56 const WebRect& clip_rect, 55 const WebRect& clip_rect,
57 const WebRect& window_clip_rect, 56 const WebRect& window_clip_rect,
(...skipping 17 matching lines...) Expand all
75 void DidFinishLoading() override {} 74 void DidFinishLoading() override {}
76 void DidFailLoading(const WebURLError&) override {} 75 void DidFailLoading(const WebURLError&) override {}
77 bool IsPlaceholder() override { return false; } 76 bool IsPlaceholder() override { return false; }
78 77
79 protected: 78 protected:
80 virtual ~FakeWebPlugin(); 79 virtual ~FakeWebPlugin();
81 80
82 WebPluginContainer* Container() const { return container_; } 81 WebPluginContainer* Container() const { return container_; }
83 82
84 private: 83 private:
85 WebFrame* frame_;
86 WebPluginContainer* container_; 84 WebPluginContainer* container_;
87 }; 85 };
88 86
89 } // namespace blink 87 } // namespace blink
90 88
91 #endif // FakeWebPlugin_h 89 #endif // FakeWebPlugin_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698