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

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

Issue 302293003: MacViews: Extend TextInputClient protocol with support for editing commands. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, fixes for ben Created 6 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 | Annotate | Revision Log
« 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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 virtual bool GetTextFromRange(const gfx::Range& range, 288 virtual bool GetTextFromRange(const gfx::Range& range,
289 base::string16* text) const OVERRIDE; 289 base::string16* text) const OVERRIDE;
290 virtual void OnInputMethodChanged() OVERRIDE; 290 virtual void OnInputMethodChanged() OVERRIDE;
291 virtual bool ChangeTextDirectionAndLayoutAlignment( 291 virtual bool ChangeTextDirectionAndLayoutAlignment(
292 base::i18n::TextDirection direction) OVERRIDE; 292 base::i18n::TextDirection direction) OVERRIDE;
293 virtual void ExtendSelectionAndDelete(size_t before, size_t after) OVERRIDE; 293 virtual void ExtendSelectionAndDelete(size_t before, size_t after) OVERRIDE;
294 virtual void EnsureCaretInRect(const gfx::Rect& rect) OVERRIDE; 294 virtual void EnsureCaretInRect(const gfx::Rect& rect) OVERRIDE;
295 virtual void OnCandidateWindowShown() OVERRIDE; 295 virtual void OnCandidateWindowShown() OVERRIDE;
296 virtual void OnCandidateWindowUpdated() OVERRIDE; 296 virtual void OnCandidateWindowUpdated() OVERRIDE;
297 virtual void OnCandidateWindowHidden() OVERRIDE; 297 virtual void OnCandidateWindowHidden() OVERRIDE;
298 virtual bool IsEditingCommandEnabled(int command_id) OVERRIDE;
299 virtual void ExecuteEditingCommand(int command_id) OVERRIDE;
298 300
299 protected: 301 protected:
300 // Returns the TextfieldModel's text/cursor/selection rendering model. 302 // Returns the TextfieldModel's text/cursor/selection rendering model.
301 gfx::RenderText* GetRenderText() const; 303 gfx::RenderText* GetRenderText() const;
302 304
303 gfx::Point last_click_location() const { return last_click_location_; } 305 gfx::Point last_click_location() const { return last_click_location_; }
304 306
305 // Get the text from the selection clipboard. 307 // Get the text from the selection clipboard.
306 virtual base::string16 GetSelectionClipboardText() const; 308 virtual base::string16 GetSelectionClipboardText() const;
307 309
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 453
452 // Used to bind callback functions to this object. 454 // Used to bind callback functions to this object.
453 base::WeakPtrFactory<Textfield> weak_ptr_factory_; 455 base::WeakPtrFactory<Textfield> weak_ptr_factory_;
454 456
455 DISALLOW_COPY_AND_ASSIGN(Textfield); 457 DISALLOW_COPY_AND_ASSIGN(Textfield);
456 }; 458 };
457 459
458 } // namespace views 460 } // namespace views
459 461
460 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 462 #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