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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 class Object; | 51 class Object; |
52 class Value; | 52 class Value; |
53 template <class T> class Handle; | 53 template <class T> class Handle; |
54 template <class T> class Local; | 54 template <class T> class Local; |
55 } | 55 } |
56 | 56 |
57 namespace blink { | 57 namespace blink { |
58 | 58 |
59 class Frame; | 59 class Frame; |
60 class OpenedFrameTracker; | 60 class OpenedFrameTracker; |
| 61 class Visitor; |
61 class WebData; | 62 class WebData; |
62 class WebDataSource; | 63 class WebDataSource; |
63 class WebDocument; | 64 class WebDocument; |
64 class WebElement; | 65 class WebElement; |
65 class WebFormElement; | 66 class WebFormElement; |
66 class WebFrameClient; | 67 class WebFrameClient; |
67 class WebInputElement; | 68 class WebInputElement; |
68 class WebLayer; | 69 class WebLayer; |
69 class WebLocalFrame; | 70 class WebLocalFrame; |
70 class WebPerformance; | 71 class WebPerformance; |
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 // Only for testing purpose: | 674 // Only for testing purpose: |
674 // Returns true if selection.anchorNode has a marker on range from |from| wi
th |length|. | 675 // Returns true if selection.anchorNode has a marker on range from |from| wi
th |length|. |
675 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const
= 0; | 676 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const
= 0; |
676 | 677 |
677 // Dumps the layer tree, used by the accelerated compositor, in | 678 // Dumps the layer tree, used by the accelerated compositor, in |
678 // text form. This is used only by layout tests. | 679 // text form. This is used only by layout tests. |
679 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; | 680 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; |
680 | 681 |
681 #if BLINK_IMPLEMENTATION | 682 #if BLINK_IMPLEMENTATION |
682 static WebFrame* fromFrame(Frame*); | 683 static WebFrame* fromFrame(Frame*); |
| 684 static void traceChildren(Visitor*, WebFrame*); |
683 #endif | 685 #endif |
684 | 686 |
685 protected: | 687 protected: |
686 explicit WebFrame(); | 688 explicit WebFrame(); |
687 virtual ~WebFrame(); | 689 virtual ~WebFrame(); |
688 | 690 |
689 private: | 691 private: |
690 friend class OpenedFrameTracker; | 692 friend class OpenedFrameTracker; |
691 | 693 |
692 WebFrame* m_parent; | 694 WebFrame* m_parent; |
693 WebFrame* m_previousSibling; | 695 WebFrame* m_previousSibling; |
694 WebFrame* m_nextSibling; | 696 WebFrame* m_nextSibling; |
695 WebFrame* m_firstChild; | 697 WebFrame* m_firstChild; |
696 WebFrame* m_lastChild; | 698 WebFrame* m_lastChild; |
697 | 699 |
698 WebFrame* m_opener; | 700 WebFrame* m_opener; |
699 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; | 701 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; |
700 }; | 702 }; |
701 | 703 |
702 #if BLINK_IMPLEMENTATION | 704 #if BLINK_IMPLEMENTATION |
703 Frame* toCoreFrame(const WebFrame*); | 705 Frame* toCoreFrame(const WebFrame*); |
704 #endif | 706 #endif |
705 | 707 |
706 } // namespace blink | 708 } // namespace blink |
707 | 709 |
708 #endif | 710 #endif |
OLD | NEW |