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

Side by Side Diff: ui/views/lookup_word_client.h

Issue 2348143003: MacViews: Implement Force Touch/Mac dictionary lookup for Textfields. (Closed)
Patch Set: Views export, reduntant forward decl. Created 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_VIEWS_LOOKUP_WORD_CLIENT_H_
6 #define UI_VIEWS_LOOKUP_WORD_CLIENT_H_
7
8 #include "ui/views/views_export.h"
9
10 namespace gfx {
11 struct DecoratedText;
12 class Point;
13 } // namespace gfx
14
15 namespace views {
16
17 // An interface implemented by a view which supports word lookups.
18 class VIEWS_EXPORT LookupWordClient {
sky 2016/10/04 17:26:47 WordLookupClient?
karandeepb 2016/10/05 04:36:25 Done.
19 public:
20 // Retreives the word displayed at the given |point| along with its styling
msw 2016/10/05 00:24:49 nit: Retrieves
karandeepb 2016/10/05 04:31:40 Done.
21 // information. |point| is in the coordinate system of the view. If no word is
22 // displayed at the point, returns a nearby word. |baseline_point| should
23 // correspond to the left baseline point of the leftmost glyph of the |word|
msw 2016/10/05 00:24:49 nit: s/the left baseline/the baseline/
karandeepb 2016/10/05 04:31:40 Done.
24 // in the view's coordinates. Returns false, if no word can be retrieved.
25 virtual bool GetDecoratedWordAtPoint(const gfx::Point& point,
26 gfx::DecoratedText* decorated_word,
27 gfx::Point* baseline_point) = 0;
28
29 protected:
30 ~LookupWordClient() {}
31 };
32
33 } // namespace views
34
35 #endif // UI_VIEWS_LOOKUP_WORD_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698