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