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

Side by Side Diff: Source/web/WebViewImpl.cpp

Issue 703903002: [WebGL-blink] Add test function to force fail the webgl-context (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove decleration from webwidget. Created 6 years, 1 month 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
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | public/web/WebView.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 #include "core/frame/FrameView.h" 54 #include "core/frame/FrameView.h"
55 #include "core/frame/LocalFrame.h" 55 #include "core/frame/LocalFrame.h"
56 #include "core/frame/PinchViewport.h" 56 #include "core/frame/PinchViewport.h"
57 #include "core/frame/RemoteFrame.h" 57 #include "core/frame/RemoteFrame.h"
58 #include "core/frame/Settings.h" 58 #include "core/frame/Settings.h"
59 #include "core/frame/SmartClip.h" 59 #include "core/frame/SmartClip.h"
60 #include "core/html/HTMLInputElement.h" 60 #include "core/html/HTMLInputElement.h"
61 #include "core/html/HTMLMediaElement.h" 61 #include "core/html/HTMLMediaElement.h"
62 #include "core/html/HTMLPlugInElement.h" 62 #include "core/html/HTMLPlugInElement.h"
63 #include "core/html/HTMLTextAreaElement.h" 63 #include "core/html/HTMLTextAreaElement.h"
64 #include "core/html/canvas/WebGLRenderingContext.h"
64 #include "core/html/ime/InputMethodContext.h" 65 #include "core/html/ime/InputMethodContext.h"
65 #include "core/inspector/InspectorController.h" 66 #include "core/inspector/InspectorController.h"
66 #include "core/loader/DocumentLoader.h" 67 #include "core/loader/DocumentLoader.h"
67 #include "core/loader/FrameLoader.h" 68 #include "core/loader/FrameLoader.h"
68 #include "core/loader/UniqueIdentifier.h" 69 #include "core/loader/UniqueIdentifier.h"
69 #include "core/page/Chrome.h" 70 #include "core/page/Chrome.h"
70 #include "core/page/ContextMenuController.h" 71 #include "core/page/ContextMenuController.h"
71 #include "core/page/ContextMenuProvider.h" 72 #include "core/page/ContextMenuProvider.h"
72 #include "core/page/DragController.h" 73 #include "core/page/DragController.h"
73 #include "core/page/DragData.h" 74 #include "core/page/DragData.h"
(...skipping 4419 matching lines...) Expand 10 before | Expand all | Expand 10 after
4493 4494
4494 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi nedConstraints(); 4495 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi nedConstraints();
4495 4496
4496 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) 4497 if (!mainFrameImpl() || !mainFrameImpl()->frameView())
4497 return false; 4498 return false;
4498 4499
4499 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width 4500 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width
4500 || (constraints.minimumScale == constraints.maximumScale && constraints. minimumScale != -1); 4501 || (constraints.minimumScale == constraints.maximumScale && constraints. minimumScale != -1);
4501 } 4502 }
4502 4503
4504 void WebViewImpl::forceNextWebGLContextCreationToFail()
4505 {
4506 WebGLRenderingContext::forceNextWebGLContextCreationToFail();
4507 }
4508
4503 } // namespace blink 4509 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | public/web/WebView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698