OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 21 matching lines...) Expand all Loading... |
32 #define WebPluginDocument_h | 32 #define WebPluginDocument_h |
33 | 33 |
34 #include "WebDocument.h" | 34 #include "WebDocument.h" |
35 | 35 |
36 namespace blink { | 36 namespace blink { |
37 | 37 |
38 class PluginDocument; | 38 class PluginDocument; |
39 class WebPlugin; | 39 class WebPlugin; |
40 | 40 |
41 // Wraps a WebDocument for full page plugins. | 41 // Wraps a WebDocument for full page plugins. |
42 class WebPluginDocument : public WebDocument { | 42 class WebPluginDocument final : public WebDocument { |
43 public: | 43 public: |
44 WebPluginDocument() { } | 44 WebPluginDocument() { } |
45 WebPluginDocument(const WebPluginDocument& e) : WebDocument(e) { } | 45 WebPluginDocument(const WebPluginDocument& e) : WebDocument(e) { } |
46 | 46 |
47 WebPluginDocument& operator=(const WebPluginDocument& e) | 47 WebPluginDocument& operator=(const WebPluginDocument& e) |
48 { | 48 { |
49 WebNode::assign(e); | 49 WebNode::assign(e); |
50 return *this; | 50 return *this; |
51 } | 51 } |
52 void assign(const WebPluginDocument& d) { WebNode::assign(d); } | 52 void assign(const WebPluginDocument& d) { WebNode::assign(d); } |
53 | 53 |
54 BLINK_EXPORT WebPlugin* plugin(); | 54 BLINK_EXPORT WebPlugin* plugin(); |
55 | 55 |
56 #if BLINK_IMPLEMENTATION | 56 #if BLINK_IMPLEMENTATION |
57 WebPluginDocument(const PassRefPtrWillBeRawPtr<PluginDocument>&); | 57 WebPluginDocument(const PassRefPtrWillBeRawPtr<PluginDocument>&); |
58 WebPluginDocument& operator=(const PassRefPtrWillBeRawPtr<PluginDocument>&); | 58 WebPluginDocument& operator=(const PassRefPtrWillBeRawPtr<PluginDocument>&); |
59 operator PassRefPtrWillBeRawPtr<PluginDocument>() const; | 59 operator PassRefPtrWillBeRawPtr<PluginDocument>() const; |
60 #endif | 60 #endif |
61 }; | 61 }; |
62 | 62 |
| 63 DECLARE_WEB_NODE_TYPE_CASTS(WebPluginDocument); |
| 64 |
63 } // namespace blink | 65 } // namespace blink |
64 | 66 |
65 #endif | 67 #endif |
OLD | NEW |