| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_ | 5 #ifndef VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_ |
| 6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_ | 6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <atlbase.h> | 9 #include <atlbase.h> |
| 10 #include <atlapp.h> | 10 #include <atlapp.h> |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 virtual size_t GetCursorPosition() const OVERRIDE; | 83 virtual size_t GetCursorPosition() const OVERRIDE; |
| 84 virtual bool HandleKeyPressed(const views::KeyEvent& event) OVERRIDE; | 84 virtual bool HandleKeyPressed(const views::KeyEvent& event) OVERRIDE; |
| 85 virtual bool HandleKeyReleased(const views::KeyEvent& event) OVERRIDE; | 85 virtual bool HandleKeyReleased(const views::KeyEvent& event) OVERRIDE; |
| 86 virtual void HandleFocus() OVERRIDE; | 86 virtual void HandleFocus() OVERRIDE; |
| 87 virtual void HandleBlur() OVERRIDE; | 87 virtual void HandleBlur() OVERRIDE; |
| 88 virtual TextInputClient* GetTextInputClient() OVERRIDE; | 88 virtual TextInputClient* GetTextInputClient() OVERRIDE; |
| 89 virtual TextStyle* CreateTextStyle() OVERRIDE; | 89 virtual TextStyle* CreateTextStyle() OVERRIDE; |
| 90 virtual void ApplyTextStyle(const TextStyle* style, | 90 virtual void ApplyTextStyle(const TextStyle* style, |
| 91 const ui::Range& range) OVERRIDE; | 91 const ui::Range& range) OVERRIDE; |
| 92 virtual void ClearAllTextStyles() OVERRIDE; | 92 virtual void ClearAllTextStyles() OVERRIDE; |
| 93 virtual void ClearEditHistory() OVERRIDE; |
| 93 | 94 |
| 94 // Overridden from ui::SimpleMenuModel::Delegate: | 95 // Overridden from ui::SimpleMenuModel::Delegate: |
| 95 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; | 96 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; |
| 96 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; | 97 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; |
| 97 virtual bool GetAcceleratorForCommandId( | 98 virtual bool GetAcceleratorForCommandId( |
| 98 int command_id, | 99 int command_id, |
| 99 ui::Accelerator* accelerator) OVERRIDE; | 100 ui::Accelerator* accelerator) OVERRIDE; |
| 100 virtual void ExecuteCommand(int command_id) OVERRIDE; | 101 virtual void ExecuteCommand(int command_id) OVERRIDE; |
| 101 | 102 |
| 102 // Update accessibility information. | 103 // Update accessibility information. |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 | 280 |
| 280 // The accessibility state of this object. | 281 // The accessibility state of this object. |
| 281 int accessibility_state_; | 282 int accessibility_state_; |
| 282 | 283 |
| 283 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldWin); | 284 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldWin); |
| 284 }; | 285 }; |
| 285 | 286 |
| 286 } // namespace views | 287 } // namespace views |
| 287 | 288 |
| 288 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_ | 289 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_ |
| OLD | NEW |