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

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

Issue 2632633006: Implement NavigationThrottle::BLOCK_REQUEST_AND_COLLAPSE. (Closed)
Patch Set: Extend tests, fix redirects. Non-PlzNavigate version still broken. Created 3 years, 10 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 // Returns true if the contents (minus scrollbars) has non-zero area. 178 // Returns true if the contents (minus scrollbars) has non-zero area.
179 virtual bool hasVisibleContent() const = 0; 179 virtual bool hasVisibleContent() const = 0;
180 180
181 // Returns the visible content rect (minus scrollbars, in absolute coordinate) 181 // Returns the visible content rect (minus scrollbars, in absolute coordinate)
182 virtual WebRect visibleContentRect() const = 0; 182 virtual WebRect visibleContentRect() const = 0;
183 183
184 virtual bool hasHorizontalScrollbar() const = 0; 184 virtual bool hasHorizontalScrollbar() const = 0;
185 virtual bool hasVerticalScrollbar() const = 0; 185 virtual bool hasVerticalScrollbar() const = 0;
186 186
187 // Whether to collapse the frame's owner element in the embedder document,
188 // that is, to remove it from the layout as if it did not exist. Only works
189 // for <iframe> owner elements.
190 virtual void collapse(bool) = 0;
191
187 // Hierarchy ---------------------------------------------------------- 192 // Hierarchy ----------------------------------------------------------
188 193
189 // Returns the containing view. 194 // Returns the containing view.
190 virtual WebView* view() const = 0; 195 virtual WebView* view() const = 0;
191 196
192 // Returns the frame that opened this frame or 0 if there is none. 197 // Returns the frame that opened this frame or 0 if there is none.
193 BLINK_EXPORT WebFrame* opener() const; 198 BLINK_EXPORT WebFrame* opener() const;
194 199
195 // Sets the frame that opened this one or 0 if there is none. 200 // Sets the frame that opened this one or 0 if there is none.
196 BLINK_EXPORT void setOpener(WebFrame*); 201 BLINK_EXPORT void setOpener(WebFrame*);
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 WebFrame* m_firstChild; 474 WebFrame* m_firstChild;
470 WebFrame* m_lastChild; 475 WebFrame* m_lastChild;
471 476
472 WebFrame* m_opener; 477 WebFrame* m_opener;
473 std::unique_ptr<OpenedFrameTracker> m_openedFrameTracker; 478 std::unique_ptr<OpenedFrameTracker> m_openedFrameTracker;
474 }; 479 };
475 480
476 } // namespace blink 481 } // namespace blink
477 482
478 #endif 483 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698