Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Side by Side Diff: webkit/glue/plugins/pepper_webplugin_impl.cc

Issue 2934018: Take out temporary code now that WebKit plugin change is rolled. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/plugins/pepper_webplugin_impl.h ('k') | webkit/glue/plugins/webplugin_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « webkit/glue/plugins/pepper_webplugin_impl.h ('k') | webkit/glue/plugins/webplugin_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698