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

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

Issue 2554513002: Change |EnsureCaretInRect| to |EnsureCaretNotInRect|. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « ui/views/controls/prefix_selector.cc ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 bool GetCompositionTextRange(gfx::Range* range) const override; 313 bool GetCompositionTextRange(gfx::Range* range) const override;
314 bool GetSelectionRange(gfx::Range* range) const override; 314 bool GetSelectionRange(gfx::Range* range) const override;
315 bool SetSelectionRange(const gfx::Range& range) override; 315 bool SetSelectionRange(const gfx::Range& range) override;
316 bool DeleteRange(const gfx::Range& range) override; 316 bool DeleteRange(const gfx::Range& range) override;
317 bool GetTextFromRange(const gfx::Range& range, 317 bool GetTextFromRange(const gfx::Range& range,
318 base::string16* text) const override; 318 base::string16* text) const override;
319 void OnInputMethodChanged() override; 319 void OnInputMethodChanged() override;
320 bool ChangeTextDirectionAndLayoutAlignment( 320 bool ChangeTextDirectionAndLayoutAlignment(
321 base::i18n::TextDirection direction) override; 321 base::i18n::TextDirection direction) override;
322 void ExtendSelectionAndDelete(size_t before, size_t after) override; 322 void ExtendSelectionAndDelete(size_t before, size_t after) override;
323 void EnsureCaretInRect(const gfx::Rect& rect) override; 323 void EnsureCaretNotInRect(const gfx::Rect& rect) override;
324 bool IsTextEditCommandEnabled(ui::TextEditCommand command) const override; 324 bool IsTextEditCommandEnabled(ui::TextEditCommand command) const override;
325 void SetTextEditCommandForNextKeyEvent(ui::TextEditCommand command) override; 325 void SetTextEditCommandForNextKeyEvent(ui::TextEditCommand command) override;
326 326
327 protected: 327 protected:
328 // Inserts or appends a character in response to an IME operation. 328 // Inserts or appends a character in response to an IME operation.
329 virtual void DoInsertChar(base::char16 ch); 329 virtual void DoInsertChar(base::char16 ch);
330 330
331 // Returns the TextfieldModel's text/cursor/selection rendering model. 331 // Returns the TextfieldModel's text/cursor/selection rendering model.
332 gfx::RenderText* GetRenderText() const; 332 gfx::RenderText* GetRenderText() const;
333 333
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 529
530 // Used to bind callback functions to this object. 530 // Used to bind callback functions to this object.
531 base::WeakPtrFactory<Textfield> weak_ptr_factory_; 531 base::WeakPtrFactory<Textfield> weak_ptr_factory_;
532 532
533 DISALLOW_COPY_AND_ASSIGN(Textfield); 533 DISALLOW_COPY_AND_ASSIGN(Textfield);
534 }; 534 };
535 535
536 } // namespace views 536 } // namespace views
537 537
538 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 538 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
OLDNEW
« no previous file with comments | « ui/views/controls/prefix_selector.cc ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698