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

Side by Side Diff: third_party/WebKit/Source/web/WebViewImpl.h

Issue 2855843002: Reland "Sync requestFullscreen() and exitFullscreen() algorithms with the spec" (Closed)
Patch Set: Reland "Sync requestFullscreen() and exitFullscreen() algorithms with the spec" Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 } 432 }
433 float FakePageScaleAnimationPageScaleForTesting() const override { 433 float FakePageScaleAnimationPageScaleForTesting() const override {
434 return fake_page_scale_animation_page_scale_factor_; 434 return fake_page_scale_animation_page_scale_factor_;
435 } 435 }
436 bool FakePageScaleAnimationUseAnchorForTesting() const override { 436 bool FakePageScaleAnimationUseAnchorForTesting() const override {
437 return fake_page_scale_animation_use_anchor_; 437 return fake_page_scale_animation_use_anchor_;
438 } 438 }
439 439
440 void EnterFullscreen(LocalFrame&) override; 440 void EnterFullscreen(LocalFrame&) override;
441 void ExitFullscreen(LocalFrame&) override; 441 void ExitFullscreen(LocalFrame&) override;
442 void FullscreenElementChanged(Element*, Element*) override; 442 void FullscreenElementChanged(Element* from_element,
443 Element* to_element) override;
443 444
444 // Exposed for the purpose of overriding device metrics. 445 // Exposed for the purpose of overriding device metrics.
445 void SendResizeEventAndRepaint(); 446 void SendResizeEventAndRepaint();
446 447
447 // Exposed for testing purposes. 448 // Exposed for testing purposes.
448 bool HasHorizontalScrollbar() override; 449 bool HasHorizontalScrollbar() override;
449 bool HasVerticalScrollbar() override; 450 bool HasVerticalScrollbar() override;
450 451
451 // Exposed for tests. 452 // Exposed for tests.
452 unsigned NumLinkHighlights() override { return link_highlights_.size(); } 453 unsigned NumLinkHighlights() override { return link_highlights_.size(); }
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 Persistent<ResizeViewportAnchor> resize_viewport_anchor_; 742 Persistent<ResizeViewportAnchor> resize_viewport_anchor_;
742 }; 743 };
743 744
744 // We have no ways to check if the specified WebView is an instance of 745 // We have no ways to check if the specified WebView is an instance of
745 // WebViewImpl because WebViewImpl is the only implementation of WebView. 746 // WebViewImpl because WebViewImpl is the only implementation of WebView.
746 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 747 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
747 748
748 } // namespace blink 749 } // namespace blink
749 750
750 #endif 751 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp ('k') | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698