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

Unified Diff: content/browser/renderer_host/text_input_client_mac.h

Issue 166903005: mac: Add support for asynchronous dictionary lookup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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: content/browser/renderer_host/text_input_client_mac.h
diff --git a/content/browser/renderer_host/text_input_client_mac.h b/content/browser/renderer_host/text_input_client_mac.h
index 53318f95cb5bb49efe6403fe3bb62a05cbce2538..310a5763cba0fb9d543a6330347f4d37abdc5e77 100644
--- a/content/browser/renderer_host/text_input_client_mac.h
+++ b/content/browser/renderer_host/text_input_client_mac.h
@@ -37,6 +37,11 @@ class CONTENT_EXPORT TextInputClientMac {
// Returns the singleton instance.
static TextInputClientMac* GetInstance();
+ void GetStringAtPoint(RenderWidgetHost* rwh,
+ gfx::Point point,
+ void (^replyHandler)(NSAttributedString*, NSRect));
+ void GetStringAtPointReply(NSAttributedString*, NSRect);
+
// Each of the three methods mentioned above has an associated pair of methods
// to get data from the renderer. The Get*() methods block the calling thread
// (always the UI thread) with a short timeout after the async message has
@@ -82,6 +87,8 @@ class CONTENT_EXPORT TextInputClientMac {
base::Lock lock_;
base::ConditionVariable condition_;
+ void (^replyHandler_)(NSAttributedString*, NSRect);
Avi (use Gerrit) 2014/02/18 21:42:25 Don't use raw pointers if possible. ScopedBlock?
+
DISALLOW_COPY_AND_ASSIGN(TextInputClientMac);
};

Powered by Google App Engine
This is Rietveld 408576698