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 2273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2284 if (!node || !(isHTMLCanvasElement(*node) || isHTMLImageElement(*node))) | 2284 if (!node || !(isHTMLCanvasElement(*node) || isHTMLImageElement(*node))) |
2285 return; | 2285 return; |
2286 | 2286 |
2287 String url = toElement(*node).imageSourceURL(); | 2287 String url = toElement(*node).imageSourceURL(); |
2288 if (!KURL(KURL(), url).protocolIsData()) | 2288 if (!KURL(KURL(), url).protocolIsData()) |
2289 return; | 2289 return; |
2290 | 2290 |
2291 m_client->saveImageFromDataURL(url); | 2291 m_client->saveImageFromDataURL(url); |
2292 } | 2292 } |
2293 | 2293 |
| 2294 void WebLocalFrameImpl::setEngagementLevel(mojom::EngagementLevel level) { |
| 2295 frame()->document()->setEngagementLevel(level); |
| 2296 } |
| 2297 |
2294 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const { | 2298 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const { |
2295 if (!frame()) | 2299 if (!frame()) |
2296 return WebSandboxFlags::None; | 2300 return WebSandboxFlags::None; |
2297 return static_cast<WebSandboxFlags>( | 2301 return static_cast<WebSandboxFlags>( |
2298 frame()->loader().effectiveSandboxFlags()); | 2302 frame()->loader().effectiveSandboxFlags()); |
2299 } | 2303 } |
2300 | 2304 |
2301 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags) { | 2305 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags) { |
2302 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); | 2306 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); |
2303 } | 2307 } |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2357 ->frameScheduler() | 2361 ->frameScheduler() |
2358 ->unthrottledTaskRunner() | 2362 ->unthrottledTaskRunner() |
2359 ->toSingleThreadTaskRunner(); | 2363 ->toSingleThreadTaskRunner(); |
2360 } | 2364 } |
2361 | 2365 |
2362 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const { | 2366 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const { |
2363 return m_inputMethodController.get(); | 2367 return m_inputMethodController.get(); |
2364 } | 2368 } |
2365 | 2369 |
2366 } // namespace blink | 2370 } // namespace blink |
OLD | NEW |