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 3562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3573 void WebViewImpl::setDomainRelaxationForbidden(bool forbidden, const WebString&
scheme) | 3573 void WebViewImpl::setDomainRelaxationForbidden(bool forbidden, const WebString&
scheme) |
3574 { | 3574 { |
3575 SchemeRegistry::setDomainRelaxationForbiddenForURLScheme(forbidden, String(s
cheme)); | 3575 SchemeRegistry::setDomainRelaxationForbiddenForURLScheme(forbidden, String(s
cheme)); |
3576 } | 3576 } |
3577 | 3577 |
3578 void WebViewImpl::setWindowFeatures(const WebWindowFeatures& features) | 3578 void WebViewImpl::setWindowFeatures(const WebWindowFeatures& features) |
3579 { | 3579 { |
3580 m_page->chrome().setWindowFeatures(features); | 3580 m_page->chrome().setWindowFeatures(features); |
3581 } | 3581 } |
3582 | 3582 |
3583 // FIXME: remove this api. See: https://codereview.chromium.org/17279002/. | |
3584 void WebViewImpl::setScrollbarColors(unsigned inactiveColor, | |
3585 unsigned activeColor, | |
3586 unsigned trackColor) { | |
3587 } | |
3588 | |
3589 void WebViewImpl::setSelectionColors(unsigned activeBackgroundColor, | 3583 void WebViewImpl::setSelectionColors(unsigned activeBackgroundColor, |
3590 unsigned activeForegroundColor, | 3584 unsigned activeForegroundColor, |
3591 unsigned inactiveBackgroundColor, | 3585 unsigned inactiveBackgroundColor, |
3592 unsigned inactiveForegroundColor) { | 3586 unsigned inactiveForegroundColor) { |
3593 #if USE(DEFAULT_RENDER_THEME) | 3587 #if USE(DEFAULT_RENDER_THEME) |
3594 RenderThemeChromiumDefault::setSelectionColors(activeBackgroundColor, active
ForegroundColor, inactiveBackgroundColor, inactiveForegroundColor); | 3588 RenderThemeChromiumDefault::setSelectionColors(activeBackgroundColor, active
ForegroundColor, inactiveBackgroundColor, inactiveForegroundColor); |
3595 RenderTheme::theme().platformColorsDidChange(); | 3589 RenderTheme::theme().platformColorsDidChange(); |
3596 #endif | 3590 #endif |
3597 } | 3591 } |
3598 | 3592 |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4134 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); | 4128 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); |
4135 | 4129 |
4136 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) | 4130 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) |
4137 return false; | 4131 return false; |
4138 | 4132 |
4139 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width | 4133 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width |
4140 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); | 4134 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); |
4141 } | 4135 } |
4142 | 4136 |
4143 } // namespace WebKit | 4137 } // namespace WebKit |
OLD | NEW |