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

Side by Side Diff: ui/views/widget/native_widget_win.h

Issue 23619025: Fix use after free when handling async touch events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment Created 7 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 virtual void HandleWorkAreaChanged() OVERRIDE; 204 virtual void HandleWorkAreaChanged() OVERRIDE;
205 virtual void HandleVisibilityChanging(bool visible) OVERRIDE; 205 virtual void HandleVisibilityChanging(bool visible) OVERRIDE;
206 virtual void HandleVisibilityChanged(bool visible) OVERRIDE; 206 virtual void HandleVisibilityChanged(bool visible) OVERRIDE;
207 virtual void HandleClientSizeChanged(const gfx::Size& new_size) OVERRIDE; 207 virtual void HandleClientSizeChanged(const gfx::Size& new_size) OVERRIDE;
208 virtual void HandleFrameChanged() OVERRIDE; 208 virtual void HandleFrameChanged() OVERRIDE;
209 virtual void HandleNativeFocus(HWND last_focused_window) OVERRIDE; 209 virtual void HandleNativeFocus(HWND last_focused_window) OVERRIDE;
210 virtual void HandleNativeBlur(HWND focused_window) OVERRIDE; 210 virtual void HandleNativeBlur(HWND focused_window) OVERRIDE;
211 virtual bool HandleMouseEvent(const ui::MouseEvent& event) OVERRIDE; 211 virtual bool HandleMouseEvent(const ui::MouseEvent& event) OVERRIDE;
212 virtual bool HandleKeyEvent(const ui::KeyEvent& event) OVERRIDE; 212 virtual bool HandleKeyEvent(const ui::KeyEvent& event) OVERRIDE;
213 virtual bool HandleUntranslatedKeyEvent(const ui::KeyEvent& event) OVERRIDE; 213 virtual bool HandleUntranslatedKeyEvent(const ui::KeyEvent& event) OVERRIDE;
214 virtual bool HandleTouchEvent(const ui::TouchEvent& event) OVERRIDE; 214 virtual void HandleTouchEvent(const ui::TouchEvent& event) OVERRIDE;
215 virtual bool HandleIMEMessage(UINT message, 215 virtual bool HandleIMEMessage(UINT message,
216 WPARAM w_param, 216 WPARAM w_param,
217 LPARAM l_param, 217 LPARAM l_param,
218 LRESULT* result) OVERRIDE; 218 LRESULT* result) OVERRIDE;
219 virtual void HandleInputLanguageChange(DWORD character_set, 219 virtual void HandleInputLanguageChange(DWORD character_set,
220 HKL input_language_id) OVERRIDE; 220 HKL input_language_id) OVERRIDE;
221 virtual bool HandlePaintAccelerated(const gfx::Rect& invalid_rect) OVERRIDE; 221 virtual bool HandlePaintAccelerated(const gfx::Rect& invalid_rect) OVERRIDE;
222 virtual void HandlePaint(gfx::Canvas* canvas) OVERRIDE; 222 virtual void HandlePaint(gfx::Canvas* canvas) OVERRIDE;
223 virtual bool HandleTooltipNotify(int w_param, 223 virtual bool HandleTooltipNotify(int w_param,
224 NMHDR* l_param, 224 NMHDR* l_param,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 bool has_non_client_view_; 266 bool has_non_client_view_;
267 267
268 scoped_ptr<HWNDMessageHandler> message_handler_; 268 scoped_ptr<HWNDMessageHandler> message_handler_;
269 269
270 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); 270 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin);
271 }; 271 };
272 272
273 } // namespace views 273 } // namespace views
274 274
275 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ 275 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_root_window_host_win.cc ('k') | ui/views/widget/native_widget_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698