| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <atlbase.h> | 9 #include <atlbase.h> |
| 10 #include <atlapp.h> | 10 #include <atlapp.h> |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 MSG_WM_SYSKEYUP(OnKeyUp) | 202 MSG_WM_SYSKEYUP(OnKeyUp) |
| 203 MSG_WM_WINDOWPOSCHANGING(OnWindowPosChanging) | 203 MSG_WM_WINDOWPOSCHANGING(OnWindowPosChanging) |
| 204 DEFAULT_REFLECTION_HANDLER() // avoids black margin area | 204 DEFAULT_REFLECTION_HANDLER() // avoids black margin area |
| 205 END_MSG_MAP() | 205 END_MSG_MAP() |
| 206 | 206 |
| 207 // menus::SimpleMenuModel::Delegate | 207 // menus::SimpleMenuModel::Delegate |
| 208 virtual bool IsCommandIdChecked(int command_id) const; | 208 virtual bool IsCommandIdChecked(int command_id) const; |
| 209 virtual bool IsCommandIdEnabled(int command_id) const; | 209 virtual bool IsCommandIdEnabled(int command_id) const; |
| 210 virtual bool GetAcceleratorForCommandId(int command_id, | 210 virtual bool GetAcceleratorForCommandId(int command_id, |
| 211 menus::Accelerator* accelerator); | 211 menus::Accelerator* accelerator); |
| 212 virtual bool IsLabelForCommandIdDynamic(int command_id) const; | 212 virtual bool IsItemForCommandIdDynamic(int command_id) const; |
| 213 virtual std::wstring GetLabelForCommandId(int command_id) const; | 213 virtual std::wstring GetLabelForCommandId(int command_id) const; |
| 214 virtual void ExecuteCommand(int command_id); | 214 virtual void ExecuteCommand(int command_id); |
| 215 | 215 |
| 216 private: | 216 private: |
| 217 enum MouseButton { | 217 enum MouseButton { |
| 218 kLeft = 0, | 218 kLeft = 0, |
| 219 kRight = 1, | 219 kRight = 1, |
| 220 }; | 220 }; |
| 221 | 221 |
| 222 // This object freezes repainting of the edit until the object is destroyed. | 222 // This object freezes repainting of the edit until the object is destroyed. |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 // striken-out when displaying an insecure scheme. | 520 // striken-out when displaying an insecure scheme. |
| 521 url_parse::Component insecure_scheme_component_; | 521 url_parse::Component insecure_scheme_component_; |
| 522 | 522 |
| 523 // Instance of accessibility information and handling. | 523 // Instance of accessibility information and handling. |
| 524 mutable ScopedComPtr<IAccessible> autocomplete_accessibility_; | 524 mutable ScopedComPtr<IAccessible> autocomplete_accessibility_; |
| 525 | 525 |
| 526 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewWin); | 526 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewWin); |
| 527 }; | 527 }; |
| 528 | 528 |
| 529 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_ | 529 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_ |
| OLD | NEW |