Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp

Issue 2715173002: Final rename from FrameLoaderClient to LocalFrameClient: (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 20 matching lines...) Expand all
31 #include "bindings/core/v8/ScriptWrappableVisitor.h" 31 #include "bindings/core/v8/ScriptWrappableVisitor.h"
32 #include "bindings/core/v8/V8BindingMacros.h" 32 #include "bindings/core/v8/V8BindingMacros.h"
33 #include "bindings/modules/v8/HTMLCanvasElementOrOffscreenCanvas.h" 33 #include "bindings/modules/v8/HTMLCanvasElementOrOffscreenCanvas.h"
34 #include "bindings/modules/v8/WebGLAny.h" 34 #include "bindings/modules/v8/WebGLAny.h"
35 #include "core/dom/DOMArrayBuffer.h" 35 #include "core/dom/DOMArrayBuffer.h"
36 #include "core/dom/DOMTypedArray.h" 36 #include "core/dom/DOMTypedArray.h"
37 #include "core/dom/FlexibleArrayBufferView.h" 37 #include "core/dom/FlexibleArrayBufferView.h"
38 #include "core/dom/TaskRunnerHelper.h" 38 #include "core/dom/TaskRunnerHelper.h"
39 #include "core/frame/ImageBitmap.h" 39 #include "core/frame/ImageBitmap.h"
40 #include "core/frame/LocalFrame.h" 40 #include "core/frame/LocalFrame.h"
41 #include "core/frame/LocalFrameClient.h"
41 #include "core/frame/Settings.h" 42 #include "core/frame/Settings.h"
42 #include "core/html/HTMLCanvasElement.h" 43 #include "core/html/HTMLCanvasElement.h"
43 #include "core/html/HTMLImageElement.h" 44 #include "core/html/HTMLImageElement.h"
44 #include "core/html/HTMLVideoElement.h" 45 #include "core/html/HTMLVideoElement.h"
45 #include "core/html/ImageData.h" 46 #include "core/html/ImageData.h"
46 #include "core/inspector/ConsoleMessage.h" 47 #include "core/inspector/ConsoleMessage.h"
47 #include "core/inspector/InspectorInstrumentation.h" 48 #include "core/inspector/InspectorInstrumentation.h"
48 #include "core/layout/LayoutBox.h" 49 #include "core/layout/LayoutBox.h"
49 #include "core/loader/FrameLoader.h" 50 #include "core/loader/FrameLoader.h"
50 #include "core/loader/FrameLoaderClient.h"
51 #include "core/origin_trials/OriginTrials.h" 51 #include "core/origin_trials/OriginTrials.h"
52 #include "gpu/command_buffer/client/gles2_interface.h" 52 #include "gpu/command_buffer/client/gles2_interface.h"
53 #include "modules/webgl/ANGLEInstancedArrays.h" 53 #include "modules/webgl/ANGLEInstancedArrays.h"
54 #include "modules/webgl/EXTBlendMinMax.h" 54 #include "modules/webgl/EXTBlendMinMax.h"
55 #include "modules/webgl/EXTFragDepth.h" 55 #include "modules/webgl/EXTFragDepth.h"
56 #include "modules/webgl/EXTShaderTextureLOD.h" 56 #include "modules/webgl/EXTShaderTextureLOD.h"
57 #include "modules/webgl/EXTTextureFilterAnisotropic.h" 57 #include "modules/webgl/EXTTextureFilterAnisotropic.h"
58 #include "modules/webgl/GLStringQuery.h" 58 #include "modules/webgl/GLStringQuery.h"
59 #include "modules/webgl/OESElementIndexUint.h" 59 #include "modules/webgl/OESElementIndexUint.h"
60 #include "modules/webgl/OESStandardDerivatives.h" 60 #include "modules/webgl/OESStandardDerivatives.h"
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 Document& document = canvas->document(); 692 Document& document = canvas->document();
693 LocalFrame* frame = document.frame(); 693 LocalFrame* frame = document.frame();
694 if (!frame) { 694 if (!frame) {
695 canvas->dispatchEvent(WebGLContextEvent::create( 695 canvas->dispatchEvent(WebGLContextEvent::create(
696 EventTypeNames::webglcontextcreationerror, false, true, 696 EventTypeNames::webglcontextcreationerror, false, true,
697 "Web page was not allowed to create a WebGL context.")); 697 "Web page was not allowed to create a WebGL context."));
698 return nullptr; 698 return nullptr;
699 } 699 }
700 Settings* settings = frame->settings(); 700 Settings* settings = frame->settings();
701 701
702 // The FrameLoaderClient might block creation of a new WebGL context despite 702 // The LocalFrameClient might block creation of a new WebGL context despite
703 // the page settings; in particular, if WebGL contexts were lost one or more 703 // the page settings; in particular, if WebGL contexts were lost one or more
704 // times via the GL_ARB_robustness extension. 704 // times via the GL_ARB_robustness extension.
705 if (!frame->loader().client()->allowWebGL(settings && 705 if (!frame->loader().client()->allowWebGL(settings &&
706 settings->getWebGLEnabled())) { 706 settings->getWebGLEnabled())) {
707 canvas->dispatchEvent(WebGLContextEvent::create( 707 canvas->dispatchEvent(WebGLContextEvent::create(
708 EventTypeNames::webglcontextcreationerror, false, true, 708 EventTypeNames::webglcontextcreationerror, false, true,
709 "Web page was not allowed to create a WebGL context.")); 709 "Web page was not allowed to create a WebGL context."));
710 return nullptr; 710 return nullptr;
711 } 711 }
712 712
(...skipping 7123 matching lines...) Expand 10 before | Expand all | Expand 10 after
7836 7836
7837 void WebGLRenderingContextBase::getHTMLOrOffscreenCanvas( 7837 void WebGLRenderingContextBase::getHTMLOrOffscreenCanvas(
7838 HTMLCanvasElementOrOffscreenCanvas& result) const { 7838 HTMLCanvasElementOrOffscreenCanvas& result) const {
7839 if (canvas()) 7839 if (canvas())
7840 result.setHTMLCanvasElement(canvas()); 7840 result.setHTMLCanvasElement(canvas());
7841 else 7841 else
7842 result.setOffscreenCanvas(offscreenCanvas()); 7842 result.setOffscreenCanvas(offscreenCanvas());
7843 } 7843 }
7844 7844
7845 } // namespace blink 7845 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp ('k') | tools/valgrind/memcheck/suppressions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698