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

Side by Side Diff: third_party/WebKit/Source/core/frame/DOMWindow.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/frame/DOMWindow.h" 5 #include "core/frame/DOMWindow.h"
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "core/dom/ExceptionCode.h" 8 #include "core/dom/ExceptionCode.h"
9 #include "core/dom/ExecutionContext.h" 9 #include "core/dom/ExecutionContext.h"
10 #include "core/dom/SecurityContext.h" 10 #include "core/dom/SecurityContext.h"
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 if (!activeDocument) 370 if (!activeDocument)
371 return; 371 return;
372 372
373 if (!activeDocument->frame() || 373 if (!activeDocument->frame() ||
374 !activeDocument->frame()->canNavigate(*frame())) 374 !activeDocument->frame()->canNavigate(*frame()))
375 return; 375 return;
376 } 376 }
377 377
378 Settings* settings = frame()->settings(); 378 Settings* settings = frame()->settings();
379 bool allowScriptsToCloseWindows = 379 bool allowScriptsToCloseWindows =
380 settings && settings->allowScriptsToCloseWindows(); 380 settings && settings->getAllowScriptsToCloseWindows();
381 381
382 if (!page->openedByDOM() && frame()->client()->backForwardLength() > 1 && 382 if (!page->openedByDOM() && frame()->client()->backForwardLength() > 1 &&
383 !allowScriptsToCloseWindows) { 383 !allowScriptsToCloseWindows) {
384 if (activeDocument) { 384 if (activeDocument) {
385 activeDocument->domWindow()->frameConsole()->addMessage( 385 activeDocument->domWindow()->frameConsole()->addMessage(
386 ConsoleMessage::create( 386 ConsoleMessage::create(
387 JSMessageSource, WarningMessageLevel, 387 JSMessageSource, WarningMessageLevel,
388 "Scripts may close only the windows that were opened by it.")); 388 "Scripts may close only the windows that were opened by it."));
389 } 389 }
390 return; 390 return;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 430
431 page->focusController().focusDocumentView(frame(), true /* notifyEmbedder */); 431 page->focusController().focusDocumentView(frame(), true /* notifyEmbedder */);
432 } 432 }
433 433
434 DEFINE_TRACE(DOMWindow) { 434 DEFINE_TRACE(DOMWindow) {
435 visitor->trace(m_location); 435 visitor->trace(m_location);
436 EventTargetWithInlineData::trace(visitor); 436 EventTargetWithInlineData::trace(visitor);
437 } 437 }
438 438
439 } // namespace blink 439 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/NavigatorEvents.cpp ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698