OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 2011, 2012 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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 | 301 |
302 // In fixed layout mode, the layout of the page is independent of the | 302 // In fixed layout mode, the layout of the page is independent of the |
303 // view port size, given by WebWidget::size(). | 303 // view port size, given by WebWidget::size(). |
304 | 304 |
305 virtual bool isFixedLayoutModeEnabled() const = 0; | 305 virtual bool isFixedLayoutModeEnabled() const = 0; |
306 virtual void enableFixedLayoutMode(bool enable) = 0; | 306 virtual void enableFixedLayoutMode(bool enable) = 0; |
307 | 307 |
308 virtual WebSize fixedLayoutSize() const = 0; | 308 virtual WebSize fixedLayoutSize() const = 0; |
309 virtual void setFixedLayoutSize(const WebSize&) = 0; | 309 virtual void setFixedLayoutSize(const WebSize&) = 0; |
310 | 310 |
| 311 virtual void setForceFixedLayoutSizeToEqualSize(bool) = 0; |
311 | 312 |
312 // Auto-Resize ----------------------------------------------------------- | 313 // Auto-Resize ----------------------------------------------------------- |
313 | 314 |
314 // In auto-resize mode, the view is automatically adjusted to fit the html | 315 // In auto-resize mode, the view is automatically adjusted to fit the html |
315 // content within the given bounds. | 316 // content within the given bounds. |
316 virtual void enableAutoResizeMode( | 317 virtual void enableAutoResizeMode( |
317 const WebSize& minSize, | 318 const WebSize& minSize, |
318 const WebSize& maxSize) = 0; | 319 const WebSize& maxSize) = 0; |
319 | 320 |
320 // Turn off auto-resize. | 321 // Turn off auto-resize. |
321 virtual void disableAutoResizeMode() = 0; | 322 virtual void disableAutoResizeMode() = 0; |
322 | 323 |
| 324 |
323 // Media --------------------------------------------------------------- | 325 // Media --------------------------------------------------------------- |
324 | 326 |
325 // Performs the specified media player action on the node at the given locat
ion. | 327 // Performs the specified media player action on the node at the given locat
ion. |
326 virtual void performMediaPlayerAction( | 328 virtual void performMediaPlayerAction( |
327 const WebMediaPlayerAction&, const WebPoint& location) = 0; | 329 const WebMediaPlayerAction&, const WebPoint& location) = 0; |
328 | 330 |
329 // Performs the specified plugin action on the node at the given location. | 331 // Performs the specified plugin action on the node at the given location. |
330 virtual void performPluginAction( | 332 virtual void performPluginAction( |
331 const WebPluginAction&, const WebPoint& location) = 0; | 333 const WebPluginAction&, const WebPoint& location) = 0; |
332 | 334 |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 | 514 |
513 // Testing functionality for TestRunner --------------------------------- | 515 // Testing functionality for TestRunner --------------------------------- |
514 | 516 |
515 protected: | 517 protected: |
516 ~WebView() {} | 518 ~WebView() {} |
517 }; | 519 }; |
518 | 520 |
519 } // namespace WebKit | 521 } // namespace WebKit |
520 | 522 |
521 #endif | 523 #endif |
OLD | NEW |