| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 | 146 |
| 147 // For a WebFrame with contents being rendered in another process, this | 147 // For a WebFrame with contents being rendered in another process, this |
| 148 // sets a layer for use by the in-process compositor. WebLayer should be | 148 // sets a layer for use by the in-process compositor. WebLayer should be |
| 149 // null if the content is being rendered in the current process. | 149 // null if the content is being rendered in the current process. |
| 150 virtual void setRemoteWebLayer(WebLayer*) = 0; | 150 virtual void setRemoteWebLayer(WebLayer*) = 0; |
| 151 | 151 |
| 152 // Initializes the various client interfaces. | 152 // Initializes the various client interfaces. |
| 153 virtual void setPermissionClient(WebPermissionClient*) = 0; | 153 virtual void setPermissionClient(WebPermissionClient*) = 0; |
| 154 virtual void setSharedWorkerRepositoryClient(WebSharedWorkerRepositoryClient
*) = 0; | 154 virtual void setSharedWorkerRepositoryClient(WebSharedWorkerRepositoryClient
*) = 0; |
| 155 | 155 |
| 156 | |
| 157 // Geometry ----------------------------------------------------------- | 156 // Geometry ----------------------------------------------------------- |
| 158 | 157 |
| 159 // NOTE: These routines do not force page layout so their results may | 158 // NOTE: These routines do not force page layout so their results may |
| 160 // not be accurate if the page layout is out-of-date. | 159 // not be accurate if the page layout is out-of-date. |
| 161 | 160 |
| 162 // If set to false, do not draw scrollbars on this frame's view. | 161 // If set to false, do not draw scrollbars on this frame's view. |
| 163 virtual void setCanHaveScrollbars(bool) = 0; | 162 virtual void setCanHaveScrollbars(bool) = 0; |
| 164 | 163 |
| 165 // The scroll offset from the top-left corner of the frame in pixels. | 164 // The scroll offset from the top-left corner of the frame in pixels. |
| 166 virtual WebSize scrollOffset() const = 0; | 165 virtual WebSize scrollOffset() const = 0; |
| 167 virtual void setScrollOffset(const WebSize&) = 0; | 166 virtual void setScrollOffset(const WebSize&) = 0; |
| 168 | 167 |
| 169 // The minimum and maxium scroll positions in pixels. | 168 // The minimum and maxium scroll positions in pixels. |
| 170 virtual WebSize minimumScrollOffset() const = 0; | 169 virtual WebSize minimumScrollOffset() const = 0; |
| 171 virtual WebSize maximumScrollOffset() const = 0; | 170 virtual WebSize maximumScrollOffset() const = 0; |
| 172 | 171 |
| 173 // The size of the contents area. | 172 // The size of the contents area. |
| 174 virtual WebSize contentsSize() const = 0; | 173 virtual WebSize contentsSize() const = 0; |
| 175 | 174 |
| 176 // Returns true if the contents (minus scrollbars) has non-zero area. | 175 // Returns true if the contents (minus scrollbars) has non-zero area. |
| 177 virtual bool hasVisibleContent() const = 0; | 176 virtual bool hasVisibleContent() const = 0; |
| 178 | 177 |
| 179 // Returns the visible content rect (minus scrollbars, in absolute coordinat
e) | 178 // Returns the visible content rect (minus scrollbars, in absolute coordinat
e) |
| 180 virtual WebRect visibleContentRect() const = 0; | 179 virtual WebRect visibleContentRect() const = 0; |
| 181 | 180 |
| 182 virtual bool hasHorizontalScrollbar() const = 0; | 181 virtual bool hasHorizontalScrollbar() const = 0; |
| 183 virtual bool hasVerticalScrollbar() const = 0; | 182 virtual bool hasVerticalScrollbar() const = 0; |
| 184 | 183 |
| 185 | |
| 186 // Hierarchy ---------------------------------------------------------- | 184 // Hierarchy ---------------------------------------------------------- |
| 187 | 185 |
| 188 // Returns the containing view. | 186 // Returns the containing view. |
| 189 virtual WebView* view() const = 0; | 187 virtual WebView* view() const = 0; |
| 190 | 188 |
| 191 // Returns the frame that opened this frame or 0 if there is none. | 189 // Returns the frame that opened this frame or 0 if there is none. |
| 192 BLINK_EXPORT WebFrame* opener() const; | 190 BLINK_EXPORT WebFrame* opener() const; |
| 193 | 191 |
| 194 // Sets the frame that opened this one or 0 if there is none. | 192 // Sets the frame that opened this one or 0 if there is none. |
| 195 virtual void setOpener(WebFrame*); | 193 virtual void setOpener(WebFrame*); |
| (...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; | 692 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; |
| 695 }; | 693 }; |
| 696 | 694 |
| 697 #if BLINK_IMPLEMENTATION | 695 #if BLINK_IMPLEMENTATION |
| 698 Frame* toCoreFrame(const WebFrame*); | 696 Frame* toCoreFrame(const WebFrame*); |
| 699 #endif | 697 #endif |
| 700 | 698 |
| 701 } // namespace blink | 699 } // namespace blink |
| 702 | 700 |
| 703 #endif | 701 #endif |
| OLD | NEW |