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 2805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2816 if (page()) | 2816 if (page()) |
2817 page()->pointerLockController().didLosePointerLock(); | 2817 page()->pointerLockController().didLosePointerLock(); |
2818 } | 2818 } |
2819 | 2819 |
2820 void WebViewImpl::didChangeWindowResizerRect() | 2820 void WebViewImpl::didChangeWindowResizerRect() |
2821 { | 2821 { |
2822 if (mainFrameImpl()->frameView()) | 2822 if (mainFrameImpl()->frameView()) |
2823 mainFrameImpl()->frameView()->windowResizerRectChanged(); | 2823 mainFrameImpl()->frameView()->windowResizerRectChanged(); |
2824 } | 2824 } |
2825 | 2825 |
2826 void WebViewImpl::reportFixedRasterScaleUseCounters(bool hasBlurryContent, bool
hasPotentialPerformanceRegression) | |
2827 { | |
2828 if (!mainFrameImpl()) | |
2829 return; | |
2830 Document* document = mainFrameImpl()->frame()->document(); | |
2831 if (hasBlurryContent) | |
2832 UseCounter::count(document, UseCounter::FixedRasterScaleBlurryContent); | |
2833 if (hasPotentialPerformanceRegression) | |
2834 UseCounter::count(document, UseCounter::FixedRasterScalePotentialPerform
anceRegression); | |
2835 } | |
2836 | |
2837 // WebView -------------------------------------------------------------------- | 2826 // WebView -------------------------------------------------------------------- |
2838 | 2827 |
2839 WebSettingsImpl* WebViewImpl::settingsImpl() | 2828 WebSettingsImpl* WebViewImpl::settingsImpl() |
2840 { | 2829 { |
2841 if (!m_webSettings) | 2830 if (!m_webSettings) |
2842 m_webSettings = wrapUnique(new WebSettingsImpl(&m_page->settings(), m_de
vToolsEmulator.get())); | 2831 m_webSettings = wrapUnique(new WebSettingsImpl(&m_page->settings(), m_de
vToolsEmulator.get())); |
2843 DCHECK(m_webSettings); | 2832 DCHECK(m_webSettings); |
2844 return m_webSettings.get(); | 2833 return m_webSettings.get(); |
2845 } | 2834 } |
2846 | 2835 |
(...skipping 1685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4532 { | 4521 { |
4533 // TODO(oshima): Investigate if this should return the ScreenInfo's scale fa
ctor rather than | 4522 // TODO(oshima): Investigate if this should return the ScreenInfo's scale fa
ctor rather than |
4534 // page's scale factor, which can be 1 in use-zoom-for-dsf mode. | 4523 // page's scale factor, which can be 1 in use-zoom-for-dsf mode. |
4535 if (!page()) | 4524 if (!page()) |
4536 return 1; | 4525 return 1; |
4537 | 4526 |
4538 return page()->deviceScaleFactor(); | 4527 return page()->deviceScaleFactor(); |
4539 } | 4528 } |
4540 | 4529 |
4541 } // namespace blink | 4530 } // namespace blink |
OLD | NEW |