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

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

Issue 2627413003: NavigatorContentUtils should be a supplement of Navigator (Closed)
Patch Set: temp Created 3 years, 11 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 * 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 #include "core/layout/LayoutPart.h" 50 #include "core/layout/LayoutPart.h"
51 #include "core/layout/compositing/CompositedSelection.h" 51 #include "core/layout/compositing/CompositedSelection.h"
52 #include "core/loader/DocumentLoader.h" 52 #include "core/loader/DocumentLoader.h"
53 #include "core/loader/FrameLoadRequest.h" 53 #include "core/loader/FrameLoadRequest.h"
54 #include "core/page/Page.h" 54 #include "core/page/Page.h"
55 #include "core/page/PopupOpeningObserver.h" 55 #include "core/page/PopupOpeningObserver.h"
56 #include "modules/accessibility/AXObject.h" 56 #include "modules/accessibility/AXObject.h"
57 #include "modules/audio_output_devices/AudioOutputDeviceClient.h" 57 #include "modules/audio_output_devices/AudioOutputDeviceClient.h"
58 #include "modules/installedapp/InstalledAppController.h" 58 #include "modules/installedapp/InstalledAppController.h"
59 #include "modules/mediastream/UserMediaController.h" 59 #include "modules/mediastream/UserMediaController.h"
60 #include "modules/navigatorcontentutils/NavigatorContentUtils.h"
60 #include "modules/presentation/PresentationController.h" 61 #include "modules/presentation/PresentationController.h"
61 #include "modules/push_messaging/PushController.h" 62 #include "modules/push_messaging/PushController.h"
62 #include "modules/screen_orientation/ScreenOrientationControllerImpl.h" 63 #include "modules/screen_orientation/ScreenOrientationControllerImpl.h"
63 #include "modules/vr/VRController.h" 64 #include "modules/vr/VRController.h"
64 #include "platform/Cursor.h" 65 #include "platform/Cursor.h"
65 #include "platform/FileChooser.h" 66 #include "platform/FileChooser.h"
66 #include "platform/Histogram.h" 67 #include "platform/Histogram.h"
67 #include "platform/KeyboardCodes.h" 68 #include "platform/KeyboardCodes.h"
68 #include "platform/RuntimeEnabledFeatures.h" 69 #include "platform/RuntimeEnabledFeatures.h"
69 #include "platform/WebFrameScheduler.h" 70 #include "platform/WebFrameScheduler.h"
(...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after
1148 1149
1149 void ChromeClientImpl::installSupplements(LocalFrame& frame) { 1150 void ChromeClientImpl::installSupplements(LocalFrame& frame) {
1150 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(&frame); 1151 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(&frame);
1151 WebFrameClient* client = webFrame->client(); 1152 WebFrameClient* client = webFrame->client();
1152 DCHECK(client); 1153 DCHECK(client);
1153 providePushControllerTo(frame, client->pushClient()); 1154 providePushControllerTo(frame, client->pushClient());
1154 provideUserMediaTo(frame, 1155 provideUserMediaTo(frame,
1155 UserMediaClientImpl::create(client->userMediaClient())); 1156 UserMediaClientImpl::create(client->userMediaClient()));
1156 provideIndexedDBClientTo(frame, IndexedDBClientImpl::create(frame)); 1157 provideIndexedDBClientTo(frame, IndexedDBClientImpl::create(frame));
1157 provideLocalFileSystemTo(frame, LocalFileSystemClient::create()); 1158 provideLocalFileSystemTo(frame, LocalFileSystemClient::create());
1158 provideNavigatorContentUtilsTo( 1159 NavigatorContentUtils::provideNavigatorContentUtilsTo(
1159 frame, NavigatorContentUtilsClientImpl::create(webFrame)); 1160 *frame.domWindow()->navigator(),
sof 2017/01/13 07:40:30 this will now instantiate a Navigator earlier (and
1161 NavigatorContentUtilsClientImpl::create(webFrame));
1160 1162
1161 ScreenOrientationControllerImpl::provideTo( 1163 ScreenOrientationControllerImpl::provideTo(
1162 frame, client->webScreenOrientationClient()); 1164 frame, client->webScreenOrientationClient());
1163 if (RuntimeEnabledFeatures::presentationEnabled()) 1165 if (RuntimeEnabledFeatures::presentationEnabled())
1164 PresentationController::provideTo(frame, client->presentationClient()); 1166 PresentationController::provideTo(frame, client->presentationClient());
1165 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { 1167 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) {
1166 provideAudioOutputDeviceClientTo(frame, 1168 provideAudioOutputDeviceClientTo(frame,
1167 new AudioOutputDeviceClientImpl(frame)); 1169 new AudioOutputDeviceClientImpl(frame));
1168 } 1170 }
1169 if (RuntimeEnabledFeatures::installedAppEnabled()) 1171 if (RuntimeEnabledFeatures::installedAppEnabled())
1170 InstalledAppController::provideTo(frame, client->installedAppClient()); 1172 InstalledAppController::provideTo(frame, client->installedAppClient());
1171 } 1173 }
1172 1174
1173 } // namespace blink 1175 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698