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

Side by Side Diff: Source/core/testing/Internals.cpp

Issue 683013002: Extract a DOMWindow interface from LocalDOMWindow and use it in the idl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on top of DOMWindow moves and UseCounter overload for Frame Created 6 years, 1 month 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 if (!s_pagePopupDriver) 687 if (!s_pagePopupDriver)
688 s_pagePopupDriver = MockPagePopupDriver::create(page->deprecatedLocalMai nFrame()).leakPtr(); 688 s_pagePopupDriver = MockPagePopupDriver::create(page->deprecatedLocalMai nFrame()).leakPtr();
689 page->chrome().client().setPagePopupDriver(s_pagePopupDriver); 689 page->chrome().client().setPagePopupDriver(s_pagePopupDriver);
690 } 690 }
691 691
692 PassRefPtrWillBeRawPtr<PagePopupController> Internals::pagePopupController() 692 PassRefPtrWillBeRawPtr<PagePopupController> Internals::pagePopupController()
693 { 693 {
694 return s_pagePopupDriver ? s_pagePopupDriver->pagePopupController() : 0; 694 return s_pagePopupDriver ? s_pagePopupDriver->pagePopupController() : 0;
695 } 695 }
696 696
697 LocalDOMWindow* Internals::pagePopupWindow() const 697 DOMWindow* Internals::pagePopupWindow() const
698 { 698 {
699 Document* document = contextDocument(); 699 Document* document = contextDocument();
700 if (!document) 700 if (!document)
701 return nullptr; 701 return nullptr;
702 Page* page = document->page(); 702 Page* page = document->page();
703 if (!page) 703 if (!page)
704 return nullptr; 704 return nullptr;
705 PagePopupDriver* pagePopupDriver = page->chrome().client().pagePopupDriver() ; 705 PagePopupDriver* pagePopupDriver = page->chrome().client().pagePopupDriver() ;
706 if (!pagePopupDriver) 706 if (!pagePopupDriver)
707 return nullptr; 707 return nullptr;
(...skipping 1589 matching lines...) Expand 10 before | Expand all | Expand 10 after
2297 } 2297 }
2298 toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::cr eate(element->document(), options)); 2298 toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::cr eate(element->document(), options));
2299 } 2299 }
2300 2300
2301 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio nState) 2301 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio nState)
2302 { 2302 {
2303 return new InternalsIterator; 2303 return new InternalsIterator;
2304 } 2304 }
2305 2305
2306 } // namespace blink 2306 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698