| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WEBKIT_GLUE_WEBFRAME_H_ | 5 #ifndef WEBKIT_GLUE_WEBFRAME_H_ |
| 6 #define WEBKIT_GLUE_WEBFRAME_H_ | 6 #define WEBKIT_GLUE_WEBFRAME_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 // opener. | 184 // opener. |
| 185 virtual WebFrame* GetOpener() const = 0; | 185 virtual WebFrame* GetOpener() const = 0; |
| 186 | 186 |
| 187 // Returns the frame containing this frame, or NULL of this is a top level | 187 // Returns the frame containing this frame, or NULL of this is a top level |
| 188 // frame with no parent. | 188 // frame with no parent. |
| 189 virtual WebFrame* GetParent() const = 0; | 189 virtual WebFrame* GetParent() const = 0; |
| 190 | 190 |
| 191 // Returns the top-most frame in the frame hierarchy containing this frame. | 191 // Returns the top-most frame in the frame hierarchy containing this frame. |
| 192 virtual WebFrame* GetTop() const = 0; | 192 virtual WebFrame* GetTop() const = 0; |
| 193 | 193 |
| 194 // Returns the first child frame of this frame, or NULL if it has no children. |
| 195 virtual WebFrame* GetFirstChild() const = 0; |
| 196 |
| 197 // Returns the next sibling frame of this frame, or NULL if there are no more |
| 198 // siblings. |
| 199 virtual WebFrame* GetNextSibling() const = 0; |
| 200 |
| 194 // Returns the child frame with the given xpath. | 201 // Returns the child frame with the given xpath. |
| 195 // The document of this frame is used as the context node. | 202 // The document of this frame is used as the context node. |
| 196 // The xpath may need a recursive traversal if non-trivial | 203 // The xpath may need a recursive traversal if non-trivial |
| 197 // A non-trivial xpath will contain a combination of xpaths | 204 // A non-trivial xpath will contain a combination of xpaths |
| 198 // (delimited by '\n') leading to an inner subframe. | 205 // (delimited by '\n') leading to an inner subframe. |
| 199 // | 206 // |
| 200 // Example: /html/body/iframe/\n/html/body/div/iframe/\n/frameset/frame[0] | 207 // Example: /html/body/iframe/\n/html/body/div/iframe/\n/frameset/frame[0] |
| 201 // can be broken into 3 xpaths | 208 // can be broken into 3 xpaths |
| 202 // /html/body/iframe evaluates to an iframe within the root frame | 209 // /html/body/iframe evaluates to an iframe within the root frame |
| 203 // /html/body/div/iframe evaluates to an iframe within the level-1 iframe | 210 // /html/body/div/iframe evaluates to an iframe within the level-1 iframe |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 virtual int PendingFrameUnloadEventCount() const = 0; | 431 virtual int PendingFrameUnloadEventCount() const = 0; |
| 425 | 432 |
| 426 protected: | 433 protected: |
| 427 virtual ~WebFrame() {} | 434 virtual ~WebFrame() {} |
| 428 | 435 |
| 429 private: | 436 private: |
| 430 DISALLOW_COPY_AND_ASSIGN(WebFrame); | 437 DISALLOW_COPY_AND_ASSIGN(WebFrame); |
| 431 }; | 438 }; |
| 432 | 439 |
| 433 #endif // WEBKIT_GLUE_WEBFRAME_H_ | 440 #endif // WEBKIT_GLUE_WEBFRAME_H_ |
| OLD | NEW |