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

Side by Side Diff: third_party/WebKit/public/web/WebLocalFrame.h

Issue 2907663004: FrameTree::Find only searches relative to local frames. (Closed)
Patch Set: . Created 3 years, 6 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 #ifndef WebLocalFrame_h 5 #ifndef WebLocalFrame_h
6 #define WebLocalFrame_h 6 #define WebLocalFrame_h
7 7
8 #include <set> 8 #include <set>
9 #include "WebCompositionUnderline.h" 9 #include "WebCompositionUnderline.h"
10 #include "WebFrame.h" 10 #include "WebFrame.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 virtual void SetAutofillClient(WebAutofillClient*) = 0; 103 virtual void SetAutofillClient(WebAutofillClient*) = 0;
104 virtual WebAutofillClient* AutofillClient() = 0; 104 virtual WebAutofillClient* AutofillClient() = 0;
105 virtual void SetDevToolsAgentClient(WebDevToolsAgentClient*) = 0; 105 virtual void SetDevToolsAgentClient(WebDevToolsAgentClient*) = 0;
106 virtual WebDevToolsAgent* DevToolsAgent() = 0; 106 virtual WebDevToolsAgent* DevToolsAgent() = 0;
107 107
108 // Hierarchy ---------------------------------------------------------- 108 // Hierarchy ----------------------------------------------------------
109 109
110 // Get the highest-level LocalFrame in this frame's in-process subtree. 110 // Get the highest-level LocalFrame in this frame's in-process subtree.
111 virtual WebLocalFrame* LocalRoot() = 0; 111 virtual WebLocalFrame* LocalRoot() = 0;
112 112
113 // Returns the frame identified by the given name. This method supports
114 // pseudo-names like _self, _top, and _blank. It traverses the entire
115 // browsing instance containing this frame, looking for a frame that matches
dcheng 2017/05/26 18:28:06 "browsing instance" isn't quite true today, is it?
Łukasz Anforowicz 2017/05/26 20:04:05 I've added a disclaimer to the comment above. Rig
dcheng 2017/05/26 20:16:19 Small nit: the web name for this is "same unit of
Łukasz Anforowicz 2017/05/26 20:51:19 In the end I've stopped talking about "browsing in
116 // the given name.
117 virtual WebFrame* FindFrameByName(const WebString& name) = 0;
118
113 // Navigation Ping -------------------------------------------------------- 119 // Navigation Ping --------------------------------------------------------
114 120
115 virtual void SendPings(const WebURL& destination_url) = 0; 121 virtual void SendPings(const WebURL& destination_url) = 0;
116 122
117 // Navigation ---------------------------------------------------------- 123 // Navigation ----------------------------------------------------------
118 124
119 // Runs beforeunload handlers for this frame and returns the value returned 125 // Runs beforeunload handlers for this frame and returns the value returned
120 // by handlers. 126 // by handlers.
121 // Note: this may lead to the destruction of the frame. 127 // Note: this may lead to the destruction of the frame.
122 virtual bool DispatchBeforeUnloadEvent(bool is_reload) = 0; 128 virtual bool DispatchBeforeUnloadEvent(bool is_reload) = 0;
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 // to call these on a WebLocalFrame. 571 // to call these on a WebLocalFrame.
566 bool IsWebLocalFrame() const override = 0; 572 bool IsWebLocalFrame() const override = 0;
567 WebLocalFrame* ToWebLocalFrame() override = 0; 573 WebLocalFrame* ToWebLocalFrame() override = 0;
568 bool IsWebRemoteFrame() const override = 0; 574 bool IsWebRemoteFrame() const override = 0;
569 WebRemoteFrame* ToWebRemoteFrame() override = 0; 575 WebRemoteFrame* ToWebRemoteFrame() override = 0;
570 }; 576 };
571 577
572 } // namespace blink 578 } // namespace blink
573 579
574 #endif // WebLocalFrame_h 580 #endif // WebLocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698