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

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

Issue 2530883002: Refactor overlay fullscreen video handling into a single callback (Closed)
Patch Set: documentation Created 4 years 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) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 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 2063 matching lines...) Expand 10 before | Expand all | Expand 10 after
2074 } 2074 }
2075 2075
2076 void WebViewImpl::enterFullscreenForElement(Element* element) { 2076 void WebViewImpl::enterFullscreenForElement(Element* element) {
2077 m_fullscreenController->enterFullscreenForElement(element); 2077 m_fullscreenController->enterFullscreenForElement(element);
2078 } 2078 }
2079 2079
2080 void WebViewImpl::exitFullscreen(LocalFrame* frame) { 2080 void WebViewImpl::exitFullscreen(LocalFrame* frame) {
2081 m_fullscreenController->exitFullscreen(frame); 2081 m_fullscreenController->exitFullscreen(frame);
2082 } 2082 }
2083 2083
2084 void WebViewImpl::fullscreenElementChanged(Element* fromElement,
2085 Element* toElement) {
2086 m_fullscreenController->fullscreenElementChanged(fromElement, toElement);
2087 }
2088
2084 bool WebViewImpl::hasHorizontalScrollbar() { 2089 bool WebViewImpl::hasHorizontalScrollbar() {
2085 return mainFrameImpl() 2090 return mainFrameImpl()
2086 ->frameView() 2091 ->frameView()
2087 ->layoutViewportScrollableArea() 2092 ->layoutViewportScrollableArea()
2088 ->horizontalScrollbar(); 2093 ->horizontalScrollbar();
2089 } 2094 }
2090 2095
2091 bool WebViewImpl::hasVerticalScrollbar() { 2096 bool WebViewImpl::hasVerticalScrollbar() {
2092 return mainFrameImpl() 2097 return mainFrameImpl()
2093 ->frameView() 2098 ->frameView()
(...skipping 2102 matching lines...) Expand 10 before | Expand all | Expand 10 after
4196 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) 4201 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame())
4197 return nullptr; 4202 return nullptr;
4198 return focusedFrame; 4203 return focusedFrame;
4199 } 4204 }
4200 4205
4201 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { 4206 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const {
4202 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; 4207 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr;
4203 } 4208 }
4204 4209
4205 } // namespace blink 4210 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698