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 2016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2027 void WebLocalFrameImpl::didCallAddSearchProvider() | 2027 void WebLocalFrameImpl::didCallAddSearchProvider() |
2028 { | 2028 { |
2029 UseCounter::count(frame(), UseCounter::ExternalAddSearchProvider); | 2029 UseCounter::count(frame(), UseCounter::ExternalAddSearchProvider); |
2030 } | 2030 } |
2031 | 2031 |
2032 void WebLocalFrameImpl::didCallIsSearchProviderInstalled() | 2032 void WebLocalFrameImpl::didCallIsSearchProviderInstalled() |
2033 { | 2033 { |
2034 UseCounter::count(frame(), UseCounter::ExternalIsSearchProviderInstalled); | 2034 UseCounter::count(frame(), UseCounter::ExternalIsSearchProviderInstalled); |
2035 } | 2035 } |
2036 | 2036 |
2037 bool WebLocalFrameImpl::find(int identifier, const WebString& searchText, const
WebFindOptions& options, bool wrapWithinFrame, WebRect* selectionRect) | 2037 bool WebLocalFrameImpl::find(int identifier, const WebString& searchText, const
WebFindOptions& options, bool wrapWithinFrame, WebRect* selectionRect, bool* act
iveNow) |
2038 { | 2038 { |
2039 return ensureTextFinder().find(identifier, searchText, options, wrapWithinFr
ame, selectionRect); | 2039 return ensureTextFinder().find(identifier, searchText, options, wrapWithinFr
ame, selectionRect, activeNow); |
2040 } | 2040 } |
2041 | 2041 |
2042 void WebLocalFrameImpl::stopFinding(bool clearSelection) | 2042 void WebLocalFrameImpl::stopFinding(bool clearSelection) |
2043 { | 2043 { |
2044 if (m_textFinder) { | 2044 if (m_textFinder) { |
2045 if (!clearSelection) | 2045 if (!clearSelection) |
2046 setFindEndstateFocusAndSelection(); | 2046 setFindEndstateFocusAndSelection(); |
2047 m_textFinder->stopFindingAndClearSelection(); | 2047 m_textFinder->stopFindingAndClearSelection(); |
2048 } | 2048 } |
2049 } | 2049 } |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2177 return WebSandboxFlags::None; | 2177 return WebSandboxFlags::None; |
2178 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); | 2178 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); |
2179 } | 2179 } |
2180 | 2180 |
2181 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags) | 2181 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags) |
2182 { | 2182 { |
2183 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); | 2183 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); |
2184 } | 2184 } |
2185 | 2185 |
2186 } // namespace blink | 2186 } // namespace blink |
OLD | NEW |