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 1196 matching lines...) Loading... |
1207 void WebLocalFrameImpl::extendSelectionAndDelete(int before, int after) | 1207 void WebLocalFrameImpl::extendSelectionAndDelete(int before, int after) |
1208 { | 1208 { |
1209 TRACE_EVENT0("blink", "WebLocalFrameImpl::extendSelectionAndDelete"); | 1209 TRACE_EVENT0("blink", "WebLocalFrameImpl::extendSelectionAndDelete"); |
1210 if (WebPlugin* plugin = focusedPluginIfInputMethodSupported()) { | 1210 if (WebPlugin* plugin = focusedPluginIfInputMethodSupported()) { |
1211 plugin->extendSelectionAndDelete(before, after); | 1211 plugin->extendSelectionAndDelete(before, after); |
1212 return; | 1212 return; |
1213 } | 1213 } |
1214 frame()->inputMethodController().extendSelectionAndDelete(before, after); | 1214 frame()->inputMethodController().extendSelectionAndDelete(before, after); |
1215 } | 1215 } |
1216 | 1216 |
| 1217 void WebLocalFrameImpl::deleteSurroundingText(int before, int after) |
| 1218 { |
| 1219 TRACE_EVENT0("blink", "WebLocalFrameImpl::deleteSurroundingText"); |
| 1220 if (WebPlugin* plugin = focusedPluginIfInputMethodSupported()) { |
| 1221 plugin->deleteSurroundingText(before, after); |
| 1222 return; |
| 1223 } |
| 1224 frame()->inputMethodController().deleteSurroundingText(before, after); |
| 1225 } |
| 1226 |
1217 void WebLocalFrameImpl::setCaretVisible(bool visible) | 1227 void WebLocalFrameImpl::setCaretVisible(bool visible) |
1218 { | 1228 { |
1219 frame()->selection().setCaretVisible(visible); | 1229 frame()->selection().setCaretVisible(visible); |
1220 } | 1230 } |
1221 | 1231 |
1222 VisiblePosition WebLocalFrameImpl::visiblePositionForViewportPoint(const WebPoin
t& pointInViewport) | 1232 VisiblePosition WebLocalFrameImpl::visiblePositionForViewportPoint(const WebPoin
t& pointInViewport) |
1223 { | 1233 { |
1224 return visiblePositionForContentsPoint(frame()->view()->viewportToContents(p
ointInViewport), frame()); | 1234 return visiblePositionForContentsPoint(frame()->view()->viewportToContents(p
ointInViewport), frame()); |
1225 } | 1235 } |
1226 | 1236 |
(...skipping 884 matching lines...) Loading... |
2111 return WebSandboxFlags::None; | 2121 return WebSandboxFlags::None; |
2112 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); | 2122 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); |
2113 } | 2123 } |
2114 | 2124 |
2115 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags) | 2125 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags) |
2116 { | 2126 { |
2117 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); | 2127 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); |
2118 } | 2128 } |
2119 | 2129 |
2120 } // namespace blink | 2130 } // namespace blink |
OLD | NEW |