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