OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
9 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
10 #include "skia/ext/bitmap_platform_device.h" | 10 #include "skia/ext/bitmap_platform_device.h" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 133 |
134 // Returns the URL to the favorite icon for the frame. An empty GURL is | 134 // Returns the URL to the favorite icon for the frame. An empty GURL is |
135 // returned if the frame has not finished loading, or the frame's URL | 135 // returned if the frame has not finished loading, or the frame's URL |
136 // protocol is not http or https. | 136 // protocol is not http or https. |
137 virtual GURL GetFavIconURL() const = 0; | 137 virtual GURL GetFavIconURL() const = 0; |
138 | 138 |
139 // Returns the URL to the OpenSearch description document for the frame. If | 139 // Returns the URL to the OpenSearch description document for the frame. If |
140 // the page does not have a valid document, an empty GURL is returned. | 140 // the page does not have a valid document, an empty GURL is returned. |
141 virtual GURL GetOSDDURL() const = 0; | 141 virtual GURL GetOSDDURL() const = 0; |
142 | 142 |
| 143 // Return the minPrefWidth of the content contained in the current Document |
| 144 virtual int GetContentsPreferredWidth() const = 0; |
| 145 |
143 // Return the list of feeds specified in the document for the frame. If | 146 // Return the list of feeds specified in the document for the frame. If |
144 // the page does not have a valid document, an empty list is returned. | 147 // the page does not have a valid document, an empty list is returned. |
145 virtual scoped_refptr<class FeedList> GetFeedList() const = 0; | 148 virtual scoped_refptr<class FeedList> GetFeedList() const = 0; |
146 | 149 |
147 // Returns the committed data source, which is the last data source that has | 150 // Returns the committed data source, which is the last data source that has |
148 // successfully started loading. Will return NULL if no provisional data | 151 // successfully started loading. Will return NULL if no provisional data |
149 // has been committed. | 152 // has been committed. |
150 virtual WebDataSource* GetDataSource() const = 0; | 153 virtual WebDataSource* GetDataSource() const = 0; |
151 | 154 |
152 // Returns the provisional data source, which is a data source where a | 155 // Returns the provisional data source, which is a data source where a |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 virtual int PendingFrameUnloadEventCount() const = 0; | 383 virtual int PendingFrameUnloadEventCount() const = 0; |
381 | 384 |
382 protected: | 385 protected: |
383 virtual ~WebFrame() {} | 386 virtual ~WebFrame() {} |
384 | 387 |
385 private: | 388 private: |
386 DISALLOW_COPY_AND_ASSIGN(WebFrame); | 389 DISALLOW_COPY_AND_ASSIGN(WebFrame); |
387 }; | 390 }; |
388 | 391 |
389 #endif // WEBKIT_GLUE_WEBFRAME_H_ | 392 #endif // WEBKIT_GLUE_WEBFRAME_H_ |
OLD | NEW |