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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_drag_drop_client_win.h

Issue 819793002: Reland: Fix crash when the source browser window is deleted during a drag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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) 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_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_WIN_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_WIN_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_WIN_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_WIN_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h"
10 #include "ui/views/views_export.h" 11 #include "ui/views/views_export.h"
11 #include "ui/wm/public/drag_drop_client.h" 12 #include "ui/wm/public/drag_drop_client.h"
12 13
13 namespace ui { 14 namespace ui {
14 class DragSourceWin; 15 class DragSourceWin;
15 } 16 }
16 17
17 namespace views { 18 namespace views {
18 class DesktopDropTargetWin; 19 class DesktopDropTargetWin;
19 20
(...skipping 22 matching lines...) Expand all
42 43
43 private: 44 private:
44 bool drag_drop_in_progress_; 45 bool drag_drop_in_progress_;
45 46
46 int drag_operation_; 47 int drag_operation_;
47 48
48 scoped_refptr<ui::DragSourceWin> drag_source_; 49 scoped_refptr<ui::DragSourceWin> drag_source_;
49 50
50 scoped_refptr<DesktopDropTargetWin> drop_target_; 51 scoped_refptr<DesktopDropTargetWin> drop_target_;
51 52
53 base::WeakPtrFactory<DesktopDragDropClientWin> weak_factory_;
54
52 DISALLOW_COPY_AND_ASSIGN(DesktopDragDropClientWin); 55 DISALLOW_COPY_AND_ASSIGN(DesktopDragDropClientWin);
53 }; 56 };
54 57
55 } // namespace views 58 } // namespace views
56 59
57 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_WIN_H_ 60 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_WIN_H_
OLDNEW
« no previous file with comments | « chrome/test/base/view_event_test_base.cc ('k') | ui/views/widget/desktop_aura/desktop_drag_drop_client_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698