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

Side by Side Diff: third_party/WebKit/Source/web/FullscreenController.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 28 matching lines...) Expand all
39 #include "platform/LayoutTestSupport.h" 39 #include "platform/LayoutTestSupport.h"
40 #include "platform/RuntimeEnabledFeatures.h" 40 #include "platform/RuntimeEnabledFeatures.h"
41 #include "public/platform/WebLayerTreeView.h" 41 #include "public/platform/WebLayerTreeView.h"
42 #include "public/web/WebFrameClient.h" 42 #include "public/web/WebFrameClient.h"
43 #include "web/WebLocalFrameImpl.h" 43 #include "web/WebLocalFrameImpl.h"
44 #include "web/WebSettingsImpl.h" 44 #include "web/WebSettingsImpl.h"
45 #include "web/WebViewImpl.h" 45 #include "web/WebViewImpl.h"
46 46
47 namespace blink { 47 namespace blink {
48 48
49 PassOwnPtrWillBeRawPtr<FullscreenController> FullscreenController::create(WebVie wImpl* webViewImpl) 49 RawPtr<FullscreenController> FullscreenController::create(WebViewImpl* webViewIm pl)
50 { 50 {
51 return adoptPtrWillBeNoop(new FullscreenController(webViewImpl)); 51 return (new FullscreenController(webViewImpl));
52 } 52 }
53 53
54 FullscreenController::FullscreenController(WebViewImpl* webViewImpl) 54 FullscreenController::FullscreenController(WebViewImpl* webViewImpl)
55 : m_webViewImpl(webViewImpl) 55 : m_webViewImpl(webViewImpl)
56 , m_haveEnteredFullscreen(false) 56 , m_haveEnteredFullscreen(false)
57 , m_exitFullscreenPageScaleFactor(0) 57 , m_exitFullscreenPageScaleFactor(0)
58 , m_isCancelingFullScreen(false) 58 , m_isCancelingFullScreen(false)
59 { 59 {
60 } 60 }
61 61
62 void FullscreenController::didEnterFullScreen() 62 void FullscreenController::didEnterFullScreen()
63 { 63 {
64 if (!m_provisionalFullScreenElement) 64 if (!m_provisionalFullScreenElement)
65 return; 65 return;
66 66
67 RefPtrWillBeRawPtr<Element> element = m_provisionalFullScreenElement.release (); 67 RawPtr<Element> element = m_provisionalFullScreenElement.release();
68 Document& document = element->document(); 68 Document& document = element->document();
69 m_fullScreenFrame = document.frame(); 69 m_fullScreenFrame = document.frame();
70 70
71 if (!m_fullScreenFrame) 71 if (!m_fullScreenFrame)
72 return; 72 return;
73 73
74 if (!m_haveEnteredFullscreen) { 74 if (!m_haveEnteredFullscreen) {
75 updatePageScaleConstraints(false); 75 updatePageScaleConstraints(false);
76 m_webViewImpl->setPageScaleFactor(1.0f); 76 m_webViewImpl->setPageScaleFactor(1.0f);
77 m_webViewImpl->mainFrame()->setScrollOffset(WebSize()); 77 m_webViewImpl->mainFrame()->setScrollOffset(WebSize());
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 } 201 }
202 202
203 DEFINE_TRACE(FullscreenController) 203 DEFINE_TRACE(FullscreenController)
204 { 204 {
205 visitor->trace(m_provisionalFullScreenElement); 205 visitor->trace(m_provisionalFullScreenElement);
206 visitor->trace(m_fullScreenFrame); 206 visitor->trace(m_fullScreenFrame);
207 } 207 }
208 208
209 } // namespace blink 209 } // namespace blink
210 210
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698