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

Side by Side Diff: third_party/WebKit/Source/core/page/Page.cpp

Issue 2589143003: Add 'get' prefix for Settings.in generated code. (Closed)
Patch Set: Only get prefix and no capitalization. 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) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All
3 * Rights Reserved. 3 * Rights Reserved.
4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. 4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved.
5 * (http://www.torchmobile.com/) 5 * (http://www.torchmobile.com/)
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 } 162 }
163 163
164 ViewportDescription Page::viewportDescription() const { 164 ViewportDescription Page::viewportDescription() const {
165 return mainFrame() && mainFrame()->isLocalFrame() && 165 return mainFrame() && mainFrame()->isLocalFrame() &&
166 deprecatedLocalMainFrame()->document() 166 deprecatedLocalMainFrame()->document()
167 ? deprecatedLocalMainFrame()->document()->viewportDescription() 167 ? deprecatedLocalMainFrame()->document()->viewportDescription()
168 : ViewportDescription(); 168 : ViewportDescription();
169 } 169 }
170 170
171 ScrollingCoordinator* Page::scrollingCoordinator() { 171 ScrollingCoordinator* Page::scrollingCoordinator() {
172 if (!m_scrollingCoordinator && m_settings->acceleratedCompositingEnabled()) 172 if (!m_scrollingCoordinator && m_settings->getAcceleratedCompositingEnabled())
173 m_scrollingCoordinator = ScrollingCoordinator::create(this); 173 m_scrollingCoordinator = ScrollingCoordinator::create(this);
174 174
175 return m_scrollingCoordinator.get(); 175 return m_scrollingCoordinator.get();
176 } 176 }
177 177
178 ClientRectList* Page::nonFastScrollableRects(const LocalFrame* frame) { 178 ClientRectList* Page::nonFastScrollableRects(const LocalFrame* frame) {
179 if (ScrollingCoordinator* scrollingCoordinator = 179 if (ScrollingCoordinator* scrollingCoordinator =
180 this->scrollingCoordinator()) { 180 this->scrollingCoordinator()) {
181 // Hits in compositing/iframes/iframe-composited-scrolling.html 181 // Hits in compositing/iframes/iframe-composited-scrolling.html
182 DisableCompositingQueryAsserts disabler; 182 DisableCompositingQueryAsserts disabler;
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 frame = frame->tree().traverseNext()) { 361 frame = frame->tree().traverseNext()) {
362 if (frame->isLocalFrame()) 362 if (frame->isLocalFrame())
363 toLocalFrame(frame)->document()->initDNSPrefetch(); 363 toLocalFrame(frame)->document()->initDNSPrefetch();
364 } 364 }
365 break; 365 break;
366 case SettingsDelegate::ImageLoadingChange: 366 case SettingsDelegate::ImageLoadingChange:
367 for (Frame* frame = mainFrame(); frame; 367 for (Frame* frame = mainFrame(); frame;
368 frame = frame->tree().traverseNext()) { 368 frame = frame->tree().traverseNext()) {
369 if (frame->isLocalFrame()) { 369 if (frame->isLocalFrame()) {
370 toLocalFrame(frame)->document()->fetcher()->setImagesEnabled( 370 toLocalFrame(frame)->document()->fetcher()->setImagesEnabled(
371 settings().imagesEnabled()); 371 settings().getImagesEnabled());
372 toLocalFrame(frame)->document()->fetcher()->setAutoLoadImages( 372 toLocalFrame(frame)->document()->fetcher()->setAutoLoadImages(
373 settings().loadsImagesAutomatically()); 373 settings().getLoadsImagesAutomatically());
374 } 374 }
375 } 375 }
376 break; 376 break;
377 case SettingsDelegate::TextAutosizingChange: 377 case SettingsDelegate::TextAutosizingChange:
378 if (!mainFrame() || !mainFrame()->isLocalFrame()) 378 if (!mainFrame() || !mainFrame()->isLocalFrame())
379 break; 379 break;
380 if (TextAutosizer* textAutosizer = 380 if (TextAutosizer* textAutosizer =
381 deprecatedLocalMainFrame()->document()->textAutosizer()) 381 deprecatedLocalMainFrame()->document()->textAutosizer())
382 textAutosizer->updatePageInfoInAllFrames(); 382 textAutosizer->updatePageInfoInAllFrames();
383 break; 383 break;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 frame = frame->tree().traverseNext()) { 420 frame = frame->tree().traverseNext()) {
421 if (frame->isLocalFrame()) { 421 if (frame->isLocalFrame()) {
422 Document* doc = toLocalFrame(frame)->document(); 422 Document* doc = toLocalFrame(frame)->document();
423 if (doc) 423 if (doc)
424 HTMLMediaElement::setTextTrackKindUserPreferenceForAllMediaElements( 424 HTMLMediaElement::setTextTrackKindUserPreferenceForAllMediaElements(
425 doc); 425 doc);
426 } 426 }
427 } 427 }
428 break; 428 break;
429 case SettingsDelegate::DOMWorldsChange: { 429 case SettingsDelegate::DOMWorldsChange: {
430 if (!settings().forceMainWorldInitialization()) 430 if (!settings().getForceMainWorldInitialization())
431 break; 431 break;
432 for (Frame* frame = mainFrame(); frame; 432 for (Frame* frame = mainFrame(); frame;
433 frame = frame->tree().traverseNext()) { 433 frame = frame->tree().traverseNext()) {
434 if (!frame->isLocalFrame()) 434 if (!frame->isLocalFrame())
435 continue; 435 continue;
436 LocalFrame* localFrame = toLocalFrame(frame); 436 LocalFrame* localFrame = toLocalFrame(frame);
437 if (localFrame->loader() 437 if (localFrame->loader()
438 .stateMachine() 438 .stateMachine()
439 ->committedFirstRealDocumentLoad()) { 439 ->committedFirstRealDocumentLoad()) {
440 localFrame->script().initializeMainWorld(); 440 localFrame->script().initializeMainWorld();
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 : chromeClient(nullptr), 543 : chromeClient(nullptr),
544 contextMenuClient(nullptr), 544 contextMenuClient(nullptr),
545 editorClient(nullptr), 545 editorClient(nullptr),
546 spellCheckerClient(nullptr) {} 546 spellCheckerClient(nullptr) {}
547 547
548 Page::PageClients::~PageClients() {} 548 Page::PageClients::~PageClients() {}
549 549
550 template class CORE_TEMPLATE_EXPORT Supplement<Page>; 550 template class CORE_TEMPLATE_EXPORT Supplement<Page>;
551 551
552 } // namespace blink 552 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/DragController.cpp ('k') | third_party/WebKit/Source/core/page/SpatialNavigation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698