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 2034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2045 void WebLocalFrameImpl::setCommittedFirstRealLoad() { | 2045 void WebLocalFrameImpl::setCommittedFirstRealLoad() { |
2046 DCHECK(frame()); | 2046 DCHECK(frame()); |
2047 ensureFrameLoaderHasCommitted(frame()->loader()); | 2047 ensureFrameLoaderHasCommitted(frame()->loader()); |
2048 } | 2048 } |
2049 | 2049 |
2050 void WebLocalFrameImpl::setHasReceivedUserGesture() { | 2050 void WebLocalFrameImpl::setHasReceivedUserGesture() { |
2051 if (frame()) | 2051 if (frame()) |
2052 frame()->document()->setHasReceivedUserGesture(); | 2052 frame()->document()->setHasReceivedUserGesture(); |
2053 } | 2053 } |
2054 | 2054 |
| 2055 void WebLocalFrameImpl::blinkFeatureUsageReport(const std::set<int>& features) { |
| 2056 DCHECK(!features.empty()); |
| 2057 // Assimilate all features used/performed by the browser into UseCounter. |
| 2058 for (int feature : features) { |
| 2059 UseCounter::count(frame(), static_cast<UseCounter::Feature>(feature)); |
| 2060 } |
| 2061 } |
| 2062 |
| 2063 void WebLocalFrameImpl::mixedContentFoundByTheBrowser( |
| 2064 const WebURL& mainResourceUrl, |
| 2065 const WebURL& mixedContentUrl, |
| 2066 WebURLRequest::RequestContext requestContext, |
| 2067 bool wasAllowed, |
| 2068 bool hadRedirect) { |
| 2069 DCHECK(frame()); |
| 2070 MixedContentChecker::mixedContentFoundByTheBrowser( |
| 2071 frame(), mainResourceUrl, mixedContentUrl, requestContext, wasAllowed, |
| 2072 hadRedirect); |
| 2073 } |
| 2074 |
2055 void WebLocalFrameImpl::sendOrientationChangeEvent() { | 2075 void WebLocalFrameImpl::sendOrientationChangeEvent() { |
2056 if (!frame()) | 2076 if (!frame()) |
2057 return; | 2077 return; |
2058 | 2078 |
2059 // Screen Orientation API | 2079 // Screen Orientation API |
2060 if (ScreenOrientationControllerImpl::from(*frame())) | 2080 if (ScreenOrientationControllerImpl::from(*frame())) |
2061 ScreenOrientationControllerImpl::from(*frame())->notifyOrientationChanged(); | 2081 ScreenOrientationControllerImpl::from(*frame())->notifyOrientationChanged(); |
2062 | 2082 |
2063 // Legacy window.orientation API | 2083 // Legacy window.orientation API |
2064 if (RuntimeEnabledFeatures::orientationEventEnabled() && frame()->domWindow()) | 2084 if (RuntimeEnabledFeatures::orientationEventEnabled() && frame()->domWindow()) |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2361 ->frameScheduler() | 2381 ->frameScheduler() |
2362 ->unthrottledTaskRunner() | 2382 ->unthrottledTaskRunner() |
2363 ->toSingleThreadTaskRunner(); | 2383 ->toSingleThreadTaskRunner(); |
2364 } | 2384 } |
2365 | 2385 |
2366 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const { | 2386 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const { |
2367 return m_inputMethodController.get(); | 2387 return m_inputMethodController.get(); |
2368 } | 2388 } |
2369 | 2389 |
2370 } // namespace blink | 2390 } // namespace blink |
OLD | NEW |