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

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: rebase 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
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.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) 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 2066 matching lines...) Expand 10 before | Expand all | Expand 10 after
2077 } 2077 }
2078 2078
2079 void WebViewImpl::enterFullscreenForElement(Element* element) { 2079 void WebViewImpl::enterFullscreenForElement(Element* element) {
2080 m_fullscreenController->enterFullscreenForElement(element); 2080 m_fullscreenController->enterFullscreenForElement(element);
2081 } 2081 }
2082 2082
2083 void WebViewImpl::exitFullscreen(LocalFrame* frame) { 2083 void WebViewImpl::exitFullscreen(LocalFrame* frame) {
2084 m_fullscreenController->exitFullscreen(frame); 2084 m_fullscreenController->exitFullscreen(frame);
2085 } 2085 }
2086 2086
2087 void WebViewImpl::fullscreenElementChanged(Element* fromElement,
2088 Element* toElement) {
2089 m_fullscreenController->fullscreenElementChanged(fromElement, toElement);
2090 }
2091
2087 bool WebViewImpl::hasHorizontalScrollbar() { 2092 bool WebViewImpl::hasHorizontalScrollbar() {
2088 return mainFrameImpl() 2093 return mainFrameImpl()
2089 ->frameView() 2094 ->frameView()
2090 ->layoutViewportScrollableArea() 2095 ->layoutViewportScrollableArea()
2091 ->horizontalScrollbar(); 2096 ->horizontalScrollbar();
2092 } 2097 }
2093 2098
2094 bool WebViewImpl::hasVerticalScrollbar() { 2099 bool WebViewImpl::hasVerticalScrollbar() {
2095 return mainFrameImpl() 2100 return mainFrameImpl()
2096 ->frameView() 2101 ->frameView()
(...skipping 2102 matching lines...) Expand 10 before | Expand all | Expand 10 after
4199 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) 4204 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame())
4200 return nullptr; 4205 return nullptr;
4201 return focusedFrame; 4206 return focusedFrame;
4202 } 4207 }
4203 4208
4204 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { 4209 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const {
4205 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; 4210 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr;
4206 } 4211 }
4207 4212
4208 } // namespace blink 4213 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698