Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(450)

Side by Side Diff: third_party/WebKit/public/web/WebView.h

Issue 2021513002: Move willEnterFullscreen to WebRemoteFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment about user gestures Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/public/web/WebRemoteFrame.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
346 // Auto-Resize ----------------------------------------------------------- 338 // Auto-Resize -----------------------------------------------------------
347 339
348 // In auto-resize mode, the view is automatically adjusted to fit the html 340 // In auto-resize mode, the view is automatically adjusted to fit the html
349 // content within the given bounds. 341 // content within the given bounds.
350 virtual void enableAutoResizeMode( 342 virtual void enableAutoResizeMode(
351 const WebSize& minSize, 343 const WebSize& minSize,
352 const WebSize& maxSize) = 0; 344 const WebSize& maxSize) = 0;
353 345
354 // Turn off auto-resize. 346 // Turn off auto-resize.
355 virtual void disableAutoResizeMode() = 0; 347 virtual void disableAutoResizeMode() = 0;
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 // completed. 534 // completed.
543 WebWidget* widget() { return this; } 535 WebWidget* widget() { return this; }
544 536
545 protected: 537 protected:
546 ~WebView() {} 538 ~WebView() {}
547 }; 539 };
548 540
549 } // namespace blink 541 } // namespace blink
550 542
551 #endif 543 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebRemoteFrame.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698