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

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

Issue 1291903003: Oilpan: Move ChromeClient classes into Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | Annotate | Revision Log
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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 // static 402 // static
403 HashSet<WebViewImpl*>& WebViewImpl::allInstances() 403 HashSet<WebViewImpl*>& WebViewImpl::allInstances()
404 { 404 {
405 DEFINE_STATIC_LOCAL(HashSet<WebViewImpl*>, allInstances, ()); 405 DEFINE_STATIC_LOCAL(HashSet<WebViewImpl*>, allInstances, ());
406 return allInstances; 406 return allInstances;
407 } 407 }
408 408
409 WebViewImpl::WebViewImpl(WebViewClient* client) 409 WebViewImpl::WebViewImpl(WebViewClient* client)
410 : m_client(client) 410 : m_client(client)
411 , m_spellCheckClient(0) 411 , m_spellCheckClient(0)
412 , m_chromeClientImpl(this) 412 , m_chromeClientImpl(ChromeClientImpl::create(this))
413 , m_contextMenuClientImpl(this) 413 , m_contextMenuClientImpl(this)
414 , m_dragClientImpl(this) 414 , m_dragClientImpl(this)
415 , m_editorClientImpl(this) 415 , m_editorClientImpl(this)
416 , m_spellCheckerClientImpl(this) 416 , m_spellCheckerClientImpl(this)
417 , m_storageClientImpl(this) 417 , m_storageClientImpl(this)
418 , m_shouldAutoResize(false) 418 , m_shouldAutoResize(false)
419 , m_zoomLevel(0) 419 , m_zoomLevel(0)
420 , m_minimumZoomLevel(zoomFactorToZoomLevel(minTextSizeMultiplier)) 420 , m_minimumZoomLevel(zoomFactorToZoomLevel(minTextSizeMultiplier))
421 , m_maximumZoomLevel(zoomFactorToZoomLevel(maxTextSizeMultiplier)) 421 , m_maximumZoomLevel(zoomFactorToZoomLevel(maxTextSizeMultiplier))
422 , m_maximumLegibleScale(1) 422 , m_maximumLegibleScale(1)
(...skipping 27 matching lines...) Expand all
450 , m_showFPSCounter(false) 450 , m_showFPSCounter(false)
451 , m_continuousPaintingEnabled(false) 451 , m_continuousPaintingEnabled(false)
452 , m_baseBackgroundColor(Color::white) 452 , m_baseBackgroundColor(Color::white)
453 , m_backgroundColorOverride(Color::transparent) 453 , m_backgroundColorOverride(Color::transparent)
454 , m_zoomFactorOverride(0) 454 , m_zoomFactorOverride(0)
455 , m_userGestureObserved(false) 455 , m_userGestureObserved(false)
456 , m_displayMode(WebDisplayModeBrowser) 456 , m_displayMode(WebDisplayModeBrowser)
457 , m_elasticOverscroll(FloatSize()) 457 , m_elasticOverscroll(FloatSize())
458 { 458 {
459 Page::PageClients pageClients; 459 Page::PageClients pageClients;
460 pageClients.chromeClient = &m_chromeClientImpl; 460 pageClients.chromeClient = m_chromeClientImpl.get();
461 pageClients.contextMenuClient = &m_contextMenuClientImpl; 461 pageClients.contextMenuClient = &m_contextMenuClientImpl;
462 pageClients.editorClient = &m_editorClientImpl; 462 pageClients.editorClient = &m_editorClientImpl;
463 pageClients.dragClient = &m_dragClientImpl; 463 pageClients.dragClient = &m_dragClientImpl;
464 pageClients.spellCheckerClient = &m_spellCheckerClientImpl; 464 pageClients.spellCheckerClient = &m_spellCheckerClientImpl;
465 465
466 m_page = adoptPtrWillBeNoop(new Page(pageClients)); 466 m_page = adoptPtrWillBeNoop(new Page(pageClients));
467 MediaKeysController::provideMediaKeysTo(*m_page, &m_mediaKeysClientImpl); 467 MediaKeysController::provideMediaKeysTo(*m_page, &m_mediaKeysClientImpl);
468 provideSpeechRecognitionTo(*m_page, SpeechRecognitionClientProxy::create(cli ent ? client->speechRecognizer() : 0)); 468 provideSpeechRecognitionTo(*m_page, SpeechRecognitionClientProxy::create(cli ent ? client->speechRecognizer() : 0));
469 provideContextFeaturesTo(*m_page, ContextFeaturesClientImpl::create()); 469 provideContextFeaturesTo(*m_page, ContextFeaturesClientImpl::create());
470 provideDatabaseClientTo(*m_page, DatabaseClientImpl::create()); 470 provideDatabaseClientTo(*m_page, DatabaseClientImpl::create());
(...skipping 3949 matching lines...) Expand 10 before | Expand all | Expand 10 after
4420 if (m_pageColorOverlay) 4420 if (m_pageColorOverlay)
4421 m_pageColorOverlay->update(); 4421 m_pageColorOverlay->update();
4422 if (m_inspectorOverlay) { 4422 if (m_inspectorOverlay) {
4423 PageOverlay* inspectorPageOverlay = m_inspectorOverlay->pageOverlay(); 4423 PageOverlay* inspectorPageOverlay = m_inspectorOverlay->pageOverlay();
4424 if (inspectorPageOverlay) 4424 if (inspectorPageOverlay)
4425 inspectorPageOverlay->update(); 4425 inspectorPageOverlay->update();
4426 } 4426 }
4427 } 4427 }
4428 4428
4429 } // namespace blink 4429 } // namespace blink
OLDNEW
« Source/core/loader/EmptyClients.cpp ('K') | « Source/web/WebViewImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698