OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 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 3373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3384 void WebViewImpl::setDomainRelaxationForbidden(bool forbidden, const WebString&
scheme) | 3384 void WebViewImpl::setDomainRelaxationForbidden(bool forbidden, const WebString&
scheme) |
3385 { | 3385 { |
3386 SchemeRegistry::setDomainRelaxationForbiddenForURLScheme(forbidden, String(s
cheme)); | 3386 SchemeRegistry::setDomainRelaxationForbiddenForURLScheme(forbidden, String(s
cheme)); |
3387 } | 3387 } |
3388 | 3388 |
3389 void WebViewImpl::setWindowFeatures(const WebWindowFeatures& features) | 3389 void WebViewImpl::setWindowFeatures(const WebWindowFeatures& features) |
3390 { | 3390 { |
3391 m_page->chrome().setWindowFeatures(features); | 3391 m_page->chrome().setWindowFeatures(features); |
3392 } | 3392 } |
3393 | 3393 |
| 3394 void WebViewImpl::setOpenedByDOM() |
| 3395 { |
| 3396 m_page->setOpenedByDOM(); |
| 3397 } |
| 3398 |
3394 void WebViewImpl::setSelectionColors(unsigned activeBackgroundColor, | 3399 void WebViewImpl::setSelectionColors(unsigned activeBackgroundColor, |
3395 unsigned activeForegroundColor, | 3400 unsigned activeForegroundColor, |
3396 unsigned inactiveBackgroundColor, | 3401 unsigned inactiveBackgroundColor, |
3397 unsigned inactiveForegroundColor) { | 3402 unsigned inactiveForegroundColor) { |
3398 #if USE(DEFAULT_RENDER_THEME) | 3403 #if USE(DEFAULT_RENDER_THEME) |
3399 RenderThemeChromiumDefault::setSelectionColors(activeBackgroundColor, active
ForegroundColor, inactiveBackgroundColor, inactiveForegroundColor); | 3404 RenderThemeChromiumDefault::setSelectionColors(activeBackgroundColor, active
ForegroundColor, inactiveBackgroundColor, inactiveForegroundColor); |
3400 RenderTheme::theme().platformColorsDidChange(); | 3405 RenderTheme::theme().platformColorsDidChange(); |
3401 #endif | 3406 #endif |
3402 } | 3407 } |
3403 | 3408 |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3975 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); | 3980 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); |
3976 | 3981 |
3977 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) | 3982 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) |
3978 return false; | 3983 return false; |
3979 | 3984 |
3980 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width | 3985 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width |
3981 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); | 3986 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); |
3982 } | 3987 } |
3983 | 3988 |
3984 } // namespace blink | 3989 } // namespace blink |
OLD | NEW |