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 2278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2289 if (!node || !(isHTMLCanvasElement(*node) || isHTMLImageElement(*node))) | 2289 if (!node || !(isHTMLCanvasElement(*node) || isHTMLImageElement(*node))) |
2290 return; | 2290 return; |
2291 | 2291 |
2292 String url = toElement(*node).imageSourceURL(); | 2292 String url = toElement(*node).imageSourceURL(); |
2293 if (!KURL(KURL(), url).protocolIsData()) | 2293 if (!KURL(KURL(), url).protocolIsData()) |
2294 return; | 2294 return; |
2295 | 2295 |
2296 m_client->saveImageFromDataURL(url); | 2296 m_client->saveImageFromDataURL(url); |
2297 } | 2297 } |
2298 | 2298 |
| 2299 void WebLocalFrameImpl::setEngagementLevel(mojom::EngagementLevel level) { |
| 2300 frame()->document()->setEngagementLevel(level); |
| 2301 } |
| 2302 |
2299 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const { | 2303 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const { |
2300 if (!frame()) | 2304 if (!frame()) |
2301 return WebSandboxFlags::None; | 2305 return WebSandboxFlags::None; |
2302 return static_cast<WebSandboxFlags>( | 2306 return static_cast<WebSandboxFlags>( |
2303 frame()->loader().effectiveSandboxFlags()); | 2307 frame()->loader().effectiveSandboxFlags()); |
2304 } | 2308 } |
2305 | 2309 |
2306 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags) { | 2310 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags) { |
2307 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); | 2311 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); |
2308 } | 2312 } |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2341 feature = UseCounter::ChromeLoadTimesConnectionInfo; | 2345 feature = UseCounter::ChromeLoadTimesConnectionInfo; |
2342 } | 2346 } |
2343 UseCounter::count(frame(), feature); | 2347 UseCounter::count(frame(), feature); |
2344 } | 2348 } |
2345 | 2349 |
2346 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const { | 2350 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const { |
2347 return m_inputMethodController.get(); | 2351 return m_inputMethodController.get(); |
2348 } | 2352 } |
2349 | 2353 |
2350 } // namespace blink | 2354 } // namespace blink |
OLD | NEW |