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

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

Issue 1735033004: Bindings and client interface for the IsAppInstalled API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 #include "core/page/PrintContext.h" 151 #include "core/page/PrintContext.h"
152 #include "core/paint/PaintLayer.h" 152 #include "core/paint/PaintLayer.h"
153 #include "core/paint/ScopeRecorder.h" 153 #include "core/paint/ScopeRecorder.h"
154 #include "core/paint/TransformRecorder.h" 154 #include "core/paint/TransformRecorder.h"
155 #include "core/timing/DOMWindowPerformance.h" 155 #include "core/timing/DOMWindowPerformance.h"
156 #include "core/timing/Performance.h" 156 #include "core/timing/Performance.h"
157 #include "modules/app_banner/AppBannerController.h" 157 #include "modules/app_banner/AppBannerController.h"
158 #include "modules/audio_output_devices/AudioOutputDeviceClient.h" 158 #include "modules/audio_output_devices/AudioOutputDeviceClient.h"
159 #include "modules/bluetooth/BluetoothSupplement.h" 159 #include "modules/bluetooth/BluetoothSupplement.h"
160 #include "modules/geolocation/GeolocationController.h" 160 #include "modules/geolocation/GeolocationController.h"
161 #include "modules/installedapp/InstalledAppController.h"
161 #include "modules/notifications/NotificationPermissionClient.h" 162 #include "modules/notifications/NotificationPermissionClient.h"
162 #include "modules/permissions/PermissionController.h" 163 #include "modules/permissions/PermissionController.h"
163 #include "modules/presentation/PresentationController.h" 164 #include "modules/presentation/PresentationController.h"
164 #include "modules/push_messaging/PushController.h" 165 #include "modules/push_messaging/PushController.h"
165 #include "modules/screen_orientation/ScreenOrientationController.h" 166 #include "modules/screen_orientation/ScreenOrientationController.h"
166 #include "modules/vr/VRController.h" 167 #include "modules/vr/VRController.h"
167 #include "modules/wake_lock/ScreenWakeLock.h" 168 #include "modules/wake_lock/ScreenWakeLock.h"
168 #include "modules/webusb/USBController.h" 169 #include "modules/webusb/USBController.h"
169 #include "platform/ScriptForbiddenScope.h" 170 #include "platform/ScriptForbiddenScope.h"
170 #include "platform/TraceEvent.h" 171 #include "platform/TraceEvent.h"
(...skipping 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after
1560 if (RuntimeEnabledFeatures::permissionsEnabled()) 1561 if (RuntimeEnabledFeatures::permissionsEnabled())
1561 PermissionController::provideTo(*m_frame, m_client ? m_client->permi ssionClient() : nullptr); 1562 PermissionController::provideTo(*m_frame, m_client ? m_client->permi ssionClient() : nullptr);
1562 if (RuntimeEnabledFeatures::webUSBEnabled()) 1563 if (RuntimeEnabledFeatures::webUSBEnabled())
1563 USBController::provideTo(*m_frame, m_client ? m_client->usbClient() : nullptr); 1564 USBController::provideTo(*m_frame, m_client ? m_client->usbClient() : nullptr);
1564 if (RuntimeEnabledFeatures::webVREnabled()) 1565 if (RuntimeEnabledFeatures::webVREnabled())
1565 VRController::provideTo(*m_frame, m_client ? m_client->webVRClient() : nullptr); 1566 VRController::provideTo(*m_frame, m_client ? m_client->webVRClient() : nullptr);
1566 if (RuntimeEnabledFeatures::wakeLockEnabled()) 1567 if (RuntimeEnabledFeatures::wakeLockEnabled())
1567 ScreenWakeLock::provideTo(*m_frame, m_client ? m_client->wakeLockCli ent() : nullptr); 1568 ScreenWakeLock::provideTo(*m_frame, m_client ? m_client->wakeLockCli ent() : nullptr);
1568 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) 1569 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled())
1569 provideAudioOutputDeviceClientTo(*m_frame, AudioOutputDeviceClientIm pl::create()); 1570 provideAudioOutputDeviceClientTo(*m_frame, AudioOutputDeviceClientIm pl::create());
1571 if (RuntimeEnabledFeatures::installedAppEnabled()) {
1572 InstalledAppController::provideTo(*m_frame, m_client ? m_client->ins talledAppClient() : nullptr);
1573 }
1570 } 1574 }
1571 } 1575 }
1572 1576
1573 void WebLocalFrameImpl::initializeCoreFrame(FrameHost* host, FrameOwner* owner, const AtomicString& name, const AtomicString& uniqueName) 1577 void WebLocalFrameImpl::initializeCoreFrame(FrameHost* host, FrameOwner* owner, const AtomicString& name, const AtomicString& uniqueName)
1574 { 1578 {
1575 setCoreFrame(LocalFrame::create(m_frameLoaderClientImpl.get(), host, owner)) ; 1579 setCoreFrame(LocalFrame::create(m_frameLoaderClientImpl.get(), host, owner)) ;
1576 frame()->tree().setPrecalculatedName(name, uniqueName); 1580 frame()->tree().setPrecalculatedName(name, uniqueName);
1577 // We must call init() after m_frame is assigned because it is referenced 1581 // We must call init() after m_frame is assigned because it is referenced
1578 // during init(). Note that this may dispatch JS events; the frame may be 1582 // during init(). Note that this may dispatch JS events; the frame may be
1579 // detached after init() returns. 1583 // detached after init() returns.
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
2197 return WebSandboxFlags::None; 2201 return WebSandboxFlags::None;
2198 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( )); 2202 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( ));
2199 } 2203 }
2200 2204
2201 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags) 2205 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags)
2202 { 2206 {
2203 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); 2207 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags));
2204 } 2208 }
2205 2209
2206 } // namespace blink 2210 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698