| 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 3850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3861 void WebViewImpl::enableDeviceEmulation(const WebDeviceEmulationParams& params) | 3861 void WebViewImpl::enableDeviceEmulation(const WebDeviceEmulationParams& params) |
| 3862 { | 3862 { |
| 3863 m_devToolsEmulator->enableDeviceEmulation(params); | 3863 m_devToolsEmulator->enableDeviceEmulation(params); |
| 3864 } | 3864 } |
| 3865 | 3865 |
| 3866 void WebViewImpl::disableDeviceEmulation() | 3866 void WebViewImpl::disableDeviceEmulation() |
| 3867 { | 3867 { |
| 3868 m_devToolsEmulator->disableDeviceEmulation(); | 3868 m_devToolsEmulator->disableDeviceEmulation(); |
| 3869 } | 3869 } |
| 3870 | 3870 |
| 3871 void WebViewImpl::setTouchEventEmulationEnabled(bool enabled) |
| 3872 { |
| 3873 m_devToolsEmulator->setTouchEventEmulationEnabled(enabled); |
| 3874 } |
| 3875 |
| 3871 WebAXObject WebViewImpl::accessibilityObject() | 3876 WebAXObject WebViewImpl::accessibilityObject() |
| 3872 { | 3877 { |
| 3873 if (!mainFrameImpl()) | 3878 if (!mainFrameImpl()) |
| 3874 return WebAXObject(); | 3879 return WebAXObject(); |
| 3875 | 3880 |
| 3876 Document* document = mainFrameImpl()->frame()->document(); | 3881 Document* document = mainFrameImpl()->frame()->document(); |
| 3877 return WebAXObject(toAXObjectCacheImpl(document->axObjectCache())->root()); | 3882 return WebAXObject(toAXObjectCacheImpl(document->axObjectCache())->root()); |
| 3878 } | 3883 } |
| 3879 | 3884 |
| 3880 void WebViewImpl::performCustomContextMenuAction(unsigned action) | 3885 void WebViewImpl::performCustomContextMenuAction(unsigned action) |
| (...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4556 { | 4561 { |
| 4557 // TODO(oshima): Investigate if this should return the ScreenInfo's scale fa
ctor rather than | 4562 // TODO(oshima): Investigate if this should return the ScreenInfo's scale fa
ctor rather than |
| 4558 // page's scale factor, which can be 1 in use-zoom-for-dsf mode. | 4563 // page's scale factor, which can be 1 in use-zoom-for-dsf mode. |
| 4559 if (!page()) | 4564 if (!page()) |
| 4560 return 1; | 4565 return 1; |
| 4561 | 4566 |
| 4562 return page()->deviceScaleFactor(); | 4567 return page()->deviceScaleFactor(); |
| 4563 } | 4568 } |
| 4564 | 4569 |
| 4565 } // namespace blink | 4570 } // namespace blink |
| OLD | NEW |