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

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

Issue 485953003: Make Fullscreen::fullyExitFullscreen() static (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Fullscreen.cpp ('k') | Source/web/FrameLoaderClientImpl.cpp » ('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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 NavigationPolicy navigationPolicy, ShouldSendReferrer shouldSendReferrer) 215 NavigationPolicy navigationPolicy, ShouldSendReferrer shouldSendReferrer)
216 { 216 {
217 if (!m_webView->client()) 217 if (!m_webView->client())
218 return 0; 218 return 0;
219 219
220 WebNavigationPolicy policy = static_cast<WebNavigationPolicy>(navigationPoli cy); 220 WebNavigationPolicy policy = static_cast<WebNavigationPolicy>(navigationPoli cy);
221 if (policy == WebNavigationPolicyIgnore) 221 if (policy == WebNavigationPolicyIgnore)
222 policy = getNavigationPolicy(); 222 policy = getNavigationPolicy();
223 223
224 ASSERT(frame->document()); 224 ASSERT(frame->document());
225 Fullscreen::from(*frame->document()).fullyExitFullscreen(); 225 Fullscreen::fullyExitFullscreen(*frame->document());
226 226
227 WebViewImpl* newView = toWebViewImpl( 227 WebViewImpl* newView = toWebViewImpl(
228 m_webView->client()->createView(WebLocalFrameImpl::fromFrame(frame), Wra ppedResourceRequest(r.resourceRequest()), features, r.frameName(), policy, shoul dSendReferrer == NeverSendReferrer)); 228 m_webView->client()->createView(WebLocalFrameImpl::fromFrame(frame), Wra ppedResourceRequest(r.resourceRequest()), features, r.frameName(), policy, shoul dSendReferrer == NeverSendReferrer));
229 if (!newView) 229 if (!newView)
230 return 0; 230 return 0;
231 return newView->page(); 231 return newView->page();
232 } 232 }
233 233
234 static inline void updatePolicyForEvent(const WebInputEvent* inputEvent, Navigat ionPolicy* policy) 234 static inline void updatePolicyForEvent(const WebInputEvent* inputEvent, Navigat ionPolicy* policy)
235 { 235 {
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 m_webView->autofillClient()->textFieldDidEndEditing(WebInputElement(&inp utElement)); 869 m_webView->autofillClient()->textFieldDidEndEditing(WebInputElement(&inp utElement));
870 } 870 }
871 871
872 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input) 872 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input)
873 { 873 {
874 if (m_webView->autofillClient()) 874 if (m_webView->autofillClient())
875 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in put)); 875 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in put));
876 } 876 }
877 877
878 } // namespace blink 878 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/dom/Fullscreen.cpp ('k') | Source/web/FrameLoaderClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698