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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 virtual void resetDeviceColorProfileForTesting() = 0; | 327 virtual void resetDeviceColorProfileForTesting() = 0; |
328 | 328 |
329 // Resize the view at the same time as changing the state of the top | 329 // Resize the view at the same time as changing the state of the top |
330 // controls. If |topControlsShrinkLayout| is true, the embedder shrunk the | 330 // controls. If |topControlsShrinkLayout| is true, the embedder shrunk the |
331 // WebView size by the top controls height. | 331 // WebView size by the top controls height. |
332 virtual void resizeWithTopControls( | 332 virtual void resizeWithTopControls( |
333 const WebSize&, | 333 const WebSize&, |
334 float topControlsHeight, | 334 float topControlsHeight, |
335 bool topControlsShrinkLayout) = 0; | 335 bool topControlsShrinkLayout) = 0; |
336 | 336 |
| 337 // This is called in OOPIF scenarios when an element contained in a remote |
| 338 // <iframe> is about to enter fullscreen. The provided WebRemoteFrame |
| 339 // identifies the frame containing the fullscreen element, and its frame |
| 340 // owner corresponds to the HTMLFrameOwnerElement to be fullscreened. |
| 341 // Calling this prepares FullscreenController to enter fullscreen for that |
| 342 // frame owner. |
| 343 virtual void willEnterFullScreen(WebRemoteFrame*) = 0; |
| 344 |
337 // Auto-Resize ----------------------------------------------------------- | 345 // Auto-Resize ----------------------------------------------------------- |
338 | 346 |
339 // In auto-resize mode, the view is automatically adjusted to fit the html | 347 // In auto-resize mode, the view is automatically adjusted to fit the html |
340 // content within the given bounds. | 348 // content within the given bounds. |
341 virtual void enableAutoResizeMode( | 349 virtual void enableAutoResizeMode( |
342 const WebSize& minSize, | 350 const WebSize& minSize, |
343 const WebSize& maxSize) = 0; | 351 const WebSize& maxSize) = 0; |
344 | 352 |
345 // Turn off auto-resize. | 353 // Turn off auto-resize. |
346 virtual void disableAutoResizeMode() = 0; | 354 virtual void disableAutoResizeMode() = 0; |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 // completed. | 541 // completed. |
534 WebWidget* widget() { return this; } | 542 WebWidget* widget() { return this; } |
535 | 543 |
536 protected: | 544 protected: |
537 ~WebView() {} | 545 ~WebView() {} |
538 }; | 546 }; |
539 | 547 |
540 } // namespace blink | 548 } // namespace blink |
541 | 549 |
542 #endif | 550 #endif |
OLD | NEW |