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