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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 void OnInputMethodChanged() override; | 299 void OnInputMethodChanged() override; |
300 bool ChangeTextDirectionAndLayoutAlignment( | 300 bool ChangeTextDirectionAndLayoutAlignment( |
301 base::i18n::TextDirection direction) override; | 301 base::i18n::TextDirection direction) override; |
302 void ExtendSelectionAndDelete(size_t before, size_t after) override; | 302 void ExtendSelectionAndDelete(size_t before, size_t after) override; |
303 void EnsureCaretInRect(const gfx::Rect& rect) override; | 303 void EnsureCaretInRect(const gfx::Rect& rect) override; |
304 void OnCandidateWindowShown() override; | 304 void OnCandidateWindowShown() override; |
305 void OnCandidateWindowUpdated() override; | 305 void OnCandidateWindowUpdated() override; |
306 void OnCandidateWindowHidden() override; | 306 void OnCandidateWindowHidden() override; |
307 bool IsEditingCommandEnabled(int command_id) override; | 307 bool IsEditingCommandEnabled(int command_id) override; |
308 void ExecuteEditingCommand(int command_id) override; | 308 void ExecuteEditingCommand(int command_id) override; |
| 309 void OnKeyboardBoundsUnchanged() override; |
309 | 310 |
310 protected: | 311 protected: |
311 // Returns the TextfieldModel's text/cursor/selection rendering model. | 312 // Returns the TextfieldModel's text/cursor/selection rendering model. |
312 gfx::RenderText* GetRenderText() const; | 313 gfx::RenderText* GetRenderText() const; |
313 | 314 |
314 gfx::Point last_click_location() const { return last_click_location_; } | 315 gfx::Point last_click_location() const { return last_click_location_; } |
315 | 316 |
316 // Get the text from the selection clipboard. | 317 // Get the text from the selection clipboard. |
317 virtual base::string16 GetSelectionClipboardText() const; | 318 virtual base::string16 GetSelectionClipboardText() const; |
318 | 319 |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 | 472 |
472 // Used to bind callback functions to this object. | 473 // Used to bind callback functions to this object. |
473 base::WeakPtrFactory<Textfield> weak_ptr_factory_; | 474 base::WeakPtrFactory<Textfield> weak_ptr_factory_; |
474 | 475 |
475 DISALLOW_COPY_AND_ASSIGN(Textfield); | 476 DISALLOW_COPY_AND_ASSIGN(Textfield); |
476 }; | 477 }; |
477 | 478 |
478 } // namespace views | 479 } // namespace views |
479 | 480 |
480 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 481 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
OLD | NEW |