blob: 59af06562e89abe2b452a5e5dd7d3d91d403219c [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/** @enum {number} */
blink.mojom.StopFindAction = {};
blink.mojom.StopFindAction.kStopFindActionClearSelection;
blink.mojom.StopFindAction.kStopFindActionKeepSelection;
blink.mojom.StopFindAction.kStopFindActionActivateSelection;
/** @enum {number} */
blink.mojom.FindMatchUpdateType = {};
blink.mojom.FindMatchUpdateType.kFinalUpdate;
blink.mojom.FindMatchUpdateType.kMoreUpdatesComing;
goog.provide('blink.mojom.FindInPage');
goog.provide('blink.mojom.FindInPageImpl');
goog.provide('blink.mojom.FindInPagePtr');
/**
* @const
* @type { !mojo.Interface };
*/
blink.mojom.FindInPage;
/** @interface */
blink.mojom.FindInPageImpl = class {
/**
* @param { !number } requestId
* @param { !string } searchText
* @param { !blink.mojom.FindOptions } options
*/
find(requestId, searchText, options) {}
/**
* @param { !blink.mojom.StopFindAction } action
*/
stopFinding(action) {}
/**
*/
clearActiveFindMatch() {}
/**
* @param { !gfx.mojom.PointF } point
* @return {Promise}
*/
getNearestFindResult(point) {}
/**
* @param { !number } requestId
* @param { !gfx.mojom.PointF } point
*/
activateNearestFindResult(requestId, point) {}
/**
* @param { !blink.mojom.FindInPageClientPtr } client
*/
setClient(client) {}
/**
* @param { !number } currentVersion
* @return {Promise}
*/
findMatchRects(currentVersion) {}
};
/**
* @implements { mojo.InterfacePtr }
* @implements { blink.mojom.FindInPageImpl }
*/
blink.mojom.FindInPagePtr = class {
/**
* @param { !number } requestId
* @param { !string } searchText
* @param { !blink.mojom.FindOptions } options
*/
find(requestId, searchText, options) {}
/**
* @param { !blink.mojom.StopFindAction } action
*/
stopFinding(action) {}
/**
*/
clearActiveFindMatch() {}
/**
* @param { !gfx.mojom.PointF } point
* @return {Promise}
*/
getNearestFindResult(point) {}
/**
* @param { !number } requestId
* @param { !gfx.mojom.PointF } point
*/
activateNearestFindResult(requestId, point) {}
/**
* @param { !blink.mojom.FindInPageClientPtr } client
*/
setClient(client) {}
/**
* @param { !number } currentVersion
* @return {Promise}
*/
findMatchRects(currentVersion) {}
};
goog.provide('blink.mojom.FindInPageClient');
goog.provide('blink.mojom.FindInPageClientImpl');
goog.provide('blink.mojom.FindInPageClientPtr');
/**
* @const
* @type { !mojo.Interface };
*/
blink.mojom.FindInPageClient;
/** @interface */
blink.mojom.FindInPageClientImpl = class {
/**
* @param { !number } requestId
* @param { !number } numberOfMatches
* @param { !blink.mojom.FindMatchUpdateType } updateType
*/
setNumberOfMatches(requestId, numberOfMatches, updateType) {}
/**
* @param { !number } requestId
* @param { !gfx.mojom.Rect } activeMatchRect
* @param { !number } activeMatchOrdinal
* @param { !blink.mojom.FindMatchUpdateType } updateType
*/
setActiveMatch(requestId, activeMatchRect, activeMatchOrdinal, updateType) {}
};
/**
* @implements { mojo.InterfacePtr }
* @implements { blink.mojom.FindInPageClientImpl }
*/
blink.mojom.FindInPageClientPtr = class {
/**
* @param { !number } requestId
* @param { !number } numberOfMatches
* @param { !blink.mojom.FindMatchUpdateType } updateType
*/
setNumberOfMatches(requestId, numberOfMatches, updateType) {}
/**
* @param { !number } requestId
* @param { !gfx.mojom.Rect } activeMatchRect
* @param { !number } activeMatchOrdinal
* @param { !blink.mojom.FindMatchUpdateType } updateType
*/
setActiveMatch(requestId, activeMatchRect, activeMatchOrdinal, updateType) {}
};
goog.provide('blink.mojom.FindOptions');
blink.mojom.FindOptions = class {
constructor() {
/** @type { !boolean } */
this.forward;
/** @type { !boolean } */
this.matchCase;
/** @type { !boolean } */
this.findNext;
/** @type { !boolean } */
this.force;
/** @type { !boolean } */
this.runSynchronouslyForTesting;
}
};
goog.provide('blink.mojom.FindInPage_Find_Params');
blink.mojom.FindInPage_Find_Params = class {
constructor() {
/** @type { !number } */
this.requestId;
/** @type { !string } */
this.searchText;
/** @type { !blink.mojom.FindOptions } */
this.options;
}
};
goog.provide('blink.mojom.FindInPage_StopFinding_Params');
blink.mojom.FindInPage_StopFinding_Params = class {
constructor() {
/** @type { !blink.mojom.StopFindAction } */
this.action;
}
};
goog.provide('blink.mojom.FindInPage_ClearActiveFindMatch_Params');
blink.mojom.FindInPage_ClearActiveFindMatch_Params = class {
constructor() {
}
};
goog.provide('blink.mojom.FindInPage_GetNearestFindResult_Params');
blink.mojom.FindInPage_GetNearestFindResult_Params = class {
constructor() {
/** @type { !gfx.mojom.PointF } */
this.point;
}
};
goog.provide('blink.mojom.FindInPage_GetNearestFindResult_ResponseParams');
blink.mojom.FindInPage_GetNearestFindResult_ResponseParams = class {
constructor() {
/** @type { !number } */
this.distance;
}
};
goog.provide('blink.mojom.FindInPage_ActivateNearestFindResult_Params');
blink.mojom.FindInPage_ActivateNearestFindResult_Params = class {
constructor() {
/** @type { !number } */
this.requestId;
/** @type { !gfx.mojom.PointF } */
this.point;
}
};
goog.provide('blink.mojom.FindInPage_SetClient_Params');
blink.mojom.FindInPage_SetClient_Params = class {
constructor() {
/** @type { !blink.mojom.FindInPageClientPtr } */
this.client;
}
};
goog.provide('blink.mojom.FindInPage_FindMatchRects_Params');
blink.mojom.FindInPage_FindMatchRects_Params = class {
constructor() {
/** @type { !number } */
this.currentVersion;
}
};
goog.provide('blink.mojom.FindInPage_FindMatchRects_ResponseParams');
blink.mojom.FindInPage_FindMatchRects_ResponseParams = class {
constructor() {
/** @type { !number } */
this.version;
/** @type { !Array<gfx.mojom.RectF> } */
this.rects;
/** @type { !gfx.mojom.RectF } */
this.activeMatchRect;
}
};
goog.provide('blink.mojom.FindInPageClient_SetNumberOfMatches_Params');
blink.mojom.FindInPageClient_SetNumberOfMatches_Params = class {
constructor() {
/** @type { !number } */
this.requestId;
/** @type { !number } */
this.numberOfMatches;
/** @type { !blink.mojom.FindMatchUpdateType } */
this.updateType;
}
};
goog.provide('blink.mojom.FindInPageClient_SetActiveMatch_Params');
blink.mojom.FindInPageClient_SetActiveMatch_Params = class {
constructor() {
/** @type { !number } */
this.requestId;
/** @type { !number } */
this.activeMatchOrdinal;
/** @type { !gfx.mojom.Rect } */
this.activeMatchRect;
/** @type { !blink.mojom.FindMatchUpdateType } */
this.updateType;
}
};