| OLD | NEW |
| 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 23 matching lines...) Expand all Loading... |
| 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; | 39 class WebFrame; |
| 40 class WebInputEvent; | 40 class WebInputEvent; |
| 41 class WebPluginContainer; | 41 class WebPluginContainer; |
| 42 class WebURL; | 42 class WebURL; |
| 43 class WebURLResponse; | 43 class WebURLResponse; |
| 44 struct WebPluginParams; |
| 44 | 45 |
| 45 class FakeWebPlugin : public WebPlugin { | 46 class FakeWebPlugin : public WebPlugin { |
| 46 public: | 47 public: |
| 47 FakeWebPlugin(WebFrame*, const WebPluginParams&); | 48 FakeWebPlugin(WebFrame*, const WebPluginParams&); |
| 48 | 49 |
| 49 // WebPlugin methods: | 50 // WebPlugin methods: |
| 50 virtual bool initialize(WebPluginContainer*) override; | 51 virtual bool initialize(WebPluginContainer*) override; |
| 51 virtual void destroy() override; | 52 virtual void destroy() override; |
| 52 virtual NPObject* scriptableObject() override { return 0; } | 53 virtual NPObject* scriptableObject() override { return 0; } |
| 53 virtual bool canProcessDrag() const override { return false; } | 54 virtual bool canProcessDrag() const override { return false; } |
| (...skipping 16 matching lines...) Expand all Loading... |
| 70 virtual ~FakeWebPlugin(); | 71 virtual ~FakeWebPlugin(); |
| 71 | 72 |
| 72 private: | 73 private: |
| 73 WebFrame* m_frame; | 74 WebFrame* m_frame; |
| 74 WebPluginContainer* m_container; | 75 WebPluginContainer* m_container; |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 } // namespace blink | 78 } // namespace blink |
| 78 | 79 |
| 79 #endif // FakeWebPlugin_h | 80 #endif // FakeWebPlugin_h |
| OLD | NEW |