| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 virtual bool IsIMEComposing() const OVERRIDE; | 85 virtual bool IsIMEComposing() const OVERRIDE; |
| 86 virtual void GetSelectedRange(ui::Range* range) const OVERRIDE; | 86 virtual void GetSelectedRange(ui::Range* range) const OVERRIDE; |
| 87 virtual void SelectRange(const ui::Range& range) OVERRIDE; | 87 virtual void SelectRange(const ui::Range& range) OVERRIDE; |
| 88 virtual void GetSelectionModel(gfx::SelectionModel* sel) const OVERRIDE; | 88 virtual void GetSelectionModel(gfx::SelectionModel* sel) const OVERRIDE; |
| 89 virtual void SelectSelectionModel(const gfx::SelectionModel& sel) OVERRIDE; | 89 virtual void SelectSelectionModel(const gfx::SelectionModel& sel) OVERRIDE; |
| 90 virtual size_t GetCursorPosition() const OVERRIDE; | 90 virtual size_t GetCursorPosition() const OVERRIDE; |
| 91 virtual bool HandleKeyPressed(const views::KeyEvent& event) OVERRIDE; | 91 virtual bool HandleKeyPressed(const views::KeyEvent& event) OVERRIDE; |
| 92 virtual bool HandleKeyReleased(const views::KeyEvent& event) OVERRIDE; | 92 virtual bool HandleKeyReleased(const views::KeyEvent& event) OVERRIDE; |
| 93 virtual void HandleFocus() OVERRIDE; | 93 virtual void HandleFocus() OVERRIDE; |
| 94 virtual void HandleBlur() OVERRIDE; | 94 virtual void HandleBlur() OVERRIDE; |
| 95 virtual TextInputClient* GetTextInputClient() OVERRIDE; | 95 virtual ui::TextInputClient* GetTextInputClient() OVERRIDE; |
| 96 virtual void ApplyStyleRange(const gfx::StyleRange& style) OVERRIDE; | 96 virtual void ApplyStyleRange(const gfx::StyleRange& style) OVERRIDE; |
| 97 virtual void ApplyDefaultStyle() OVERRIDE; | 97 virtual void ApplyDefaultStyle() OVERRIDE; |
| 98 virtual void ClearEditHistory() OVERRIDE; | 98 virtual void ClearEditHistory() OVERRIDE; |
| 99 | 99 |
| 100 // Overridden from ui::SimpleMenuModel::Delegate: | 100 // Overridden from ui::SimpleMenuModel::Delegate: |
| 101 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; | 101 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; |
| 102 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; | 102 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; |
| 103 virtual bool GetAcceleratorForCommandId( | 103 virtual bool GetAcceleratorForCommandId( |
| 104 int command_id, | 104 int command_id, |
| 105 ui::Accelerator* accelerator) OVERRIDE; | 105 ui::Accelerator* accelerator) OVERRIDE; |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 | 285 |
| 286 // The accessibility state of this object. | 286 // The accessibility state of this object. |
| 287 int accessibility_state_; | 287 int accessibility_state_; |
| 288 | 288 |
| 289 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldWin); | 289 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldWin); |
| 290 }; | 290 }; |
| 291 | 291 |
| 292 } // namespace views | 292 } // namespace views |
| 293 | 293 |
| 294 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_ | 294 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_ |
| OLD | NEW |