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