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

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

Issue 2393513004: Convert app banners to use Mojo. (Closed)
Patch Set: Fix Win clang compile Created 4 years, 2 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 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 2023 matching lines...) Expand 10 before | Expand all | Expand 10 after
2034 ScreenOrientationController::from(*frame())->notifyOrientationChanged(); 2034 ScreenOrientationController::from(*frame())->notifyOrientationChanged();
2035 2035
2036 // Legacy window.orientation API 2036 // Legacy window.orientation API
2037 if (RuntimeEnabledFeatures::orientationEventEnabled() && frame()->domWindow()) 2037 if (RuntimeEnabledFeatures::orientationEventEnabled() && frame()->domWindow())
2038 frame()->localDOMWindow()->sendOrientationChangeEvent(); 2038 frame()->localDOMWindow()->sendOrientationChangeEvent();
2039 } 2039 }
2040 2040
2041 void WebLocalFrameImpl::willShowInstallBannerPrompt( 2041 void WebLocalFrameImpl::willShowInstallBannerPrompt(
2042 int requestId, 2042 int requestId,
2043 const WebVector<WebString>& platforms, 2043 const WebVector<WebString>& platforms,
2044 WebAppBannerPromptReply* reply) { 2044 mojom::AppBannerPromptReply* reply) {
2045 if (!frame()) 2045 if (!frame())
2046 return; 2046 return;
2047 2047
2048 AppBannerController::willShowInstallBannerPrompt( 2048 AppBannerController::willShowInstallBannerPrompt(frame(), requestId,
2049 requestId, client()->appBannerClient(), frame(), platforms, reply); 2049 platforms, reply);
2050 } 2050 }
2051 2051
2052 void WebLocalFrameImpl::requestRunTask(WebSuspendableTask* task) const { 2052 void WebLocalFrameImpl::requestRunTask(WebSuspendableTask* task) const {
2053 DCHECK(frame()); 2053 DCHECK(frame());
2054 DCHECK(frame()->document()); 2054 DCHECK(frame()->document());
2055 frame()->document()->postSuspendableTask( 2055 frame()->document()->postSuspendableTask(
2056 WebSuspendableTaskWrapper::create(wrapUnique(task))); 2056 WebSuspendableTaskWrapper::create(wrapUnique(task)));
2057 } 2057 }
2058 2058
2059 void WebLocalFrameImpl::didCallAddSearchProvider() { 2059 void WebLocalFrameImpl::didCallAddSearchProvider() {
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
2328 feature = UseCounter::ChromeLoadTimesNpnNegotiatedProtocol; 2328 feature = UseCounter::ChromeLoadTimesNpnNegotiatedProtocol;
2329 } else if (metric == "wasAlternateProtocolAvailable") { 2329 } else if (metric == "wasAlternateProtocolAvailable") {
2330 feature = UseCounter::ChromeLoadTimesWasAlternateProtocolAvailable; 2330 feature = UseCounter::ChromeLoadTimesWasAlternateProtocolAvailable;
2331 } else if (metric == "connectionInfo") { 2331 } else if (metric == "connectionInfo") {
2332 feature = UseCounter::ChromeLoadTimesConnectionInfo; 2332 feature = UseCounter::ChromeLoadTimesConnectionInfo;
2333 } 2333 }
2334 UseCounter::count(frame(), feature); 2334 UseCounter::count(frame(), feature);
2335 } 2335 }
2336 2336
2337 } // namespace blink 2337 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698