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

Side by Side Diff: chrome/views/focus_manager.cc

Issue 21535: An experimental fix for Issue 7707.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 #include <algorithm> 5 #include <algorithm>
6 6
7 #include "base/histogram.h" 7 #include "base/histogram.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/win_util.h" 9 #include "base/win_util.h"
10 #include "chrome/browser/renderer_host/render_widget_host_view_win.h" 10 #include "chrome/browser/renderer_host/render_widget_host_view_win.h"
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 wParam, lParam); 184 wParam, lParam);
185 if (!focus_manager->OnPostActivate(window, 185 if (!focus_manager->OnPostActivate(window,
186 LOWORD(wParam), HIWORD(wParam))) 186 LOWORD(wParam), HIWORD(wParam)))
187 return 0; 187 return 0;
188 return result; 188 return result;
189 } 189 }
190 case WM_MOUSEWHEEL: 190 case WM_MOUSEWHEEL:
191 if (RerouteMouseWheel(window, wParam, lParam)) 191 if (RerouteMouseWheel(window, wParam, lParam))
192 return 0; 192 return 0;
193 break; 193 break;
194 case WM_IME_CHAR:
195 // Issue 7707: A rich-edit control may crash when it receives a
196 // WM_IME_CHAR message while it is processing a WM_IME_COMPOSITION
197 // message. Since view controls don't need WM_IME_CHAR messages,
198 // we prevent WM_IME_CHAR messages from being dispatched to view
199 // controls via the CallWindowProc() call.
200 return 0;
194 default: 201 default:
195 break; 202 break;
196 } 203 }
197 } 204 }
198 return CallWindowProc(original_handler, window, message, wParam, lParam); 205 return CallWindowProc(original_handler, window, message, wParam, lParam);
199 } 206 }
200 207
201 // FocusManager ----------------------------------------------------- 208 // FocusManager -----------------------------------------------------
202 209
203 // static 210 // static
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 listener); 843 listener);
837 if (place == focus_change_listeners_.end()) { 844 if (place == focus_change_listeners_.end()) {
838 NOTREACHED() << "Removing a listener that isn't registered."; 845 NOTREACHED() << "Removing a listener that isn't registered.";
839 return; 846 return;
840 } 847 }
841 focus_change_listeners_.erase(place); 848 focus_change_listeners_.erase(place);
842 } 849 }
843 850
844 } // namespace views 851 } // namespace views
845 852
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698