OLD | NEW |
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 Loading... |
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 4401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4475 | 4476 |
4476 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); | 4477 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); |
4477 | 4478 |
4478 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) | 4479 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) |
4479 return false; | 4480 return false; |
4480 | 4481 |
4481 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width | 4482 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width |
4482 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); | 4483 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); |
4483 } | 4484 } |
4484 | 4485 |
| 4486 void WebViewImpl::forceNextWebGLContextCreationToFail(bool forceFailContext) |
| 4487 { |
| 4488 WebGLRenderingContext::forceNextWebGLContextCreationToFail(forceFailContext)
; |
| 4489 } |
| 4490 |
4485 } // namespace blink | 4491 } // namespace blink |
OLD | NEW |