OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 // Returns the number of live WebFrame objects, used for leak checking. | 111 // Returns the number of live WebFrame objects, used for leak checking. |
112 BLINK_EXPORT static int instanceCount(); | 112 BLINK_EXPORT static int instanceCount(); |
113 | 113 |
114 virtual bool isWebLocalFrame() const = 0; | 114 virtual bool isWebLocalFrame() const = 0; |
115 virtual WebLocalFrame* toWebLocalFrame() = 0; | 115 virtual WebLocalFrame* toWebLocalFrame() = 0; |
116 virtual bool isWebRemoteFrame() const = 0; | 116 virtual bool isWebRemoteFrame() const = 0; |
117 virtual WebRemoteFrame* toWebRemoteFrame() = 0; | 117 virtual WebRemoteFrame* toWebRemoteFrame() = 0; |
118 | 118 |
119 BLINK_EXPORT bool swap(WebFrame*); | 119 BLINK_EXPORT bool swap(WebFrame*); |
120 | 120 |
121 // This method closes and deletes the WebFrame. | 121 // This method closes and deletes the WebFrame. This is typically called by |
| 122 // the embedder in response to a frame detached callback to the WebFrame |
| 123 // client. |
122 virtual void close() = 0; | 124 virtual void close() = 0; |
123 | 125 |
| 126 // Called by the embedder when it needs to detach the subtree rooted at this |
| 127 // frame. |
| 128 void detach(); |
124 | 129 |
125 // Basic properties --------------------------------------------------- | 130 // Basic properties --------------------------------------------------- |
126 | 131 |
127 // The unique name of this frame. | 132 // The unique name of this frame. |
128 virtual WebString uniqueName() const = 0; | 133 virtual WebString uniqueName() const = 0; |
129 | 134 |
130 // The name of this frame. If no name is given, empty string is returned. | 135 // The name of this frame. If no name is given, empty string is returned. |
131 virtual WebString assignedName() const = 0; | 136 virtual WebString assignedName() const = 0; |
132 | 137 |
133 // Sets the name of this frame. For child frames (frames that are not a | 138 // Sets the name of this frame. For child frames (frames that are not a |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; | 681 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; |
677 }; | 682 }; |
678 | 683 |
679 #if BLINK_IMPLEMENTATION | 684 #if BLINK_IMPLEMENTATION |
680 Frame* toCoreFrame(const WebFrame*); | 685 Frame* toCoreFrame(const WebFrame*); |
681 #endif | 686 #endif |
682 | 687 |
683 } // namespace blink | 688 } // namespace blink |
684 | 689 |
685 #endif | 690 #endif |
OLD | NEW |