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

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

Issue 1163603004: Remove candidate show/hide/update related code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 6 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
« 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 <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 bool GetSelectionRange(gfx::Range* range) const override; 299 bool GetSelectionRange(gfx::Range* range) const override;
300 bool SetSelectionRange(const gfx::Range& range) override; 300 bool SetSelectionRange(const gfx::Range& range) override;
301 bool DeleteRange(const gfx::Range& range) override; 301 bool DeleteRange(const gfx::Range& range) override;
302 bool GetTextFromRange(const gfx::Range& range, 302 bool GetTextFromRange(const gfx::Range& range,
303 base::string16* text) const override; 303 base::string16* text) const override;
304 void OnInputMethodChanged() override; 304 void OnInputMethodChanged() override;
305 bool ChangeTextDirectionAndLayoutAlignment( 305 bool ChangeTextDirectionAndLayoutAlignment(
306 base::i18n::TextDirection direction) override; 306 base::i18n::TextDirection direction) override;
307 void ExtendSelectionAndDelete(size_t before, size_t after) override; 307 void ExtendSelectionAndDelete(size_t before, size_t after) override;
308 void EnsureCaretInRect(const gfx::Rect& rect) override; 308 void EnsureCaretInRect(const gfx::Rect& rect) override;
309 void OnCandidateWindowShown() override;
310 void OnCandidateWindowUpdated() override;
311 void OnCandidateWindowHidden() override;
312 bool IsEditCommandEnabled(int command_id) override; 309 bool IsEditCommandEnabled(int command_id) override;
313 void SetEditCommandForNextKeyEvent(int command_id) override; 310 void SetEditCommandForNextKeyEvent(int command_id) override;
314 311
315 protected: 312 protected:
316 // Inserts or appends a character in response to an IME operation. 313 // Inserts or appends a character in response to an IME operation.
317 virtual void DoInsertChar(base::char16 ch); 314 virtual void DoInsertChar(base::char16 ch);
318 315
319 // Returns the TextfieldModel's text/cursor/selection rendering model. 316 // Returns the TextfieldModel's text/cursor/selection rendering model.
320 gfx::RenderText* GetRenderText() const; 317 gfx::RenderText* GetRenderText() const;
321 318
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 485
489 // Used to bind callback functions to this object. 486 // Used to bind callback functions to this object.
490 base::WeakPtrFactory<Textfield> weak_ptr_factory_; 487 base::WeakPtrFactory<Textfield> weak_ptr_factory_;
491 488
492 DISALLOW_COPY_AND_ASSIGN(Textfield); 489 DISALLOW_COPY_AND_ASSIGN(Textfield);
493 }; 490 };
494 491
495 } // namespace views 492 } // namespace views
496 493
497 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 494 #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