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

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

Issue 2939623002: [DONT COMMIT] WIP: WorkerClientsInitializer (Closed)
Patch Set: finalize2 Created 3 years, 6 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) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 #include "public/web/WebMediaPlayerAction.h" 161 #include "public/web/WebMediaPlayerAction.h"
162 #include "public/web/WebMenuSourceType.h" 162 #include "public/web/WebMenuSourceType.h"
163 #include "public/web/WebNode.h" 163 #include "public/web/WebNode.h"
164 #include "public/web/WebPlugin.h" 164 #include "public/web/WebPlugin.h"
165 #include "public/web/WebPluginAction.h" 165 #include "public/web/WebPluginAction.h"
166 #include "public/web/WebRange.h" 166 #include "public/web/WebRange.h"
167 #include "public/web/WebScopedUserGesture.h" 167 #include "public/web/WebScopedUserGesture.h"
168 #include "public/web/WebSelection.h" 168 #include "public/web/WebSelection.h"
169 #include "public/web/WebViewClient.h" 169 #include "public/web/WebViewClient.h"
170 #include "public/web/WebWindowFeatures.h" 170 #include "public/web/WebWindowFeatures.h"
171 #include "web/DedicatedWorkerMessagingProxyProviderImpl.h"
172 #include "web/PageOverlay.h" 171 #include "web/PageOverlay.h"
173 #include "web/PrerendererClientImpl.h" 172 #include "web/PrerendererClientImpl.h"
174 #include "web/StorageQuotaClientImpl.h" 173 #include "web/StorageQuotaClientImpl.h"
175 #include "web/WebDevToolsAgentImpl.h" 174 #include "web/WebDevToolsAgentImpl.h"
176 175
177 #if USE(DEFAULT_RENDER_THEME) 176 #if USE(DEFAULT_RENDER_THEME)
178 #include "core/layout/LayoutThemeDefault.h" 177 #include "core/layout/LayoutThemeDefault.h"
179 #endif 178 #endif
180 179
181 // Get rid of WTF's pow define so we can use std::pow. 180 // Get rid of WTF's pow define so we can use std::pow.
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 page_ = Page::CreateOrdinary(page_clients); 392 page_ = Page::CreateOrdinary(page_clients);
394 MediaKeysController::ProvideMediaKeysTo(*page_, &media_keys_client_impl_); 393 MediaKeysController::ProvideMediaKeysTo(*page_, &media_keys_client_impl_);
395 ProvideSpeechRecognitionTo( 394 ProvideSpeechRecognitionTo(
396 *page_, SpeechRecognitionClientProxy::Create( 395 *page_, SpeechRecognitionClientProxy::Create(
397 client ? client->SpeechRecognizer() : nullptr)); 396 client ? client->SpeechRecognizer() : nullptr));
398 ProvideContextFeaturesTo(*page_, ContextFeaturesClientImpl::Create()); 397 ProvideContextFeaturesTo(*page_, ContextFeaturesClientImpl::Create());
399 ProvideDatabaseClientTo(*page_, new DatabaseClient); 398 ProvideDatabaseClientTo(*page_, new DatabaseClient);
400 399
401 ProvideStorageQuotaClientTo(*page_, StorageQuotaClientImpl::Create()); 400 ProvideStorageQuotaClientTo(*page_, StorageQuotaClientImpl::Create());
402 page_->SetValidationMessageClient(ValidationMessageClientImpl::Create(*this)); 401 page_->SetValidationMessageClient(ValidationMessageClientImpl::Create(*this));
403 ProvideDedicatedWorkerMessagingProxyProviderTo(
404 *page_, DedicatedWorkerMessagingProxyProviderImpl::Create(*page_));
405 StorageNamespaceController::ProvideStorageNamespaceTo(*page_, 402 StorageNamespaceController::ProvideStorageNamespaceTo(*page_,
406 &storage_client_impl_); 403 &storage_client_impl_);
407 404
408 SetVisibilityState(visibility_state, true); 405 SetVisibilityState(visibility_state, true);
409 406
410 InitializeLayerTreeView(); 407 InitializeLayerTreeView();
411 408
412 dev_tools_emulator_ = DevToolsEmulator::Create(this); 409 dev_tools_emulator_ = DevToolsEmulator::Create(this);
413 410
414 AllInstances().insert(this); 411 AllInstances().insert(this);
(...skipping 3710 matching lines...) Expand 10 before | Expand all | Expand 10 after
4125 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame()) 4122 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame())
4126 return nullptr; 4123 return nullptr;
4127 return focused_frame; 4124 return focused_frame;
4128 } 4125 }
4129 4126
4130 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const { 4127 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const {
4131 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr; 4128 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr;
4132 } 4129 }
4133 4130
4134 } // namespace blink 4131 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698