OLD | NEW |
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 "WebCompositionUnderline.h" | 8 #include "WebCompositionUnderline.h" |
9 #include "WebFrame.h" | 9 #include "WebFrame.h" |
10 #include "WebFrameLoadType.h" | 10 #include "WebFrameLoadType.h" |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 // * CSP policy block | 141 // * CSP policy block |
142 // * reload | 142 // * reload |
143 // * form submission | 143 // * form submission |
144 virtual bool isNavigationScheduledWithin(double intervalInSeconds) const = 0; | 144 virtual bool isNavigationScheduledWithin(double intervalInSeconds) const = 0; |
145 | 145 |
146 // Override the normal rules for whether a load has successfully committed | 146 // Override the normal rules for whether a load has successfully committed |
147 // in this frame. Used to propagate state when this frame has navigated | 147 // in this frame. Used to propagate state when this frame has navigated |
148 // cross process. | 148 // cross process. |
149 virtual void setCommittedFirstRealLoad() = 0; | 149 virtual void setCommittedFirstRealLoad() = 0; |
150 | 150 |
| 151 // Mark this frame's document as having received a user gesture, based on |
| 152 // one of its descendants having processed a user gesture. |
| 153 virtual void setHasReceivedUserGesture() = 0; |
| 154 |
151 // Orientation Changes ---------------------------------------------------- | 155 // Orientation Changes ---------------------------------------------------- |
152 | 156 |
153 // Notify the frame that the screen orientation has changed. | 157 // Notify the frame that the screen orientation has changed. |
154 virtual void sendOrientationChangeEvent() = 0; | 158 virtual void sendOrientationChangeEvent() = 0; |
155 | 159 |
156 // Printing ------------------------------------------------------------ | 160 // Printing ------------------------------------------------------------ |
157 | 161 |
158 // Returns true on success and sets the out parameter to the print preset | 162 // Returns true on success and sets the out parameter to the print preset |
159 // options for the document. | 163 // options for the document. |
160 virtual bool getPrintPresetOptionsForPlugin(const WebNode&, | 164 virtual bool getPrintPresetOptionsForPlugin(const WebNode&, |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 // to call these on a WebLocalFrame. | 461 // to call these on a WebLocalFrame. |
458 bool isWebLocalFrame() const override = 0; | 462 bool isWebLocalFrame() const override = 0; |
459 WebLocalFrame* toWebLocalFrame() override = 0; | 463 WebLocalFrame* toWebLocalFrame() override = 0; |
460 bool isWebRemoteFrame() const override = 0; | 464 bool isWebRemoteFrame() const override = 0; |
461 WebRemoteFrame* toWebRemoteFrame() override = 0; | 465 WebRemoteFrame* toWebRemoteFrame() override = 0; |
462 }; | 466 }; |
463 | 467 |
464 } // namespace blink | 468 } // namespace blink |
465 | 469 |
466 #endif // WebLocalFrame_h | 470 #endif // WebLocalFrame_h |
OLD | NEW |