| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 virtual void UpdateIsObscured() OVERRIDE; | 72 virtual void UpdateIsObscured() OVERRIDE; |
| 73 virtual void UpdateEnabled() OVERRIDE; | 73 virtual void UpdateEnabled() OVERRIDE; |
| 74 virtual gfx::Insets CalculateInsets() OVERRIDE; | 74 virtual gfx::Insets CalculateInsets() OVERRIDE; |
| 75 virtual void UpdateHorizontalMargins() OVERRIDE; | 75 virtual void UpdateHorizontalMargins() OVERRIDE; |
| 76 virtual void UpdateVerticalMargins() OVERRIDE; | 76 virtual void UpdateVerticalMargins() OVERRIDE; |
| 77 virtual void UpdateVerticalAlignment() OVERRIDE; | 77 virtual void UpdateVerticalAlignment() OVERRIDE; |
| 78 virtual bool SetFocus() OVERRIDE; | 78 virtual bool SetFocus() OVERRIDE; |
| 79 virtual View* GetView() OVERRIDE; | 79 virtual View* GetView() OVERRIDE; |
| 80 virtual gfx::NativeView GetTestingHandle() const OVERRIDE; | 80 virtual gfx::NativeView GetTestingHandle() const OVERRIDE; |
| 81 virtual bool IsIMEComposing() const OVERRIDE; | 81 virtual bool IsIMEComposing() const OVERRIDE; |
| 82 virtual ui::Range GetSelectedRange() const OVERRIDE; | 82 virtual gfx::Range GetSelectedRange() const OVERRIDE; |
| 83 virtual void SelectRange(const ui::Range& range) OVERRIDE; | 83 virtual void SelectRange(const gfx::Range& range) OVERRIDE; |
| 84 virtual gfx::SelectionModel GetSelectionModel() const OVERRIDE; | 84 virtual gfx::SelectionModel GetSelectionModel() const OVERRIDE; |
| 85 virtual void SelectSelectionModel(const gfx::SelectionModel& sel) OVERRIDE; | 85 virtual void SelectSelectionModel(const gfx::SelectionModel& sel) OVERRIDE; |
| 86 virtual size_t GetCursorPosition() const OVERRIDE; | 86 virtual size_t GetCursorPosition() const OVERRIDE; |
| 87 virtual bool GetCursorEnabled() const OVERRIDE; | 87 virtual bool GetCursorEnabled() const OVERRIDE; |
| 88 virtual void SetCursorEnabled(bool enabled) OVERRIDE; | 88 virtual void SetCursorEnabled(bool enabled) OVERRIDE; |
| 89 virtual bool HandleKeyPressed(const ui::KeyEvent& event) OVERRIDE; | 89 virtual bool HandleKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
| 90 virtual bool HandleKeyReleased(const ui::KeyEvent& event) OVERRIDE; | 90 virtual bool HandleKeyReleased(const ui::KeyEvent& event) OVERRIDE; |
| 91 virtual void HandleFocus() OVERRIDE; | 91 virtual void HandleFocus() OVERRIDE; |
| 92 virtual void HandleBlur() OVERRIDE; | 92 virtual void HandleBlur() OVERRIDE; |
| 93 virtual ui::TextInputClient* GetTextInputClient() OVERRIDE; | 93 virtual ui::TextInputClient* GetTextInputClient() OVERRIDE; |
| 94 virtual void SetColor(SkColor value) OVERRIDE; | 94 virtual void SetColor(SkColor value) OVERRIDE; |
| 95 virtual void ApplyColor(SkColor value, const ui::Range& range) OVERRIDE; | 95 virtual void ApplyColor(SkColor value, const gfx::Range& range) OVERRIDE; |
| 96 virtual void SetStyle(gfx::TextStyle style, bool value) OVERRIDE; | 96 virtual void SetStyle(gfx::TextStyle style, bool value) OVERRIDE; |
| 97 virtual void ApplyStyle(gfx::TextStyle style, | 97 virtual void ApplyStyle(gfx::TextStyle style, |
| 98 bool value, | 98 bool value, |
| 99 const ui::Range& range) OVERRIDE; | 99 const gfx::Range& range) OVERRIDE; |
| 100 virtual void ClearEditHistory() OVERRIDE; | 100 virtual void ClearEditHistory() OVERRIDE; |
| 101 virtual int GetFontHeight() OVERRIDE; | 101 virtual int GetFontHeight() OVERRIDE; |
| 102 virtual int GetTextfieldBaseline() const OVERRIDE; | 102 virtual int GetTextfieldBaseline() const OVERRIDE; |
| 103 virtual int GetWidthNeededForText() const OVERRIDE; | 103 virtual int GetWidthNeededForText() const OVERRIDE; |
| 104 virtual void ExecuteTextCommand(int command_id) OVERRIDE; | 104 virtual void ExecuteTextCommand(int command_id) OVERRIDE; |
| 105 virtual bool HasTextBeingDragged() OVERRIDE; | 105 virtual bool HasTextBeingDragged() OVERRIDE; |
| 106 | 106 |
| 107 // ui::SimpleMenuModel::Delegate: | 107 // ui::SimpleMenuModel::Delegate: |
| 108 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; | 108 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; |
| 109 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; | 109 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; |
| 110 virtual bool GetAcceleratorForCommandId( | 110 virtual bool GetAcceleratorForCommandId( |
| 111 int command_id, | 111 int command_id, |
| 112 ui::Accelerator* accelerator) OVERRIDE; | 112 ui::Accelerator* accelerator) OVERRIDE; |
| 113 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE; | 113 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE; |
| 114 | 114 |
| 115 // ui::TSFEventRouterObserver: | 115 // ui::TSFEventRouterObserver: |
| 116 virtual void OnTextUpdated(const ui::Range& composition_range) OVERRIDE; | 116 virtual void OnTextUpdated(const gfx::Range& composition_range) OVERRIDE; |
| 117 virtual void OnTSFStartComposition() OVERRIDE; | 117 virtual void OnTSFStartComposition() OVERRIDE; |
| 118 virtual void OnTSFEndComposition() OVERRIDE; | 118 virtual void OnTSFEndComposition() OVERRIDE; |
| 119 | 119 |
| 120 // Update accessibility information. | 120 // Update accessibility information. |
| 121 void InitializeAccessibilityInfo(); | 121 void InitializeAccessibilityInfo(); |
| 122 void UpdateAccessibleState(uint32 state_flag, bool set_value); | 122 void UpdateAccessibleState(uint32 state_flag, bool set_value); |
| 123 void UpdateAccessibleValue(const string16& value); | 123 void UpdateAccessibleValue(const string16& value); |
| 124 | 124 |
| 125 // CWindowImpl | 125 // CWindowImpl |
| 126 BEGIN_MSG_MAP(Edit) | 126 BEGIN_MSG_MAP(Edit) |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 int accessibility_state_; | 318 int accessibility_state_; |
| 319 | 319 |
| 320 scoped_ptr<ui::TSFEventRouter> tsf_event_router_; | 320 scoped_ptr<ui::TSFEventRouter> tsf_event_router_; |
| 321 | 321 |
| 322 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldWin); | 322 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldWin); |
| 323 }; | 323 }; |
| 324 | 324 |
| 325 } // namespace views | 325 } // namespace views |
| 326 | 326 |
| 327 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_ | 327 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_ |
| OLD | NEW |