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

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

Issue 21453: Try a new approach to fixing IAT unpatch crashes when the DLL is gone. (Closed)
Patch Set: DCHECK Created 11 years, 10 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
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_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_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 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 662
663 // Replacement word-breaking proc for the rich edit control. 663 // Replacement word-breaking proc for the rich edit control.
664 static int CALLBACK WordBreakProc(LPTSTR edit_text, 664 static int CALLBACK WordBreakProc(LPTSTR edit_text,
665 int current_pos, 665 int current_pos,
666 int num_bytes, 666 int num_bytes,
667 int action); 667 int action);
668 668
669 // Returns true if |edit_text| starting at |current_pos| is "://". 669 // Returns true if |edit_text| starting at |current_pos| is "://".
670 static bool SchemeEnd(LPTSTR edit_text, int current_pos, int length); 670 static bool SchemeEnd(LPTSTR edit_text, int current_pos, int length);
671 671
672 // Intercepts. See OnPaint().
673 static HDC WINAPI BeginPaintIntercept(HWND hWnd, LPPAINTSTRUCT lpPaint);
674 static BOOL WINAPI EndPaintIntercept(HWND hWnd, CONST PAINTSTRUCT* lpPaint);
675
676 // Message handlers 672 // Message handlers
677 void OnChar(TCHAR ch, UINT repeat_count, UINT flags); 673 void OnChar(TCHAR ch, UINT repeat_count, UINT flags);
678 void OnContextMenu(HWND window, const CPoint& point); 674 void OnContextMenu(HWND window, const CPoint& point);
679 void OnCopy(); 675 void OnCopy();
680 void OnCut(); 676 void OnCut();
681 LRESULT OnGetObject(UINT uMsg, WPARAM wparam, LPARAM lparam); 677 LRESULT OnGetObject(UINT uMsg, WPARAM wparam, LPARAM lparam);
682 LRESULT OnImeComposition(UINT message, WPARAM wparam, LPARAM lparam); 678 LRESULT OnImeComposition(UINT message, WPARAM wparam, LPARAM lparam);
683 void OnKeyDown(TCHAR key, UINT repeat_count, UINT flags); 679 void OnKeyDown(TCHAR key, UINT repeat_count, UINT flags);
684 void OnKeyUp(TCHAR key, UINT repeat_count, UINT flags); 680 void OnKeyUp(TCHAR key, UINT repeat_count, UINT flags);
685 void OnKillFocus(HWND focus_wnd); 681 void OnKillFocus(HWND focus_wnd);
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 : model_state(model_state), 914 : model_state(model_state),
919 view_state(view_state) { 915 view_state(view_state) {
920 } 916 }
921 917
922 const AutocompleteEditModel::State model_state; 918 const AutocompleteEditModel::State model_state;
923 const AutocompleteEditView::State view_state; 919 const AutocompleteEditView::State view_state;
924 }; 920 };
925 921
926 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ 922 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_
927 923
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698