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

Side by Side Diff: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 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 are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * 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 13 matching lines...) Expand all
24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32 #include "web/FrameLoaderClientImpl.h" 32 #include "web/FrameLoaderClientImpl.h"
33 33
34 #include <v8.h>
35 #include <memory>
34 #include "bindings/core/v8/ScriptController.h" 36 #include "bindings/core/v8/ScriptController.h"
35 #include "core/HTMLNames.h" 37 #include "core/HTMLNames.h"
36 #include "core/dom/Document.h" 38 #include "core/dom/Document.h"
37 #include "core/dom/Fullscreen.h" 39 #include "core/dom/Fullscreen.h"
38 #include "core/events/MessageEvent.h" 40 #include "core/events/MessageEvent.h"
39 #include "core/events/MouseEvent.h" 41 #include "core/events/MouseEvent.h"
40 #include "core/events/UIEventWithKeyState.h" 42 #include "core/events/UIEventWithKeyState.h"
41 #include "core/frame/FrameView.h" 43 #include "core/frame/FrameView.h"
42 #include "core/frame/Settings.h" 44 #include "core/frame/Settings.h"
43 #include "core/html/HTMLFrameElementBase.h" 45 #include "core/html/HTMLFrameElementBase.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 #include "web/WebDataSourceImpl.h" 100 #include "web/WebDataSourceImpl.h"
99 #include "web/WebDevToolsAgentImpl.h" 101 #include "web/WebDevToolsAgentImpl.h"
100 #include "web/WebDevToolsFrontendImpl.h" 102 #include "web/WebDevToolsFrontendImpl.h"
101 #include "web/WebLocalFrameImpl.h" 103 #include "web/WebLocalFrameImpl.h"
102 #include "web/WebPluginContainerImpl.h" 104 #include "web/WebPluginContainerImpl.h"
103 #include "web/WebViewImpl.h" 105 #include "web/WebViewImpl.h"
104 #include "wtf/PtrUtil.h" 106 #include "wtf/PtrUtil.h"
105 #include "wtf/StringExtras.h" 107 #include "wtf/StringExtras.h"
106 #include "wtf/text/CString.h" 108 #include "wtf/text/CString.h"
107 #include "wtf/text/WTFString.h" 109 #include "wtf/text/WTFString.h"
108 #include <memory>
109 #include <v8.h>
110 110
111 namespace blink { 111 namespace blink {
112 112
113 namespace { 113 namespace {
114 114
115 // Convenience helper for frame tree helpers in FrameClient to reduce the amount 115 // Convenience helper for frame tree helpers in FrameClient to reduce the amount
116 // of null-checking boilerplate code. Since the frame tree is maintained in the 116 // of null-checking boilerplate code. Since the frame tree is maintained in the
117 // web/ layer, the frame tree helpers often have to deal with null WebFrames: 117 // web/ layer, the frame tree helpers often have to deal with null WebFrames:
118 // for example, a frame with no parent will return null for WebFrame::parent(). 118 // for example, a frame with no parent will return null for WebFrame::parent().
119 // TODO(dcheng): Remove duplication between FrameLoaderClientImpl and 119 // TODO(dcheng): Remove duplication between FrameLoaderClientImpl and
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after
1002 KURL FrameLoaderClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { 1002 KURL FrameLoaderClientImpl::overrideFlashEmbedWithHTML(const KURL& url) {
1003 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); 1003 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url));
1004 } 1004 }
1005 1005
1006 void FrameLoaderClientImpl::setHasReceivedUserGesture() { 1006 void FrameLoaderClientImpl::setHasReceivedUserGesture() {
1007 if (m_webFrame->client()) 1007 if (m_webFrame->client())
1008 m_webFrame->client()->setHasReceivedUserGesture(); 1008 m_webFrame->client()->setHasReceivedUserGesture();
1009 } 1009 }
1010 1010
1011 } // namespace blink 1011 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.h ('k') | third_party/WebKit/Source/web/FullscreenController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698