| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "webkit/glue/plugins/pepper_webplugin_impl.h" | 5 #include "webkit/glue/plugins/pepper_webplugin_impl.h" |
| 6 | 6 |
| 7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "third_party/ppapi/c/pp_var.h" | 9 #include "third_party/ppapi/c/pp_var.h" |
| 10 #include "third_party/WebKit/WebKit/chromium/public/WebPluginParams.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebPluginParams.h" |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 } | 154 } |
| 155 | 155 |
| 156 WebKit::WebString WebPluginImpl::selectionAsMarkup() const { | 156 WebKit::WebString WebPluginImpl::selectionAsMarkup() const { |
| 157 return instance_->GetSelectedText(true); | 157 return instance_->GetSelectedText(true); |
| 158 } | 158 } |
| 159 | 159 |
| 160 void WebPluginImpl::setZoomFactor(float scale, bool text_only) { | 160 void WebPluginImpl::setZoomFactor(float scale, bool text_only) { |
| 161 instance_->Zoom(scale, text_only); | 161 instance_->Zoom(scale, text_only); |
| 162 } | 162 } |
| 163 | 163 |
| 164 #if defined(WEBPLUGIN_FIND_HAS_RETURN_TYPE) | |
| 165 bool WebPluginImpl::startFind(const WebKit::WebString& search_text, | 164 bool WebPluginImpl::startFind(const WebKit::WebString& search_text, |
| 166 bool case_sensitive, | 165 bool case_sensitive, |
| 167 int identifier) { | 166 int identifier) { |
| 168 return instance_->StartFind(search_text, case_sensitive, identifier); | 167 return instance_->StartFind(search_text, case_sensitive, identifier); |
| 169 } | 168 } |
| 170 #else | |
| 171 bool WebPluginImpl::supportsFind() { | |
| 172 return true; | |
| 173 } | |
| 174 | |
| 175 void WebPluginImpl::startFind(const WebString& search_text, | |
| 176 bool case_sensitive, | |
| 177 int identifier) { | |
| 178 instance_->StartFind(search_text, case_sensitive, identifier); | |
| 179 } | |
| 180 #endif | |
| 181 | 169 |
| 182 void WebPluginImpl::selectFindResult(bool forward) { | 170 void WebPluginImpl::selectFindResult(bool forward) { |
| 183 instance_->SelectFindResult(forward); | 171 instance_->SelectFindResult(forward); |
| 184 } | 172 } |
| 185 | 173 |
| 186 void WebPluginImpl::stopFind() { | 174 void WebPluginImpl::stopFind() { |
| 187 instance_->StopFind(); | 175 instance_->StopFind(); |
| 188 } | 176 } |
| 189 | 177 |
| 190 } // namespace pepper | 178 } // namespace pepper |
| OLD | NEW |