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

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

Issue 2147933002: Remove AppBanner runtime flag (status=stable) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in ('k') | no next file » | 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 * 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 1918 matching lines...) Expand 10 before | Expand all | Expand 10 after
1929 if (ScreenOrientationController::from(*frame())) 1929 if (ScreenOrientationController::from(*frame()))
1930 ScreenOrientationController::from(*frame())->notifyOrientationChanged(); 1930 ScreenOrientationController::from(*frame())->notifyOrientationChanged();
1931 1931
1932 // Legacy window.orientation API 1932 // Legacy window.orientation API
1933 if (RuntimeEnabledFeatures::orientationEventEnabled() && frame()->domWindow( )) 1933 if (RuntimeEnabledFeatures::orientationEventEnabled() && frame()->domWindow( ))
1934 frame()->localDOMWindow()->sendOrientationChangeEvent(); 1934 frame()->localDOMWindow()->sendOrientationChangeEvent();
1935 } 1935 }
1936 1936
1937 void WebLocalFrameImpl::willShowInstallBannerPrompt(int requestId, const WebVect or<WebString>& platforms, WebAppBannerPromptReply* reply) 1937 void WebLocalFrameImpl::willShowInstallBannerPrompt(int requestId, const WebVect or<WebString>& platforms, WebAppBannerPromptReply* reply)
1938 { 1938 {
1939 if (!RuntimeEnabledFeatures::appBannerEnabled() || !frame()) 1939 if (!frame())
1940 return; 1940 return;
1941 1941
1942 AppBannerController::willShowInstallBannerPrompt(requestId, client()->appBan nerClient(), frame(), platforms, reply); 1942 AppBannerController::willShowInstallBannerPrompt(requestId, client()->appBan nerClient(), frame(), platforms, reply);
1943 } 1943 }
1944 1944
1945 void WebLocalFrameImpl::requestRunTask(WebSuspendableTask* task) const 1945 void WebLocalFrameImpl::requestRunTask(WebSuspendableTask* task) const
1946 { 1946 {
1947 DCHECK(frame()); 1947 DCHECK(frame());
1948 DCHECK(frame()->document()); 1948 DCHECK(frame()->document());
1949 frame()->document()->postSuspendableTask(WebSuspendableTaskWrapper::create(w rapUnique(task))); 1949 frame()->document()->postSuspendableTask(WebSuspendableTaskWrapper::create(w rapUnique(task)));
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
2143 { 2143 {
2144 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); 2144 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags));
2145 } 2145 }
2146 2146
2147 void WebLocalFrameImpl::clearActiveFindMatch() 2147 void WebLocalFrameImpl::clearActiveFindMatch()
2148 { 2148 {
2149 ensureTextFinder().clearActiveFindMatch(); 2149 ensureTextFinder().clearActiveFindMatch();
2150 } 2150 }
2151 2151
2152 } // namespace blink 2152 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698