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

Side by Side Diff: third_party/WebKit/Source/core/frame/DOMWindow.cpp

Issue 2177123003: Move SearchProvider implementation into Blink and make it a no-op. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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
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"
11 #include "core/events/MessageEvent.h" 11 #include "core/events/MessageEvent.h"
12 #include "core/frame/External.h"
12 #include "core/frame/Frame.h" 13 #include "core/frame/Frame.h"
13 #include "core/frame/FrameClient.h" 14 #include "core/frame/FrameClient.h"
14 #include "core/frame/FrameConsole.h" 15 #include "core/frame/FrameConsole.h"
15 #include "core/frame/LocalDOMWindow.h" 16 #include "core/frame/LocalDOMWindow.h"
16 #include "core/frame/Location.h" 17 #include "core/frame/Location.h"
17 #include "core/frame/RemoteDOMWindow.h" 18 #include "core/frame/RemoteDOMWindow.h"
18 #include "core/frame/RemoteFrame.h" 19 #include "core/frame/RemoteFrame.h"
19 #include "core/frame/Settings.h" 20 #include "core/frame/Settings.h"
20 #include "core/frame/UseCounter.h" 21 #include "core/frame/UseCounter.h"
21 #include "core/input/EventHandler.h" 22 #include "core/input/EventHandler.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 { 118 {
118 // TODO(yukishiino): The 'top' attribute must return |this| 119 // TODO(yukishiino): The 'top' attribute must return |this|
119 // (the WindowProxy object of the browsing context itself) when it's 120 // (the WindowProxy object of the browsing context itself) when it's
120 // top-level or detached. 121 // top-level or detached.
121 if (!isCurrentlyDisplayedInFrame()) 122 if (!isCurrentlyDisplayedInFrame())
122 return nullptr; 123 return nullptr;
123 124
124 return frame()->tree().top()->domWindow(); 125 return frame()->tree().top()->domWindow();
125 } 126 }
126 127
128 External* DOMWindow::external() const
129 {
130 DEFINE_STATIC_LOCAL(Persistent<External>, external, (new External));
131 return external;
132 }
133
127 DOMWindow* DOMWindow::anonymousIndexedGetter(uint32_t index) const 134 DOMWindow* DOMWindow::anonymousIndexedGetter(uint32_t index) const
128 { 135 {
129 if (!frame()) 136 if (!frame())
130 return nullptr; 137 return nullptr;
131 138
132 Frame* child = frame()->tree().scopedChild(index); 139 Frame* child = frame()->tree().scopedChild(index);
133 return child ? child->domWindow() : nullptr; 140 return child ? child->domWindow() : nullptr;
134 } 141 }
135 142
136 bool DOMWindow::isCurrentlyDisplayedInFrame() const 143 bool DOMWindow::isCurrentlyDisplayedInFrame() const
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 page->focusController().focusDocumentView(frame(), true /* notifyEmbedder */ ); 381 page->focusController().focusDocumentView(frame(), true /* notifyEmbedder */ );
375 } 382 }
376 383
377 DEFINE_TRACE(DOMWindow) 384 DEFINE_TRACE(DOMWindow)
378 { 385 {
379 visitor->trace(m_location); 386 visitor->trace(m_location);
380 EventTargetWithInlineData::trace(visitor); 387 EventTargetWithInlineData::trace(visitor);
381 } 388 }
382 389
383 } // namespace blink 390 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/DOMWindow.h ('k') | third_party/WebKit/Source/core/frame/External.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698