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

Side by Side Diff: ui/views/controls/textfield/textfield.h

Issue 2348143003: MacViews: Implement Force Touch/Mac dictionary lookup for Textfields. (Closed)
Patch Set: --- Created 4 years, 3 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
6 #define UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 6 #define UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 void SetAccessibleName(const base::string16& name); 200 void SetAccessibleName(const base::string16& name);
201 201
202 // Returns whether there is a drag operation originating from the textfield. 202 // Returns whether there is a drag operation originating from the textfield.
203 bool HasTextBeingDragged(); 203 bool HasTextBeingDragged();
204 204
205 // View overrides: 205 // View overrides:
206 gfx::Insets GetInsets() const override; 206 gfx::Insets GetInsets() const override;
207 int GetBaseline() const override; 207 int GetBaseline() const override;
208 gfx::Size GetPreferredSize() const override; 208 gfx::Size GetPreferredSize() const override;
209 const char* GetClassName() const override; 209 const char* GetClassName() const override;
210 bool GetWordAtPoint(const gfx::Point& point,
tapted 2016/09/21 04:06:56 maybe GetStyledWordAtPoint
karandeepb 2016/09/22 08:17:39 Changed to GetDecoratedWordAtPoint.
211 gfx::NativeStyledString word,
212 gfx::Point* baseline_point) override;
210 gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override; 213 gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override;
211 bool OnMousePressed(const ui::MouseEvent& event) override; 214 bool OnMousePressed(const ui::MouseEvent& event) override;
212 bool OnMouseDragged(const ui::MouseEvent& event) override; 215 bool OnMouseDragged(const ui::MouseEvent& event) override;
213 void OnMouseReleased(const ui::MouseEvent& event) override; 216 void OnMouseReleased(const ui::MouseEvent& event) override;
214 void OnGestureEvent(ui::GestureEvent* event) override; 217 void OnGestureEvent(ui::GestureEvent* event) override;
215 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; 218 bool AcceleratorPressed(const ui::Accelerator& accelerator) override;
216 bool CanHandleAccelerators() const override; 219 bool CanHandleAccelerators() const override;
217 void AboutToRequestFocusFromTabTraversal(bool reverse) override; 220 void AboutToRequestFocusFromTabTraversal(bool reverse) override;
218 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) override; 221 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) override;
219 bool GetDropFormats( 222 bool GetDropFormats(
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 491
489 // Used to bind callback functions to this object. 492 // Used to bind callback functions to this object.
490 base::WeakPtrFactory<Textfield> weak_ptr_factory_; 493 base::WeakPtrFactory<Textfield> weak_ptr_factory_;
491 494
492 DISALLOW_COPY_AND_ASSIGN(Textfield); 495 DISALLOW_COPY_AND_ASSIGN(Textfield);
493 }; 496 };
494 497
495 } // namespace views 498 } // namespace views
496 499
497 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 500 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698