| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 #include "core/fetch/MemoryCache.h" | 79 #include "core/fetch/MemoryCache.h" |
| 80 #include "core/fetch/ResourceFetcher.h" | 80 #include "core/fetch/ResourceFetcher.h" |
| 81 #include "core/frame/DOMPoint.h" | 81 #include "core/frame/DOMPoint.h" |
| 82 #include "core/frame/DOMWindow.h" | 82 #include "core/frame/DOMWindow.h" |
| 83 #include "core/frame/FrameView.h" | 83 #include "core/frame/FrameView.h" |
| 84 #include "core/frame/LocalFrame.h" | 84 #include "core/frame/LocalFrame.h" |
| 85 #include "core/frame/Settings.h" | 85 #include "core/frame/Settings.h" |
| 86 #include "core/html/HTMLContentElement.h" | 86 #include "core/html/HTMLContentElement.h" |
| 87 #include "core/html/HTMLIFrameElement.h" | 87 #include "core/html/HTMLIFrameElement.h" |
| 88 #include "core/html/HTMLInputElement.h" | 88 #include "core/html/HTMLInputElement.h" |
| 89 #include "core/html/HTMLMediaElement.h" |
| 89 #include "core/html/HTMLSelectElement.h" | 90 #include "core/html/HTMLSelectElement.h" |
| 90 #include "core/html/HTMLTextAreaElement.h" | 91 #include "core/html/HTMLTextAreaElement.h" |
| 91 #include "core/html/forms/FormController.h" | 92 #include "core/html/forms/FormController.h" |
| 92 #include "core/html/shadow/ShadowElementNames.h" | 93 #include "core/html/shadow/ShadowElementNames.h" |
| 93 #include "core/html/shadow/TextControlInnerElements.h" | 94 #include "core/html/shadow/TextControlInnerElements.h" |
| 94 #include "core/inspector/InspectorClient.h" | 95 #include "core/inspector/InspectorClient.h" |
| 95 #include "core/inspector/InspectorConsoleAgent.h" | 96 #include "core/inspector/InspectorConsoleAgent.h" |
| 96 #include "core/inspector/InspectorController.h" | 97 #include "core/inspector/InspectorController.h" |
| 97 #include "core/inspector/InspectorCounters.h" | 98 #include "core/inspector/InspectorCounters.h" |
| 98 #include "core/inspector/InspectorFrontendChannel.h" | 99 #include "core/inspector/InspectorFrontendChannel.h" |
| (...skipping 1948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2047 FullscreenElementStack::from(*document).webkitWillExitFullScreenForElement(e
lement); | 2048 FullscreenElementStack::from(*document).webkitWillExitFullScreenForElement(e
lement); |
| 2048 } | 2049 } |
| 2049 | 2050 |
| 2050 void Internals::webkitDidExitFullScreenForElement(Document* document, Element* e
lement) | 2051 void Internals::webkitDidExitFullScreenForElement(Document* document, Element* e
lement) |
| 2051 { | 2052 { |
| 2052 if (!document) | 2053 if (!document) |
| 2053 return; | 2054 return; |
| 2054 FullscreenElementStack::from(*document).webkitDidExitFullScreenForElement(el
ement); | 2055 FullscreenElementStack::from(*document).webkitDidExitFullScreenForElement(el
ement); |
| 2055 } | 2056 } |
| 2056 | 2057 |
| 2058 void Internals::mediaPlayerRequestFullscreen(HTMLMediaElement* mediaElement) |
| 2059 { |
| 2060 mediaElement->mediaPlayerRequestFullscreen(); |
| 2061 } |
| 2062 |
| 2057 void Internals::registerURLSchemeAsBypassingContentSecurityPolicy(const String&
scheme) | 2063 void Internals::registerURLSchemeAsBypassingContentSecurityPolicy(const String&
scheme) |
| 2058 { | 2064 { |
| 2059 SchemeRegistry::registerURLSchemeAsBypassingContentSecurityPolicy(scheme); | 2065 SchemeRegistry::registerURLSchemeAsBypassingContentSecurityPolicy(scheme); |
| 2060 } | 2066 } |
| 2061 | 2067 |
| 2062 void Internals::removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(const
String& scheme) | 2068 void Internals::removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(const
String& scheme) |
| 2063 { | 2069 { |
| 2064 SchemeRegistry::removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(sc
heme); | 2070 SchemeRegistry::removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(sc
heme); |
| 2065 } | 2071 } |
| 2066 | 2072 |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2443 } | 2449 } |
| 2444 | 2450 |
| 2445 String Internals::textSurroundingNode(Node* node, int x, int y, unsigned long ma
xLength) | 2451 String Internals::textSurroundingNode(Node* node, int x, int y, unsigned long ma
xLength) |
| 2446 { | 2452 { |
| 2447 blink::WebPoint point(x, y); | 2453 blink::WebPoint point(x, y); |
| 2448 SurroundingText surroundingText(VisiblePosition(node->renderer()->positionFo
rPoint(static_cast<IntPoint>(point))), maxLength); | 2454 SurroundingText surroundingText(VisiblePosition(node->renderer()->positionFo
rPoint(static_cast<IntPoint>(point))), maxLength); |
| 2449 return surroundingText.content(); | 2455 return surroundingText.content(); |
| 2450 } | 2456 } |
| 2451 | 2457 |
| 2452 } | 2458 } |
| OLD | NEW |