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 | |
345 // Auto-Resize ----------------------------------------------------------- | 337 // Auto-Resize ----------------------------------------------------------- |
346 | 338 |
347 // In auto-resize mode, the view is automatically adjusted to fit the html | 339 // In auto-resize mode, the view is automatically adjusted to fit the html |
348 // content within the given bounds. | 340 // content within the given bounds. |
349 virtual void enableAutoResizeMode( | 341 virtual void enableAutoResizeMode( |
350 const WebSize& minSize, | 342 const WebSize& minSize, |
351 const WebSize& maxSize) = 0; | 343 const WebSize& maxSize) = 0; |
352 | 344 |
353 // Turn off auto-resize. | 345 // Turn off auto-resize. |
354 virtual void disableAutoResizeMode() = 0; | 346 virtual void disableAutoResizeMode() = 0; |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 // completed. | 533 // completed. |
542 WebWidget* widget() { return this; } | 534 WebWidget* widget() { return this; } |
543 | 535 |
544 protected: | 536 protected: |
545 ~WebView() {} | 537 ~WebView() {} |
546 }; | 538 }; |
547 | 539 |
548 } // namespace blink | 540 } // namespace blink |
549 | 541 |
550 #endif | 542 #endif |
OLD | NEW |