OLD | NEW |
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 1946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1957 void WebViewImpl::didEnterFullscreen() | 1957 void WebViewImpl::didEnterFullscreen() |
1958 { | 1958 { |
1959 m_fullscreenController->didEnterFullscreen(); | 1959 m_fullscreenController->didEnterFullscreen(); |
1960 } | 1960 } |
1961 | 1961 |
1962 void WebViewImpl::didExitFullscreen() | 1962 void WebViewImpl::didExitFullscreen() |
1963 { | 1963 { |
1964 m_fullscreenController->didExitFullscreen(); | 1964 m_fullscreenController->didExitFullscreen(); |
1965 } | 1965 } |
1966 | 1966 |
1967 void WebViewImpl::didUpdateFullScreenSize() | 1967 void WebViewImpl::didUpdateFullscreenSize() |
1968 { | 1968 { |
1969 m_fullscreenController->updateSize(); | 1969 m_fullscreenController->updateSize(); |
1970 } | 1970 } |
1971 | 1971 |
1972 void WebViewImpl::beginFrame(double lastFrameTimeMonotonic) | 1972 void WebViewImpl::beginFrame(double lastFrameTimeMonotonic) |
1973 { | 1973 { |
1974 TRACE_EVENT1("blink", "WebViewImpl::beginFrame", "frameTime", lastFrameTimeM
onotonic); | 1974 TRACE_EVENT1("blink", "WebViewImpl::beginFrame", "frameTime", lastFrameTimeM
onotonic); |
1975 DCHECK(lastFrameTimeMonotonic); | 1975 DCHECK(lastFrameTimeMonotonic); |
1976 | 1976 |
1977 // Create synthetic wheel events as necessary for fling. | 1977 // Create synthetic wheel events as necessary for fling. |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2090 if (!page()) | 2090 if (!page()) |
2091 return; | 2091 return; |
2092 if (!page()->mainFrame()->isLocalFrame()) | 2092 if (!page()->mainFrame()->isLocalFrame()) |
2093 return; | 2093 return; |
2094 FrameView* view = page()->deprecatedLocalMainFrame()->view(); | 2094 FrameView* view = page()->deprecatedLocalMainFrame()->view(); |
2095 | 2095 |
2096 WebRect damagedRect(0, 0, m_size.width, m_size.height); | 2096 WebRect damagedRect(0, 0, m_size.width, m_size.height); |
2097 view->invalidateRect(damagedRect); | 2097 view->invalidateRect(damagedRect); |
2098 } | 2098 } |
2099 | 2099 |
2100 void WebViewImpl::enterFullScreenForElement(Element* element) | 2100 void WebViewImpl::enterFullscreenForElement(Element* element) |
2101 { | 2101 { |
2102 m_fullscreenController->enterFullScreenForElement(element); | 2102 m_fullscreenController->enterFullscreenForElement(element); |
2103 } | 2103 } |
2104 | 2104 |
2105 void WebViewImpl::exitFullScreenForElement(Element* element) | 2105 void WebViewImpl::exitFullscreenForElement(Element* element) |
2106 { | 2106 { |
2107 m_fullscreenController->exitFullScreenForElement(element); | 2107 m_fullscreenController->exitFullscreenForElement(element); |
2108 } | 2108 } |
2109 | 2109 |
2110 bool WebViewImpl::hasHorizontalScrollbar() | 2110 bool WebViewImpl::hasHorizontalScrollbar() |
2111 { | 2111 { |
2112 return mainFrameImpl()->frameView()->horizontalScrollbar(); | 2112 return mainFrameImpl()->frameView()->horizontalScrollbar(); |
2113 } | 2113 } |
2114 | 2114 |
2115 bool WebViewImpl::hasVerticalScrollbar() | 2115 bool WebViewImpl::hasVerticalScrollbar() |
2116 { | 2116 { |
2117 return mainFrameImpl()->frameView()->verticalScrollbar(); | 2117 return mainFrameImpl()->frameView()->verticalScrollbar(); |
(...skipping 2469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4587 return nullptr; | 4587 return nullptr; |
4588 return focusedFrame; | 4588 return focusedFrame; |
4589 } | 4589 } |
4590 | 4590 |
4591 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const | 4591 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const |
4592 { | 4592 { |
4593 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; | 4593 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; |
4594 } | 4594 } |
4595 | 4595 |
4596 } // namespace blink | 4596 } // namespace blink |
OLD | NEW |