| 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 2066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2077 return frame() && | 2077 return frame() && |
| 2078 frame()->navigationScheduler().isNavigationScheduledWithin( | 2078 frame()->navigationScheduler().isNavigationScheduledWithin( |
| 2079 intervalInSeconds); | 2079 intervalInSeconds); |
| 2080 } | 2080 } |
| 2081 | 2081 |
| 2082 void WebLocalFrameImpl::setCommittedFirstRealLoad() { | 2082 void WebLocalFrameImpl::setCommittedFirstRealLoad() { |
| 2083 DCHECK(frame()); | 2083 DCHECK(frame()); |
| 2084 ensureFrameLoaderHasCommitted(frame()->loader()); | 2084 ensureFrameLoaderHasCommitted(frame()->loader()); |
| 2085 } | 2085 } |
| 2086 | 2086 |
| 2087 void WebLocalFrameImpl::setHasReceivedUserGesture() { |
| 2088 if (frame()) |
| 2089 frame()->document()->setHasReceivedUserGesture(); |
| 2090 } |
| 2091 |
| 2087 void WebLocalFrameImpl::sendOrientationChangeEvent() { | 2092 void WebLocalFrameImpl::sendOrientationChangeEvent() { |
| 2088 if (!frame()) | 2093 if (!frame()) |
| 2089 return; | 2094 return; |
| 2090 | 2095 |
| 2091 // Screen Orientation API | 2096 // Screen Orientation API |
| 2092 if (ScreenOrientationController::from(*frame())) | 2097 if (ScreenOrientationController::from(*frame())) |
| 2093 ScreenOrientationController::from(*frame())->notifyOrientationChanged(); | 2098 ScreenOrientationController::from(*frame())->notifyOrientationChanged(); |
| 2094 | 2099 |
| 2095 // Legacy window.orientation API | 2100 // Legacy window.orientation API |
| 2096 if (RuntimeEnabledFeatures::orientationEventEnabled() && frame()->domWindow()) | 2101 if (RuntimeEnabledFeatures::orientationEventEnabled() && frame()->domWindow()) |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2387 feature = UseCounter::ChromeLoadTimesNpnNegotiatedProtocol; | 2392 feature = UseCounter::ChromeLoadTimesNpnNegotiatedProtocol; |
| 2388 } else if (metric == "wasAlternateProtocolAvailable") { | 2393 } else if (metric == "wasAlternateProtocolAvailable") { |
| 2389 feature = UseCounter::ChromeLoadTimesWasAlternateProtocolAvailable; | 2394 feature = UseCounter::ChromeLoadTimesWasAlternateProtocolAvailable; |
| 2390 } else if (metric == "connectionInfo") { | 2395 } else if (metric == "connectionInfo") { |
| 2391 feature = UseCounter::ChromeLoadTimesConnectionInfo; | 2396 feature = UseCounter::ChromeLoadTimesConnectionInfo; |
| 2392 } | 2397 } |
| 2393 UseCounter::count(frame(), feature); | 2398 UseCounter::count(frame(), feature); |
| 2394 } | 2399 } |
| 2395 | 2400 |
| 2396 } // namespace blink | 2401 } // namespace blink |
| OLD | NEW |