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

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

Issue 2907663004: FrameTree::Find only searches relative to local frames. (Closed)
Patch Set: Addressed CR feedback Created 3 years, 7 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
116 // the given name (but note some caveats around browsing instance boundaries
117 // tracked in https://crbug.com/718489).
118 virtual WebFrame* FindFrameByName(const WebString& name) = 0;
119
113 // Navigation Ping -------------------------------------------------------- 120 // Navigation Ping --------------------------------------------------------
114 121
115 virtual void SendPings(const WebURL& destination_url) = 0; 122 virtual void SendPings(const WebURL& destination_url) = 0;
116 123
117 // Navigation ---------------------------------------------------------- 124 // Navigation ----------------------------------------------------------
118 125
119 // Runs beforeunload handlers for this frame and returns the value returned 126 // Runs beforeunload handlers for this frame and returns the value returned
120 // by handlers. 127 // by handlers.
121 // Note: this may lead to the destruction of the frame. 128 // Note: this may lead to the destruction of the frame.
122 virtual bool DispatchBeforeUnloadEvent(bool is_reload) = 0; 129 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. 572 // to call these on a WebLocalFrame.
566 bool IsWebLocalFrame() const override = 0; 573 bool IsWebLocalFrame() const override = 0;
567 WebLocalFrame* ToWebLocalFrame() override = 0; 574 WebLocalFrame* ToWebLocalFrame() override = 0;
568 bool IsWebRemoteFrame() const override = 0; 575 bool IsWebRemoteFrame() const override = 0;
569 WebRemoteFrame* ToWebRemoteFrame() override = 0; 576 WebRemoteFrame* ToWebRemoteFrame() override = 0;
570 }; 577 };
571 578
572 } // namespace blink 579 } // namespace blink
573 580
574 #endif // WebLocalFrame_h 581 #endif // WebLocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698