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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 // cross process. | 144 // cross process. |
145 virtual void setCommittedFirstRealLoad() = 0; | 145 virtual void setCommittedFirstRealLoad() = 0; |
146 | 146 |
147 // Orientation Changes ---------------------------------------------------- | 147 // Orientation Changes ---------------------------------------------------- |
148 | 148 |
149 // Notify the frame that the screen orientation has changed. | 149 // Notify the frame that the screen orientation has changed. |
150 virtual void sendOrientationChangeEvent() = 0; | 150 virtual void sendOrientationChangeEvent() = 0; |
151 | 151 |
152 // Printing ------------------------------------------------------------ | 152 // Printing ------------------------------------------------------------ |
153 | 153 |
154 // Returns true on success and sets the out parameter to the print preset opti
ons for the document. | 154 // Returns true on success and sets the out parameter to the print preset |
| 155 // options for the document. |
155 virtual bool getPrintPresetOptionsForPlugin(const WebNode&, | 156 virtual bool getPrintPresetOptionsForPlugin(const WebNode&, |
156 WebPrintPresetOptions*) = 0; | 157 WebPrintPresetOptions*) = 0; |
157 | 158 |
158 // CSS3 Paged Media ---------------------------------------------------- | 159 // CSS3 Paged Media ---------------------------------------------------- |
159 | 160 |
160 // Returns true if page box (margin boxes and page borders) is visible. | 161 // Returns true if page box (margin boxes and page borders) is visible. |
161 virtual bool isPageBoxVisible(int pageIndex) = 0; | 162 virtual bool isPageBoxVisible(int pageIndex) = 0; |
162 | 163 |
163 // Returns true if the page style has custom size information. | 164 // Returns true if the page style has custom size information. |
164 virtual bool hasCustomPageSizeStyle(int pageIndex) = 0; | 165 virtual bool hasCustomPageSizeStyle(int pageIndex) = 0; |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 // reloads from the network. | 313 // reloads from the network. |
313 virtual void reloadLoFiImages() = 0; | 314 virtual void reloadLoFiImages() = 0; |
314 | 315 |
315 // Feature usage logging -------------------------------------------------- | 316 // Feature usage logging -------------------------------------------------- |
316 | 317 |
317 virtual void didCallAddSearchProvider() = 0; | 318 virtual void didCallAddSearchProvider() = 0; |
318 virtual void didCallIsSearchProviderInstalled() = 0; | 319 virtual void didCallIsSearchProviderInstalled() = 0; |
319 | 320 |
320 // Iframe sandbox --------------------------------------------------------- | 321 // Iframe sandbox --------------------------------------------------------- |
321 | 322 |
322 // Returns the effective sandbox flags which are inherited from their parent f
rame. | 323 // Returns the effective sandbox flags which are inherited from their parent |
| 324 // frame. |
323 virtual WebSandboxFlags effectiveSandboxFlags() const = 0; | 325 virtual WebSandboxFlags effectiveSandboxFlags() const = 0; |
324 | 326 |
325 // Set sandbox flags that will always be forced on this frame. This is | 327 // Set sandbox flags that will always be forced on this frame. This is |
326 // used to inherit sandbox flags from cross-process opener frames in popups. | 328 // used to inherit sandbox flags from cross-process opener frames in popups. |
327 // | 329 // |
328 // TODO(dcheng): Remove this once we have WebLocalFrame::createMainFrame. | 330 // TODO(dcheng): Remove this once we have WebLocalFrame::createMainFrame. |
329 virtual void forceSandboxFlags(WebSandboxFlags) = 0; | 331 virtual void forceSandboxFlags(WebSandboxFlags) = 0; |
330 | 332 |
331 // Find-in-page ----------------------------------------------------------- | 333 // Find-in-page ----------------------------------------------------------- |
332 | 334 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 // to call these on a WebLocalFrame. | 440 // to call these on a WebLocalFrame. |
439 bool isWebLocalFrame() const override = 0; | 441 bool isWebLocalFrame() const override = 0; |
440 WebLocalFrame* toWebLocalFrame() override = 0; | 442 WebLocalFrame* toWebLocalFrame() override = 0; |
441 bool isWebRemoteFrame() const override = 0; | 443 bool isWebRemoteFrame() const override = 0; |
442 WebRemoteFrame* toWebRemoteFrame() override = 0; | 444 WebRemoteFrame* toWebRemoteFrame() override = 0; |
443 }; | 445 }; |
444 | 446 |
445 } // namespace blink | 447 } // namespace blink |
446 | 448 |
447 #endif // WebLocalFrame_h | 449 #endif // WebLocalFrame_h |
OLD | NEW |