OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |