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

Unified Diff: ui/base/ime/chromeos/ime_bridge.h

Issue 739323002: Requests for tabs permission for VirtualKeyboard. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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: ui/base/ime/chromeos/ime_bridge.h
diff --git a/ui/base/ime/chromeos/ime_bridge.h b/ui/base/ime/chromeos/ime_bridge.h
index 09dd33f31a21b13a1565235960a852eebfd67b27..aa4a235653ec7be649bc173dfd8ddb3b64b2e9a9 100644
--- a/ui/base/ime/chromeos/ime_bridge.h
+++ b/ui/base/ime/chromeos/ime_bridge.h
@@ -99,9 +99,12 @@ class UI_BASE_IME_EXPORT IMEEngineHandlerInterface {
// Called when a new surrounding text is set. The |text| is surrounding text
// and |cursor_pos| is 0 based index of cursor position in |text|. If there is
// selection range, |anchor_pos| represents opposite index from |cursor_pos|.
- // Otherwise |anchor_pos| is equal to |cursor_pos|.
- virtual void SetSurroundingText(const std::string& text, uint32 cursor_pos,
- uint32 anchor_pos) = 0;
+ // Otherwise |anchor_pos| is equal to |cursor_pos|. If not all surrounding
+ // text is given |offset_pos| indicates the starting offset of |text|.
+ virtual void SetSurroundingText(const std::string& text,
+ uint32 cursor_pos,
+ uint32 anchor_pos,
+ uint32 offset_pos) = 0;
// Called when the composition bounds changed.
virtual void SetCompositionBounds(const std::vector<gfx::Rect>& bounds) = 0;
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | ui/base/ime/chromeos/mock_ime_engine_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698