OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1217 | 1217 |
1218 void WebLocalFrameImpl::extendSelectionAndDelete(int before, int after) | 1218 void WebLocalFrameImpl::extendSelectionAndDelete(int before, int after) |
1219 { | 1219 { |
1220 if (WebPlugin* plugin = focusedPluginIfInputMethodSupported()) { | 1220 if (WebPlugin* plugin = focusedPluginIfInputMethodSupported()) { |
1221 plugin->extendSelectionAndDelete(before, after); | 1221 plugin->extendSelectionAndDelete(before, after); |
1222 return; | 1222 return; |
1223 } | 1223 } |
1224 frame()->inputMethodController().extendSelectionAndDelete(before, after); | 1224 frame()->inputMethodController().extendSelectionAndDelete(before, after); |
1225 } | 1225 } |
1226 | 1226 |
| 1227 void WebLocalFrameImpl::navigateToSandboxedMarkup(const WebData& markup) |
| 1228 { |
| 1229 ASSERT(document().securityOrigin().isUnique()); |
| 1230 frame()->loader().forceSandboxFlags(SandboxAll); |
| 1231 loadHTMLString(markup, document().url(), WebURL(), true); |
| 1232 } |
| 1233 |
1227 void WebLocalFrameImpl::setCaretVisible(bool visible) | 1234 void WebLocalFrameImpl::setCaretVisible(bool visible) |
1228 { | 1235 { |
1229 frame()->selection().setCaretVisible(visible); | 1236 frame()->selection().setCaretVisible(visible); |
1230 } | 1237 } |
1231 | 1238 |
1232 VisiblePosition WebLocalFrameImpl::visiblePositionForWindowPoint(const WebPoint&
point) | 1239 VisiblePosition WebLocalFrameImpl::visiblePositionForWindowPoint(const WebPoint&
point) |
1233 { | 1240 { |
1234 // FIXME(bokan): crbug.com/371902 - These scale/pinch transforms shouldn't | 1241 // FIXME(bokan): crbug.com/371902 - These scale/pinch transforms shouldn't |
1235 // be ad hoc and explicit. | 1242 // be ad hoc and explicit. |
1236 PinchViewport& pinchViewport = frame()->page()->frameHost().pinchViewport(); | 1243 PinchViewport& pinchViewport = frame()->page()->frameHost().pinchViewport(); |
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1869 | 1876 |
1870 void WebLocalFrameImpl::invalidateAll() const | 1877 void WebLocalFrameImpl::invalidateAll() const |
1871 { | 1878 { |
1872 ASSERT(frame() && frame()->view()); | 1879 ASSERT(frame() && frame()->view()); |
1873 FrameView* view = frame()->view(); | 1880 FrameView* view = frame()->view(); |
1874 view->invalidateRect(view->frameRect()); | 1881 view->invalidateRect(view->frameRect()); |
1875 invalidateScrollbar(); | 1882 invalidateScrollbar(); |
1876 } | 1883 } |
1877 | 1884 |
1878 } // namespace blink | 1885 } // namespace blink |
OLD | NEW |