OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_ |
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 virtual void SetFocus(); | 113 virtual void SetFocus(); |
114 | 114 |
115 virtual void OnTemporaryTextMaybeChanged(const std::wstring& display_text, | 115 virtual void OnTemporaryTextMaybeChanged(const std::wstring& display_text, |
116 bool save_original_selection); | 116 bool save_original_selection); |
117 virtual bool OnInlineAutocompleteTextMaybeChanged( | 117 virtual bool OnInlineAutocompleteTextMaybeChanged( |
118 const std::wstring& display_text, size_t user_text_length); | 118 const std::wstring& display_text, size_t user_text_length); |
119 virtual void OnRevertTemporaryText(); | 119 virtual void OnRevertTemporaryText(); |
120 virtual void OnBeforePossibleChange(); | 120 virtual void OnBeforePossibleChange(); |
121 virtual bool OnAfterPossibleChange(); | 121 virtual bool OnAfterPossibleChange(); |
122 virtual gfx::NativeView GetNativeView() const; | 122 virtual gfx::NativeView GetNativeView() const; |
| 123 virtual gfx::NativeView GetFocusNativeView() const; |
123 | 124 |
124 // Exposes custom IAccessible implementation to the overall MSAA hierarchy. | 125 // Exposes custom IAccessible implementation to the overall MSAA hierarchy. |
125 IAccessible* GetIAccessible(); | 126 IAccessible* GetIAccessible(); |
126 | 127 |
127 void SetDropHighlightPosition(int position); | 128 void SetDropHighlightPosition(int position); |
128 int drop_highlight_position() const { return drop_highlight_position_; } | 129 int drop_highlight_position() const { return drop_highlight_position_; } |
129 | 130 |
130 // Returns true if a drag a drop session was initiated by this edit. | 131 // Returns true if a drag a drop session was initiated by this edit. |
131 bool in_drag() const { return in_drag_; } | 132 bool in_drag() const { return in_drag_; } |
132 | 133 |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 // striken-out when displaying an insecure scheme. | 484 // striken-out when displaying an insecure scheme. |
484 url_parse::Component insecure_scheme_component_; | 485 url_parse::Component insecure_scheme_component_; |
485 | 486 |
486 // Instance of accessibility information and handling. | 487 // Instance of accessibility information and handling. |
487 mutable ScopedComPtr<IAccessible> autocomplete_accessibility_; | 488 mutable ScopedComPtr<IAccessible> autocomplete_accessibility_; |
488 | 489 |
489 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewWin); | 490 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewWin); |
490 }; | 491 }; |
491 | 492 |
492 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_ | 493 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_ |
OLD | NEW |