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" |
11 #include "WebHistoryItem.h" | 11 #include "WebHistoryItem.h" |
12 #include "public/platform/WebCachePolicy.h" | 12 #include "public/platform/WebCachePolicy.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 class WebAutofillClient; | 16 class WebAutofillClient; |
17 class WebContentSettingsClient; | 17 class WebContentSettingsClient; |
18 class WebDevToolsAgent; | 18 class WebDevToolsAgent; |
19 class WebDevToolsAgentClient; | 19 class WebDevToolsAgentClient; |
| 20 class WebDoubleSize; |
20 class WebFrameClient; | 21 class WebFrameClient; |
21 class WebFrameWidget; | 22 class WebFrameWidget; |
22 class WebRange; | 23 class WebRange; |
23 class WebScriptExecutionCallback; | 24 class WebScriptExecutionCallback; |
24 class WebSuspendableTask; | 25 class WebSuspendableTask; |
25 enum class WebAppBannerPromptReply; | 26 enum class WebAppBannerPromptReply; |
26 enum class WebCachePolicy; | 27 enum class WebCachePolicy; |
27 enum class WebSandboxFlags; | 28 enum class WebSandboxFlags; |
28 enum class WebTreeScopeType; | 29 enum class WebTreeScopeType; |
29 struct WebFindOptions; | 30 struct WebFindOptions; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 virtual bool isPageBoxVisible(int pageIndex) = 0; | 157 virtual bool isPageBoxVisible(int pageIndex) = 0; |
157 | 158 |
158 // Returns true if the page style has custom size information. | 159 // Returns true if the page style has custom size information. |
159 virtual bool hasCustomPageSizeStyle(int pageIndex) = 0; | 160 virtual bool hasCustomPageSizeStyle(int pageIndex) = 0; |
160 | 161 |
161 // Returns the preferred page size and margins in pixels, assuming 96 | 162 // Returns the preferred page size and margins in pixels, assuming 96 |
162 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, | 163 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, |
163 // marginLeft must be initialized to the default values that are used if | 164 // marginLeft must be initialized to the default values that are used if |
164 // auto is specified. | 165 // auto is specified. |
165 virtual void pageSizeAndMarginsInPixels(int pageIndex, | 166 virtual void pageSizeAndMarginsInPixels(int pageIndex, |
166 WebSize& pageSize, | 167 WebDoubleSize& pageSize, |
167 int& marginTop, | 168 int& marginTop, |
168 int& marginRight, | 169 int& marginRight, |
169 int& marginBottom, | 170 int& marginBottom, |
170 int& marginLeft) = 0; | 171 int& marginLeft) = 0; |
171 | 172 |
172 // Returns the value for a page property that is only defined when printing. | 173 // Returns the value for a page property that is only defined when printing. |
173 // printBegin must have been called before this method. | 174 // printBegin must have been called before this method. |
174 virtual WebString pageProperty(const WebString& propertyName, int pageIndex)
= 0; | 175 virtual WebString pageProperty(const WebString& propertyName, int pageIndex)
= 0; |
175 | 176 |
176 | 177 |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 // to call these on a WebLocalFrame. | 430 // to call these on a WebLocalFrame. |
430 bool isWebLocalFrame() const override = 0; | 431 bool isWebLocalFrame() const override = 0; |
431 WebLocalFrame* toWebLocalFrame() override = 0; | 432 WebLocalFrame* toWebLocalFrame() override = 0; |
432 bool isWebRemoteFrame() const override = 0; | 433 bool isWebRemoteFrame() const override = 0; |
433 WebRemoteFrame* toWebRemoteFrame() override = 0; | 434 WebRemoteFrame* toWebRemoteFrame() override = 0; |
434 }; | 435 }; |
435 | 436 |
436 } // namespace blink | 437 } // namespace blink |
437 | 438 |
438 #endif // WebLocalFrame_h | 439 #endif // WebLocalFrame_h |
OLD | NEW |