OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 #include "core/loader/FrameLoader.h" | 142 #include "core/loader/FrameLoader.h" |
143 #include "core/loader/HistoryItem.h" | 143 #include "core/loader/HistoryItem.h" |
144 #include "core/page/Chrome.h" | 144 #include "core/page/Chrome.h" |
145 #include "core/page/EventHandler.h" | 145 #include "core/page/EventHandler.h" |
146 #include "core/page/FocusController.h" | 146 #include "core/page/FocusController.h" |
147 #include "core/page/FrameTree.h" | 147 #include "core/page/FrameTree.h" |
148 #include "core/page/Page.h" | 148 #include "core/page/Page.h" |
149 #include "core/page/PrintContext.h" | 149 #include "core/page/PrintContext.h" |
150 #include "core/timing/DOMWindowPerformance.h" | 150 #include "core/timing/DOMWindowPerformance.h" |
151 #include "core/timing/Performance.h" | 151 #include "core/timing/Performance.h" |
| 152 #include "modules/app_banner/AppBannerController.h" |
152 #include "modules/geolocation/GeolocationController.h" | 153 #include "modules/geolocation/GeolocationController.h" |
153 #include "modules/notifications/NotificationPermissionClient.h" | 154 #include "modules/notifications/NotificationPermissionClient.h" |
154 #include "modules/presentation/PresentationController.h" | 155 #include "modules/presentation/PresentationController.h" |
155 #include "modules/push_messaging/PushController.h" | 156 #include "modules/push_messaging/PushController.h" |
156 #include "modules/screen_orientation/ScreenOrientationController.h" | 157 #include "modules/screen_orientation/ScreenOrientationController.h" |
157 #include "platform/ScriptForbiddenScope.h" | 158 #include "platform/ScriptForbiddenScope.h" |
158 #include "platform/TraceEvent.h" | 159 #include "platform/TraceEvent.h" |
159 #include "platform/UserGestureIndicator.h" | 160 #include "platform/UserGestureIndicator.h" |
160 #include "platform/clipboard/ClipboardUtilities.h" | 161 #include "platform/clipboard/ClipboardUtilities.h" |
161 #include "platform/fonts/FontCache.h" | 162 #include "platform/fonts/FontCache.h" |
(...skipping 1777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1939 | 1940 |
1940 // Screen Orientation API | 1941 // Screen Orientation API |
1941 if (ScreenOrientationController::from(*frame())) | 1942 if (ScreenOrientationController::from(*frame())) |
1942 ScreenOrientationController::from(*frame())->notifyOrientationChanged(); | 1943 ScreenOrientationController::from(*frame())->notifyOrientationChanged(); |
1943 | 1944 |
1944 // Legacy window.orientation API | 1945 // Legacy window.orientation API |
1945 if (RuntimeEnabledFeatures::orientationEventEnabled() && frame()->domWindow(
)) | 1946 if (RuntimeEnabledFeatures::orientationEventEnabled() && frame()->domWindow(
)) |
1946 frame()->localDOMWindow()->sendOrientationChangeEvent(); | 1947 frame()->localDOMWindow()->sendOrientationChangeEvent(); |
1947 } | 1948 } |
1948 | 1949 |
| 1950 void WebLocalFrameImpl::willShowInstallBannerPrompt(const WebString& platform, W
ebAppBannerPromptReply* reply) |
| 1951 { |
| 1952 if (!RuntimeEnabledFeatures::appBannerEnabled() || !frame()) |
| 1953 return; |
| 1954 |
| 1955 AppBannerController::willShowInstallBannerPrompt(frame(), platform, reply); |
| 1956 } |
| 1957 |
1949 void WebLocalFrameImpl::willDetachParent() | 1958 void WebLocalFrameImpl::willDetachParent() |
1950 { | 1959 { |
1951 // Do not expect string scoping results from any frames that got detached | 1960 // Do not expect string scoping results from any frames that got detached |
1952 // in the middle of the operation. | 1961 // in the middle of the operation. |
1953 if (m_textFinder && m_textFinder->scopingInProgress()) { | 1962 if (m_textFinder && m_textFinder->scopingInProgress()) { |
1954 | 1963 |
1955 // There is a possibility that the frame being detached was the only | 1964 // There is a possibility that the frame being detached was the only |
1956 // pending one. We need to make sure final replies can be sent. | 1965 // pending one. We need to make sure final replies can be sent. |
1957 m_textFinder->flushCurrentScoping(); | 1966 m_textFinder->flushCurrentScoping(); |
1958 | 1967 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2006 { | 2015 { |
2007 m_frameWidget = frameWidget; | 2016 m_frameWidget = frameWidget; |
2008 } | 2017 } |
2009 | 2018 |
2010 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const | 2019 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const |
2011 { | 2020 { |
2012 return m_frameWidget; | 2021 return m_frameWidget; |
2013 } | 2022 } |
2014 | 2023 |
2015 } // namespace blink | 2024 } // namespace blink |
OLD | NEW |