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_NATIVE_TEXTFIELD_WIN_H_ | 5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_ |
6 #define UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_ | 6 #define UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_ |
7 | 7 |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlapp.h> | 9 #include <atlapp.h> |
10 #include <atlcrack.h> | 10 #include <atlcrack.h> |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 virtual void GetSelectionModel(gfx::SelectionModel* sel) const OVERRIDE; | 94 virtual void GetSelectionModel(gfx::SelectionModel* sel) const OVERRIDE; |
95 virtual void SelectSelectionModel(const gfx::SelectionModel& sel) OVERRIDE; | 95 virtual void SelectSelectionModel(const gfx::SelectionModel& sel) OVERRIDE; |
96 virtual size_t GetCursorPosition() const OVERRIDE; | 96 virtual size_t GetCursorPosition() const OVERRIDE; |
97 virtual bool GetCursorEnabled() const OVERRIDE; | 97 virtual bool GetCursorEnabled() const OVERRIDE; |
98 virtual void SetCursorEnabled(bool enabled) OVERRIDE; | 98 virtual void SetCursorEnabled(bool enabled) OVERRIDE; |
99 virtual bool HandleKeyPressed(const ui::KeyEvent& event) OVERRIDE; | 99 virtual bool HandleKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
100 virtual bool HandleKeyReleased(const ui::KeyEvent& event) OVERRIDE; | 100 virtual bool HandleKeyReleased(const ui::KeyEvent& event) OVERRIDE; |
101 virtual void HandleFocus() OVERRIDE; | 101 virtual void HandleFocus() OVERRIDE; |
102 virtual void HandleBlur() OVERRIDE; | 102 virtual void HandleBlur() OVERRIDE; |
103 virtual ui::TextInputClient* GetTextInputClient() OVERRIDE; | 103 virtual ui::TextInputClient* GetTextInputClient() OVERRIDE; |
104 virtual void ApplyStyleRange(const gfx::StyleRange& style) OVERRIDE; | 104 virtual void SetColor(SkColor value) OVERRIDE; |
105 virtual void ApplyDefaultStyle() OVERRIDE; | 105 virtual void ApplyColor(SkColor value, const ui::Range& range) OVERRIDE; |
| 106 virtual void SetStyle(gfx::TextStyle style, bool value) OVERRIDE; |
| 107 virtual void ApplyStyle(gfx::TextStyle style, |
| 108 bool value, |
| 109 const ui::Range& range) OVERRIDE; |
106 virtual void ClearEditHistory() OVERRIDE; | 110 virtual void ClearEditHistory() OVERRIDE; |
107 virtual int GetFontHeight() OVERRIDE; | 111 virtual int GetFontHeight() OVERRIDE; |
108 virtual int GetTextfieldBaseline() const OVERRIDE; | 112 virtual int GetTextfieldBaseline() const OVERRIDE; |
109 virtual void ExecuteTextCommand(int command_id) OVERRIDE; | 113 virtual void ExecuteTextCommand(int command_id) OVERRIDE; |
110 | 114 |
111 // ui::SimpleMenuModel::Delegate: | 115 // ui::SimpleMenuModel::Delegate: |
112 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; | 116 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; |
113 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; | 117 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; |
114 virtual bool GetAcceleratorForCommandId( | 118 virtual bool GetAcceleratorForCommandId( |
115 int command_id, | 119 int command_id, |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 int accessibility_state_; | 326 int accessibility_state_; |
323 | 327 |
324 scoped_ptr<ui::TSFEventRouter> tsf_event_router_; | 328 scoped_ptr<ui::TSFEventRouter> tsf_event_router_; |
325 | 329 |
326 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldWin); | 330 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldWin); |
327 }; | 331 }; |
328 | 332 |
329 } // namespace views | 333 } // namespace views |
330 | 334 |
331 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_ | 335 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_ |
OLD | NEW |