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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 template <class T> class Local; | 52 template <class T> class Local; |
53 } | 53 } |
54 | 54 |
55 namespace WebKit { | 55 namespace WebKit { |
56 | 56 |
57 class WebData; | 57 class WebData; |
58 class WebDataSource; | 58 class WebDataSource; |
59 class WebDocument; | 59 class WebDocument; |
60 class WebElement; | 60 class WebElement; |
61 class WebFormElement; | 61 class WebFormElement; |
| 62 class WebFrameClient; |
62 class WebHistoryItem; | 63 class WebHistoryItem; |
63 class WebInputElement; | 64 class WebInputElement; |
64 class WebPerformance; | 65 class WebPerformance; |
65 class WebRange; | 66 class WebRange; |
66 class WebSecurityOrigin; | 67 class WebSecurityOrigin; |
67 class WebString; | 68 class WebString; |
68 class WebURL; | 69 class WebURL; |
69 class WebURLLoader; | 70 class WebURLLoader; |
70 class WebURLRequest; | 71 class WebURLRequest; |
71 class WebView; | 72 class WebView; |
(...skipping 13 matching lines...) Expand all Loading... |
85 class WebFrame { | 86 class WebFrame { |
86 public: | 87 public: |
87 // Control of renderTreeAsText output | 88 // Control of renderTreeAsText output |
88 enum RenderAsTextControl { | 89 enum RenderAsTextControl { |
89 RenderAsTextNormal = 0, | 90 RenderAsTextNormal = 0, |
90 RenderAsTextDebug = 1 << 0, | 91 RenderAsTextDebug = 1 << 0, |
91 RenderAsTextPrinting = 1 << 1 | 92 RenderAsTextPrinting = 1 << 1 |
92 }; | 93 }; |
93 typedef unsigned RenderAsTextControls; | 94 typedef unsigned RenderAsTextControls; |
94 | 95 |
| 96 // Creates a WebView that is NOT yet initialized. You will need to |
| 97 // call initializeFrame to finish the initialization. It is valid |
| 98 // to pass null client pointers. |
| 99 // |
| 100 // TODO(ajwong): Check comment about initialization. |
| 101 WEBKIT_EXPORT static WebFrame* create(WebFrameClient*); |
| 102 |
95 // Returns the number of live WebFrame objects, used for leak checking. | 103 // Returns the number of live WebFrame objects, used for leak checking. |
96 WEBKIT_EXPORT static int instanceCount(); | 104 WEBKIT_EXPORT static int instanceCount(); |
97 | 105 |
98 // Returns the WebFrame associated with the current V8 context. This | 106 // Returns the WebFrame associated with the current V8 context. This |
99 // function can return 0 if the context is associated with a Document that | 107 // function can return 0 if the context is associated with a Document that |
100 // is not currently being displayed in a Frame. | 108 // is not currently being displayed in a Frame. |
101 WEBKIT_EXPORT static WebFrame* frameForCurrentContext(); | 109 WEBKIT_EXPORT static WebFrame* frameForCurrentContext(); |
102 | 110 |
103 // Returns the frame corresponding to the given context. This can return 0 | 111 // Returns the frame corresponding to the given context. This can return 0 |
104 // if the context is detached from the frame, or if the context doesn't | 112 // if the context is detached from the frame, or if the context doesn't |
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 // text form. This is used only by layout tests. | 658 // text form. This is used only by layout tests. |
651 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; | 659 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; |
652 | 660 |
653 protected: | 661 protected: |
654 ~WebFrame() { } | 662 ~WebFrame() { } |
655 }; | 663 }; |
656 | 664 |
657 } // namespace WebKit | 665 } // namespace WebKit |
658 | 666 |
659 #endif | 667 #endif |
OLD | NEW |