| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 // If set to false, do not draw scrollbars on this frame's view. | 153 // If set to false, do not draw scrollbars on this frame's view. |
| 154 virtual void setCanHaveScrollbars(bool) = 0; | 154 virtual void setCanHaveScrollbars(bool) = 0; |
| 155 | 155 |
| 156 // The scroll offset from the top-left corner of the frame in pixels. | 156 // The scroll offset from the top-left corner of the frame in pixels. |
| 157 virtual WebSize scrollOffset() const = 0; | 157 virtual WebSize scrollOffset() const = 0; |
| 158 virtual void setScrollOffset(const WebSize&) = 0; | 158 virtual void setScrollOffset(const WebSize&) = 0; |
| 159 | 159 |
| 160 // The minimum and maxium scroll positions in pixels. | 160 // The minimum and maxium scroll positions in pixels. |
| 161 virtual WebSize minimumScrollOffset() const = 0; | 161 virtual WebSize minimumScrollOffset() const = 0; |
| 162 virtual WebSize maximumScrollOffset() const = 0; | 162 virtual WebSize maximumScrollOffset() const = 0; |
| 163 | 163 |
| 164 // The size of the contents area. | 164 // The size of the contents area. |
| 165 virtual WebSize contentsSize() const = 0; | 165 virtual WebSize contentsSize() const = 0; |
| 166 | 166 |
| 167 // Returns the minimum preferred width of the content contained in the | 167 // Returns the minimum preferred width of the content contained in the |
| 168 // current document. | 168 // current document. |
| 169 virtual int contentsPreferredWidth() const = 0; | 169 virtual int contentsPreferredWidth() const = 0; |
| 170 | 170 |
| 171 // Returns the scroll height of the document element. This is | 171 // Returns the scroll height of the document element. This is |
| 172 // equivalent to the DOM property of the same name, and is the minimum | 172 // equivalent to the DOM property of the same name, and is the minimum |
| 173 // height required to display the document without scrollbars. | 173 // height required to display the document without scrollbars. |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 // text form. This is used only by layout tests. | 615 // text form. This is used only by layout tests. |
| 616 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; | 616 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; |
| 617 | 617 |
| 618 protected: | 618 protected: |
| 619 ~WebFrame() { } | 619 ~WebFrame() { } |
| 620 }; | 620 }; |
| 621 | 621 |
| 622 } // namespace WebKit | 622 } // namespace WebKit |
| 623 | 623 |
| 624 #endif | 624 #endif |
| OLD | NEW |