Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: chrome/browser/autocomplete/autocomplete_edit_view_win.h

Issue 865001: Merge 34145 - Reverts my r4300 and refixes Issue 3156 and 13500.... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/249/src/
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_edit_view_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 MSG_WM_MBUTTONDOWN(OnNonLButtonDown) 169 MSG_WM_MBUTTONDOWN(OnNonLButtonDown)
170 MSG_WM_MBUTTONUP(OnNonLButtonUp) 170 MSG_WM_MBUTTONUP(OnNonLButtonUp)
171 MSG_WM_MOUSEACTIVATE(OnMouseActivate) 171 MSG_WM_MOUSEACTIVATE(OnMouseActivate)
172 MSG_WM_MOUSEMOVE(OnMouseMove) 172 MSG_WM_MOUSEMOVE(OnMouseMove)
173 MSG_WM_MOUSEWHEEL(OnMouseWheel) 173 MSG_WM_MOUSEWHEEL(OnMouseWheel)
174 MSG_WM_PAINT(OnPaint) 174 MSG_WM_PAINT(OnPaint)
175 MSG_WM_PASTE(OnPaste) 175 MSG_WM_PASTE(OnPaste)
176 MSG_WM_RBUTTONDOWN(OnNonLButtonDown) 176 MSG_WM_RBUTTONDOWN(OnNonLButtonDown)
177 MSG_WM_RBUTTONUP(OnNonLButtonUp) 177 MSG_WM_RBUTTONUP(OnNonLButtonUp)
178 MSG_WM_SETFOCUS(OnSetFocus) 178 MSG_WM_SETFOCUS(OnSetFocus)
179 MSG_WM_SETTEXT(OnSetText)
179 MSG_WM_SYSCHAR(OnSysChar) // WM_SYSxxx == WM_xxx with ALT down 180 MSG_WM_SYSCHAR(OnSysChar) // WM_SYSxxx == WM_xxx with ALT down
180 MSG_WM_SYSKEYDOWN(OnKeyDown) 181 MSG_WM_SYSKEYDOWN(OnKeyDown)
181 MSG_WM_SYSKEYUP(OnKeyUp) 182 MSG_WM_SYSKEYUP(OnKeyUp)
182 MSG_WM_WINDOWPOSCHANGING(OnWindowPosChanging) 183 MSG_WM_WINDOWPOSCHANGING(OnWindowPosChanging)
183 DEFAULT_REFLECTION_HANDLER() // avoids black margin area 184 DEFAULT_REFLECTION_HANDLER() // avoids black margin area
184 END_MSG_MAP() 185 END_MSG_MAP()
185 186
186 // SimpleMenuModel::Delegate 187 // SimpleMenuModel::Delegate
187 virtual bool IsCommandIdChecked(int command_id) const; 188 virtual bool IsCommandIdChecked(int command_id) const;
188 virtual bool IsCommandIdEnabled(int command_id) const; 189 virtual bool IsCommandIdEnabled(int command_id) const;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 void OnLButtonDown(UINT keys, const CPoint& point); 253 void OnLButtonDown(UINT keys, const CPoint& point);
253 void OnLButtonUp(UINT keys, const CPoint& point); 254 void OnLButtonUp(UINT keys, const CPoint& point);
254 LRESULT OnMouseActivate(HWND window, UINT hit_test, UINT mouse_message); 255 LRESULT OnMouseActivate(HWND window, UINT hit_test, UINT mouse_message);
255 void OnMouseMove(UINT keys, const CPoint& point); 256 void OnMouseMove(UINT keys, const CPoint& point);
256 BOOL OnMouseWheel(UINT flags, short delta, CPoint point); 257 BOOL OnMouseWheel(UINT flags, short delta, CPoint point);
257 void OnNonLButtonDown(UINT keys, const CPoint& point); 258 void OnNonLButtonDown(UINT keys, const CPoint& point);
258 void OnNonLButtonUp(UINT keys, const CPoint& point); 259 void OnNonLButtonUp(UINT keys, const CPoint& point);
259 void OnPaint(HDC bogus_hdc); 260 void OnPaint(HDC bogus_hdc);
260 void OnPaste(); 261 void OnPaste();
261 void OnSetFocus(HWND focus_wnd); 262 void OnSetFocus(HWND focus_wnd);
263 LRESULT OnSetText(const wchar_t* text);
262 void OnSysChar(TCHAR ch, UINT repeat_count, UINT flags); 264 void OnSysChar(TCHAR ch, UINT repeat_count, UINT flags);
263 void OnWindowPosChanging(WINDOWPOS* window_pos); 265 void OnWindowPosChanging(WINDOWPOS* window_pos);
264 266
265 // Helper function for OnChar() and OnKeyDown() that handles keystrokes that 267 // Helper function for OnChar() and OnKeyDown() that handles keystrokes that
266 // could change the text in the edit. 268 // could change the text in the edit.
267 void HandleKeystroke(UINT message, TCHAR key, UINT repeat_count, UINT flags); 269 void HandleKeystroke(UINT message, TCHAR key, UINT repeat_count, UINT flags);
268 270
269 // Helper functions for OnKeyDown() that handle accelerators applicable when 271 // Helper functions for OnKeyDown() that handle accelerators applicable when
270 // we're not read-only and all the time, respectively. These return true if 272 // we're not read-only and all the time, respectively. These return true if
271 // they handled the key. 273 // they handled the key.
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 mutable ScopedComPtr<IAccessible> autocomplete_accessibility_; 488 mutable ScopedComPtr<IAccessible> autocomplete_accessibility_;
487 489
488 // We explicitly retain a handle to this library so it never gets unloaded out 490 // We explicitly retain a handle to this library so it never gets unloaded out
489 // from underneath us. 491 // from underneath us.
490 HMODULE riched20dll_handle_; 492 HMODULE riched20dll_handle_;
491 493
492 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewWin); 494 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewWin);
493 }; 495 };
494 496
495 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_ 497 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_edit_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698