OLD | NEW |
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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 #include "platform/graphics/paint/SkPictureBuilder.h" | 174 #include "platform/graphics/paint/SkPictureBuilder.h" |
175 #include "platform/graphics/skia/SkiaUtils.h" | 175 #include "platform/graphics/skia/SkiaUtils.h" |
176 #include "platform/heap/Handle.h" | 176 #include "platform/heap/Handle.h" |
177 #include "platform/network/ResourceRequest.h" | 177 #include "platform/network/ResourceRequest.h" |
178 #include "platform/scroll/ScrollTypes.h" | 178 #include "platform/scroll/ScrollTypes.h" |
179 #include "platform/scroll/ScrollbarTheme.h" | 179 #include "platform/scroll/ScrollbarTheme.h" |
180 #include "platform/weborigin/KURL.h" | 180 #include "platform/weborigin/KURL.h" |
181 #include "platform/weborigin/SchemeRegistry.h" | 181 #include "platform/weborigin/SchemeRegistry.h" |
182 #include "platform/weborigin/SecurityPolicy.h" | 182 #include "platform/weborigin/SecurityPolicy.h" |
183 #include "public/platform/InterfaceProvider.h" | 183 #include "public/platform/InterfaceProvider.h" |
| 184 #include "public/platform/WebDoubleSize.h" |
184 #include "public/platform/WebFloatPoint.h" | 185 #include "public/platform/WebFloatPoint.h" |
185 #include "public/platform/WebFloatRect.h" | 186 #include "public/platform/WebFloatRect.h" |
186 #include "public/platform/WebLayer.h" | 187 #include "public/platform/WebLayer.h" |
187 #include "public/platform/WebPoint.h" | 188 #include "public/platform/WebPoint.h" |
188 #include "public/platform/WebRect.h" | 189 #include "public/platform/WebRect.h" |
189 #include "public/platform/WebSecurityOrigin.h" | 190 #include "public/platform/WebSecurityOrigin.h" |
190 #include "public/platform/WebSize.h" | 191 #include "public/platform/WebSize.h" |
191 #include "public/platform/WebSuspendableTask.h" | 192 #include "public/platform/WebSuspendableTask.h" |
192 #include "public/platform/WebURLError.h" | 193 #include "public/platform/WebURLError.h" |
193 #include "public/platform/WebVector.h" | 194 #include "public/platform/WebVector.h" |
(...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1320 bool WebLocalFrameImpl::hasCustomPageSizeStyle(int pageIndex) | 1321 bool WebLocalFrameImpl::hasCustomPageSizeStyle(int pageIndex) |
1321 { | 1322 { |
1322 return frame()->document()->styleForPage(pageIndex)->getPageSizeType() != PA
GE_SIZE_AUTO; | 1323 return frame()->document()->styleForPage(pageIndex)->getPageSizeType() != PA
GE_SIZE_AUTO; |
1323 } | 1324 } |
1324 | 1325 |
1325 bool WebLocalFrameImpl::isPageBoxVisible(int pageIndex) | 1326 bool WebLocalFrameImpl::isPageBoxVisible(int pageIndex) |
1326 { | 1327 { |
1327 return frame()->document()->isPageBoxVisible(pageIndex); | 1328 return frame()->document()->isPageBoxVisible(pageIndex); |
1328 } | 1329 } |
1329 | 1330 |
1330 void WebLocalFrameImpl::pageSizeAndMarginsInPixels(int pageIndex, WebSize& pageS
ize, int& marginTop, int& marginRight, int& marginBottom, int& marginLeft) | 1331 void WebLocalFrameImpl::pageSizeAndMarginsInPixels(int pageIndex, WebDoubleSize&
pageSize, int& marginTop, int& marginRight, int& marginBottom, int& marginLeft) |
1331 { | 1332 { |
1332 IntSize size = pageSize; | 1333 DoubleSize size = pageSize; |
1333 frame()->document()->pageSizeAndMarginsInPixels(pageIndex, size, marginTop,
marginRight, marginBottom, marginLeft); | 1334 frame()->document()->pageSizeAndMarginsInPixels(pageIndex, size, marginTop,
marginRight, marginBottom, marginLeft); |
1334 pageSize = size; | 1335 pageSize = size; |
1335 } | 1336 } |
1336 | 1337 |
1337 WebString WebLocalFrameImpl::pageProperty(const WebString& propertyName, int pag
eIndex) | 1338 WebString WebLocalFrameImpl::pageProperty(const WebString& propertyName, int pag
eIndex) |
1338 { | 1339 { |
1339 DCHECK(m_printContext); | 1340 DCHECK(m_printContext); |
1340 return m_printContext->pageProperty(frame(), propertyName.utf8().data(), pag
eIndex); | 1341 return m_printContext->pageProperty(frame(), propertyName.utf8().data(), pag
eIndex); |
1341 } | 1342 } |
1342 | 1343 |
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2148 { | 2149 { |
2149 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); | 2150 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); |
2150 } | 2151 } |
2151 | 2152 |
2152 void WebLocalFrameImpl::clearActiveFindMatch() | 2153 void WebLocalFrameImpl::clearActiveFindMatch() |
2153 { | 2154 { |
2154 ensureTextFinder().clearActiveFindMatch(); | 2155 ensureTextFinder().clearActiveFindMatch(); |
2155 } | 2156 } |
2156 | 2157 |
2157 } // namespace blink | 2158 } // namespace blink |
OLD | NEW |