| 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/page/Chrome.h" | 142 #include "core/page/Chrome.h" |
| 143 #include "core/page/EventHandler.h" | 143 #include "core/page/EventHandler.h" |
| 144 #include "core/page/FocusController.h" | 144 #include "core/page/FocusController.h" |
| 145 #include "core/page/FrameTree.h" | 145 #include "core/page/FrameTree.h" |
| 146 #include "core/page/Page.h" | 146 #include "core/page/Page.h" |
| 147 #include "core/page/PrintContext.h" | 147 #include "core/page/PrintContext.h" |
| 148 #include "core/rendering/RenderBox.h" | 148 #include "core/rendering/RenderBox.h" |
| 149 #include "core/rendering/RenderView.h" | 149 #include "core/rendering/RenderView.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 1774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1936 v8::Handle<v8::Value> WebLocalFrameImpl::executeScriptAndReturnValueForTests(con
st WebScriptSource& source) | 1937 v8::Handle<v8::Value> WebLocalFrameImpl::executeScriptAndReturnValueForTests(con
st WebScriptSource& source) |
| 1937 { | 1938 { |
| 1938 // FIXME: This fake UserGestureIndicator is required for a bunch of browser | 1939 // FIXME: This fake UserGestureIndicator is required for a bunch of browser |
| 1939 // tests to pass. We should update the tests to simulate input and get rid | 1940 // tests to pass. We should update the tests to simulate input and get rid |
| 1940 // of this. | 1941 // of this. |
| 1941 // http://code.google.com/p/chromium/issues/detail?id=86397 | 1942 // http://code.google.com/p/chromium/issues/detail?id=86397 |
| 1942 UserGestureIndicator gestureIndicator(DefinitelyProcessingNewUserGesture); | 1943 UserGestureIndicator gestureIndicator(DefinitelyProcessingNewUserGesture); |
| 1943 return executeScriptAndReturnValue(source); | 1944 return executeScriptAndReturnValue(source); |
| 1944 } | 1945 } |
| 1945 | 1946 |
| 1947 void WebLocalFrameImpl::willShowInstallBannerPrompt(const WebString& platform, b
ool* cancel) |
| 1948 { |
| 1949 if (!RuntimeEnabledFeatures::appBannerEnabled() || !frame()) |
| 1950 return; |
| 1951 |
| 1952 AppBannerController::willShowInstallBannerPrompt(frame(), platform, cancel); |
| 1953 } |
| 1954 |
| 1946 void WebLocalFrameImpl::willDetachParent() | 1955 void WebLocalFrameImpl::willDetachParent() |
| 1947 { | 1956 { |
| 1948 // Do not expect string scoping results from any frames that got detached | 1957 // Do not expect string scoping results from any frames that got detached |
| 1949 // in the middle of the operation. | 1958 // in the middle of the operation. |
| 1950 if (m_textFinder && m_textFinder->scopingInProgress()) { | 1959 if (m_textFinder && m_textFinder->scopingInProgress()) { |
| 1951 | 1960 |
| 1952 // There is a possibility that the frame being detached was the only | 1961 // There is a possibility that the frame being detached was the only |
| 1953 // pending one. We need to make sure final replies can be sent. | 1962 // pending one. We need to make sure final replies can be sent. |
| 1954 m_textFinder->flushCurrentScoping(); | 1963 m_textFinder->flushCurrentScoping(); |
| 1955 | 1964 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2003 { | 2012 { |
| 2004 m_frameWidget = frameWidget; | 2013 m_frameWidget = frameWidget; |
| 2005 } | 2014 } |
| 2006 | 2015 |
| 2007 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const | 2016 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const |
| 2008 { | 2017 { |
| 2009 return m_frameWidget; | 2018 return m_frameWidget; |
| 2010 } | 2019 } |
| 2011 | 2020 |
| 2012 } // namespace blink | 2021 } // namespace blink |
| OLD | NEW |