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

Side by Side Diff: webkit/glue/plugins/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/webplugin_impl.h ('k') | no next file » | 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/webplugin_impl.h" 5 #include "webkit/glue/plugins/webplugin_impl.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 return WebString(); 442 return WebString();
443 443
444 return delegate_->GetSelectionAsMarkup(); 444 return delegate_->GetSelectionAsMarkup();
445 } 445 }
446 446
447 void WebPluginImpl::setZoomFactor(float scale, bool text_only) { 447 void WebPluginImpl::setZoomFactor(float scale, bool text_only) {
448 if (delegate_) 448 if (delegate_)
449 delegate_->SetZoomFactor(scale, text_only); 449 delegate_->SetZoomFactor(scale, text_only);
450 } 450 }
451 451
452 #if defined(WEBPLUGIN_FIND_HAS_RETURN_TYPE)
453 bool WebPluginImpl::startFind(const WebKit::WebString& search_text, 452 bool WebPluginImpl::startFind(const WebKit::WebString& search_text,
454 bool case_sensitive, 453 bool case_sensitive,
455 int identifier) { 454 int identifier) {
456 if (!delegate_) 455 if (!delegate_)
457 return false; 456 return false;
458 return delegate_->StartFind(search_text, case_sensitive, identifier); 457 return delegate_->StartFind(search_text, case_sensitive, identifier);
459 } 458 }
460 #else
461 bool WebPluginImpl::supportsFind() {
462 return true;
463 }
464
465 void WebPluginImpl::startFind(const WebString& search_text,
466 bool case_sensitive,
467 int identifier) {
468 if (delegate_)
469 delegate_->StartFind(search_text, case_sensitive, identifier);
470 }
471 #endif
472 459
473 void WebPluginImpl::selectFindResult(bool forward) { 460 void WebPluginImpl::selectFindResult(bool forward) {
474 if (delegate_) 461 if (delegate_)
475 delegate_->SelectFindResult(forward); 462 delegate_->SelectFindResult(forward);
476 } 463 }
477 464
478 void WebPluginImpl::stopFind() { 465 void WebPluginImpl::stopFind() {
479 if (delegate_) 466 if (delegate_)
480 delegate_->StopFind(); 467 delegate_->StopFind();
481 } 468 }
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
1309 WebDevToolsAgent* WebPluginImpl::GetDevToolsAgent() { 1296 WebDevToolsAgent* WebPluginImpl::GetDevToolsAgent() {
1310 if (!webframe_) 1297 if (!webframe_)
1311 return NULL; 1298 return NULL;
1312 WebView* view = webframe_->view(); 1299 WebView* view = webframe_->view();
1313 if (!view) 1300 if (!view)
1314 return NULL; 1301 return NULL;
1315 return view->devToolsAgent(); 1302 return view->devToolsAgent();
1316 } 1303 }
1317 1304
1318 } // namespace webkit_glue 1305 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/plugins/webplugin_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698