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

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

Issue 2024033006: Make ui::TextInputClient::IsEditCommandEnabled const. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...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 bool IsEditCommandEnabled(int command_id) override; 309 bool IsEditCommandEnabled(int command_id) const override;
310 void SetEditCommandForNextKeyEvent(int command_id) override; 310 void SetEditCommandForNextKeyEvent(int command_id) override;
311 311
312 protected: 312 protected:
313 // Inserts or appends a character in response to an IME operation. 313 // Inserts or appends a character in response to an IME operation.
314 virtual void DoInsertChar(base::char16 ch); 314 virtual void DoInsertChar(base::char16 ch);
315 315
316 // Returns the TextfieldModel's text/cursor/selection rendering model. 316 // Returns the TextfieldModel's text/cursor/selection rendering model.
317 gfx::RenderText* GetRenderText() const; 317 gfx::RenderText* GetRenderText() const;
318 318
319 gfx::Point last_click_location() const { return last_click_location_; } 319 gfx::Point last_click_location() const { return last_click_location_; }
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 484
485 // Used to bind callback functions to this object. 485 // Used to bind callback functions to this object.
486 base::WeakPtrFactory<Textfield> weak_ptr_factory_; 486 base::WeakPtrFactory<Textfield> weak_ptr_factory_;
487 487
488 DISALLOW_COPY_AND_ASSIGN(Textfield); 488 DISALLOW_COPY_AND_ASSIGN(Textfield);
489 }; 489 };
490 490
491 } // namespace views 491 } // namespace views
492 492
493 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 493 #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