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 2803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2814 if (page()) | 2814 if (page()) |
2815 page()->pointerLockController().didLosePointerLock(); | 2815 page()->pointerLockController().didLosePointerLock(); |
2816 } | 2816 } |
2817 | 2817 |
2818 void WebViewImpl::didChangeWindowResizerRect() | 2818 void WebViewImpl::didChangeWindowResizerRect() |
2819 { | 2819 { |
2820 if (mainFrameImpl()->frameView()) | 2820 if (mainFrameImpl()->frameView()) |
2821 mainFrameImpl()->frameView()->windowResizerRectChanged(); | 2821 mainFrameImpl()->frameView()->windowResizerRectChanged(); |
2822 } | 2822 } |
2823 | 2823 |
2824 void WebViewImpl::reportFixedRasterScaleUseCounters(bool hasBlurryContent, bool
hasPotentialPerformanceRegression) | |
2825 { | |
2826 if (!mainFrameImpl()) | |
2827 return; | |
2828 Document* document = mainFrameImpl()->frame()->document(); | |
2829 if (hasBlurryContent) | |
2830 UseCounter::count(document, UseCounter::FixedRasterScaleBlurryContent); | |
2831 if (hasPotentialPerformanceRegression) | |
2832 UseCounter::count(document, UseCounter::FixedRasterScalePotentialPerform
anceRegression); | |
2833 } | |
2834 | |
2835 // WebView -------------------------------------------------------------------- | 2824 // WebView -------------------------------------------------------------------- |
2836 | 2825 |
2837 WebSettingsImpl* WebViewImpl::settingsImpl() | 2826 WebSettingsImpl* WebViewImpl::settingsImpl() |
2838 { | 2827 { |
2839 if (!m_webSettings) | 2828 if (!m_webSettings) |
2840 m_webSettings = adoptPtr(new WebSettingsImpl(&m_page->settings(), m_devT
oolsEmulator.get())); | 2829 m_webSettings = adoptPtr(new WebSettingsImpl(&m_page->settings(), m_devT
oolsEmulator.get())); |
2841 DCHECK(m_webSettings); | 2830 DCHECK(m_webSettings); |
2842 return m_webSettings.get(); | 2831 return m_webSettings.get(); |
2843 } | 2832 } |
2844 | 2833 |
(...skipping 1721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4566 { | 4555 { |
4567 // TODO(oshima): Investigate if this should return the ScreenInfo's scale fa
ctor rather than | 4556 // TODO(oshima): Investigate if this should return the ScreenInfo's scale fa
ctor rather than |
4568 // page's scale factor, which can be 1 in use-zoom-for-dsf mode. | 4557 // page's scale factor, which can be 1 in use-zoom-for-dsf mode. |
4569 if (!page()) | 4558 if (!page()) |
4570 return 1; | 4559 return 1; |
4571 | 4560 |
4572 return page()->deviceScaleFactor(); | 4561 return page()->deviceScaleFactor(); |
4573 } | 4562 } |
4574 | 4563 |
4575 } // namespace blink | 4564 } // namespace blink |
OLD | NEW |