OLD | NEW |
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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 if (!s_pagePopupDriver) | 686 if (!s_pagePopupDriver) |
687 s_pagePopupDriver = MockPagePopupDriver::create(page->deprecatedLocalMai
nFrame()).leakPtr(); | 687 s_pagePopupDriver = MockPagePopupDriver::create(page->deprecatedLocalMai
nFrame()).leakPtr(); |
688 page->chrome().client().setPagePopupDriver(s_pagePopupDriver); | 688 page->chrome().client().setPagePopupDriver(s_pagePopupDriver); |
689 } | 689 } |
690 | 690 |
691 PassRefPtrWillBeRawPtr<PagePopupController> Internals::pagePopupController() | 691 PassRefPtrWillBeRawPtr<PagePopupController> Internals::pagePopupController() |
692 { | 692 { |
693 return s_pagePopupDriver ? s_pagePopupDriver->pagePopupController() : 0; | 693 return s_pagePopupDriver ? s_pagePopupDriver->pagePopupController() : 0; |
694 } | 694 } |
695 | 695 |
696 LocalDOMWindow* Internals::pagePopupWindow() const | 696 DOMWindow* Internals::pagePopupWindow() const |
697 { | 697 { |
698 Document* document = contextDocument(); | 698 Document* document = contextDocument(); |
699 if (!document) | 699 if (!document) |
700 return nullptr; | 700 return nullptr; |
701 Page* page = document->page(); | 701 Page* page = document->page(); |
702 if (!page) | 702 if (!page) |
703 return nullptr; | 703 return nullptr; |
704 PagePopupDriver* pagePopupDriver = page->chrome().client().pagePopupDriver()
; | 704 PagePopupDriver* pagePopupDriver = page->chrome().client().pagePopupDriver()
; |
705 if (!pagePopupDriver) | 705 if (!pagePopupDriver) |
706 return nullptr; | 706 return nullptr; |
(...skipping 1584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2291 } | 2291 } |
2292 toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::cr
eate(element->document(), options)); | 2292 toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::cr
eate(element->document(), options)); |
2293 } | 2293 } |
2294 | 2294 |
2295 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio
nState) | 2295 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio
nState) |
2296 { | 2296 { |
2297 return new InternalsIterator; | 2297 return new InternalsIterator; |
2298 } | 2298 } |
2299 | 2299 |
2300 } // namespace blink | 2300 } // namespace blink |
OLD | NEW |