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

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

Issue 2657443005: Migrate WTF::HashSet::add() to ::insert() [part 1 of N] (Closed)
Patch Set: Created 3 years, 10 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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 *m_page, DedicatedWorkerMessagingProxyProviderImpl::create(*m_page)); 410 *m_page, DedicatedWorkerMessagingProxyProviderImpl::create(*m_page));
411 StorageNamespaceController::provideStorageNamespaceTo(*m_page, 411 StorageNamespaceController::provideStorageNamespaceTo(*m_page,
412 &m_storageClientImpl); 412 &m_storageClientImpl);
413 413
414 setVisibilityState(visibilityState, true); 414 setVisibilityState(visibilityState, true);
415 415
416 initializeLayerTreeView(); 416 initializeLayerTreeView();
417 417
418 m_devToolsEmulator = DevToolsEmulator::create(this); 418 m_devToolsEmulator = DevToolsEmulator::create(this);
419 419
420 allInstances().add(this); 420 allInstances().insert(this);
421 421
422 m_pageImportanceSignals.setObserver(client); 422 m_pageImportanceSignals.setObserver(client);
423 m_resizeViewportAnchor = new ResizeViewportAnchor(*m_page); 423 m_resizeViewportAnchor = new ResizeViewportAnchor(*m_page);
424 } 424 }
425 425
426 WebViewImpl::~WebViewImpl() { 426 WebViewImpl::~WebViewImpl() {
427 DCHECK(!m_page); 427 DCHECK(!m_page);
428 428
429 // Each highlight uses m_owningWebViewImpl->m_linkHighlightsTimeline 429 // Each highlight uses m_owningWebViewImpl->m_linkHighlightsTimeline
430 // in destructor. m_linkHighlightsTimeline might be destroyed earlier 430 // in destructor. m_linkHighlightsTimeline might be destroyed earlier
(...skipping 3758 matching lines...) Expand 10 before | Expand all | Expand 10 after
4189 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) 4189 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame())
4190 return nullptr; 4190 return nullptr;
4191 return focusedFrame; 4191 return focusedFrame;
4192 } 4192 }
4193 4193
4194 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { 4194 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const {
4195 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; 4195 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr;
4196 } 4196 }
4197 4197
4198 } // namespace blink 4198 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebHistoryItem.cpp ('k') | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698