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

Unified Diff: chrome/renderer/resources/extensions/web_view_experimental.js

Issue 414803003: <webview>: Move Find API to Stable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/resources/extensions/web_view_events.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/extensions/web_view_experimental.js
diff --git a/chrome/renderer/resources/extensions/web_view_experimental.js b/chrome/renderer/resources/extensions/web_view_experimental.js
index d8628e0966e524655e08b8ea481f9be0d803dfea..34d536d10d7b244fffb432832bfcd16e87fdee9a 100644
--- a/chrome/renderer/resources/extensions/web_view_experimental.js
+++ b/chrome/renderer/resources/extensions/web_view_experimental.js
@@ -35,17 +35,6 @@ var utils = require('utils');
// is prevented, then its dispatch function will return false in its event
// handler. The event must have a custom handler for this to be meaningful.
var WEB_VIEW_EXPERIMENTAL_EVENTS = {
- 'findupdate': {
- evt: CreateEvent('webViewInternal.onFindReply'),
- fields: [
- 'searchText',
- 'numberOfMatches',
- 'activeMatchOrdinal',
- 'selectionRect',
- 'canceled',
- 'finalUpdate'
- ]
- },
'zoomchange': {
evt: CreateEvent('webViewInternal.onZoomChange'),
fields: ['oldZoomFactor', 'newZoomFactor']
@@ -207,22 +196,6 @@ WebViewInternal.prototype.captureVisibleRegion = function(spec, callback) {
WebView.captureVisibleRegion(this.instanceId, spec, callback);
};
-/** @private */
-WebViewInternal.prototype.find = function(search_text, options, callback) {
- if (!this.instanceId) {
- return;
- }
- WebView.find(this.instanceId, search_text, options, callback);
-};
-
-/** @private */
-WebViewInternal.prototype.stopFinding = function(action) {
- if (!this.instanceId) {
- return;
- }
- WebView.stopFinding(this.instanceId, action);
-};
-
WebViewInternal.maybeRegisterExperimentalAPIs = function(proto) {
proto.setZoom = function(zoomFactor, callback) {
privates(this).internal.setZoom(zoomFactor, callback);
@@ -235,14 +208,6 @@ WebViewInternal.maybeRegisterExperimentalAPIs = function(proto) {
proto.captureVisibleRegion = function(spec, callback) {
privates(this).internal.captureVisibleRegion(spec, callback);
};
-
- proto.find = function(search_text, options, callback) {
- privates(this).internal.find(search_text, options, callback);
- };
-
- proto.stopFinding = function(action) {
- privates(this).internal.stopFinding(action);
- };
};
/** @private */
« no previous file with comments | « chrome/renderer/resources/extensions/web_view_events.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698