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

Unified Diff: chrome/browser/extensions/api/automation_internal/automation_action_adapter.h

Issue 1365433002: Add setSelection function to automation API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nobrailleautostartintests
Patch Set: Change setDocumentSelection to take named arguments. Created 5 years, 2 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
Index: chrome/browser/extensions/api/automation_internal/automation_action_adapter.h
diff --git a/chrome/browser/extensions/api/automation_internal/automation_action_adapter.h b/chrome/browser/extensions/api/automation_internal/automation_action_adapter.h
index 1bb98bcafb191638fda9614f4a0cc38996e7c2a3..d3a6f1e14eaa82d0c9e2856cd83a5bb90cd1bb7b 100644
--- a/chrome/browser/extensions/api/automation_internal/automation_action_adapter.h
+++ b/chrome/browser/extensions/api/automation_internal/automation_action_adapter.h
@@ -22,9 +22,12 @@ class AutomationActionAdapter {
// shown.
virtual void MakeVisible(int32 id) = 0;
- // Sets selection for a start and end index (usually only relevant on text
- // fields).
- virtual void SetSelection(int32 id, int32 start, int32 end) = 0;
+ // Sets selection for anchor and focus node/offset pairs. Also used to set
+ // selection in text fields.
+ virtual void SetSelection(int32 anchor_id,
+ int32 anchor_offset,
+ int32 focus_id,
+ int32 focus_offset) = 0;
// Shows the context menu resulting from a right click.
virtual void ShowContextMenu(int32 id) = 0;

Powered by Google App Engine
This is Rietveld 408576698