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

Side by Side Diff: ui/aura_shell/drag_drop_controller.h

Issue 8949010: Rename WindowDragDropDelegate->DragDropDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
« no previous file with comments | « ui/aura/client/window_drag_drop_delegate.h ('k') | ui/aura_shell/drag_drop_controller.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_AURA_SHELL_DRAG_DROP_CONTROLLER_H_ 5 #ifndef UI_AURA_SHELL_DRAG_DROP_CONTROLLER_H_
6 #define UI_AURA_SHELL_DRAG_DROP_CONTROLLER_H_ 6 #define UI_AURA_SHELL_DRAG_DROP_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/aura_shell/aura_shell_export.h" 9 #include "ui/aura_shell/aura_shell_export.h"
10 #include "ui/aura/client/drag_drop_client.h" 10 #include "ui/aura/client/drag_drop_client.h"
(...skipping 10 matching lines...) Expand all
21 namespace aura_shell { 21 namespace aura_shell {
22 22
23 namespace test { 23 namespace test {
24 class DragDropControllerTest; 24 class DragDropControllerTest;
25 } 25 }
26 26
27 namespace internal { 27 namespace internal {
28 28
29 class DragImageView; 29 class DragImageView;
30 30
31 class AURA_SHELL_EXPORT DragDropController : public aura::DragDropClient, 31 class AURA_SHELL_EXPORT DragDropController
32 public aura::EventFilter { 32 : public aura::client::DragDropClient,
33 public aura::EventFilter {
33 public: 34 public:
34 DragDropController(); 35 DragDropController();
35 virtual ~DragDropController(); 36 virtual ~DragDropController();
36 37
37 void set_should_block_during_drag_drop(bool should_block_during_drag_drop) { 38 void set_should_block_during_drag_drop(bool should_block_during_drag_drop) {
38 should_block_during_drag_drop_ = should_block_during_drag_drop; 39 should_block_during_drag_drop_ = should_block_during_drag_drop;
39 } 40 }
40 41
41 // Overridden from aura::DragDropClient: 42 // Overridden from aura::client::DragDropClient:
42 virtual int StartDragAndDrop(const ui::OSExchangeData& data, 43 virtual int StartDragAndDrop(const ui::OSExchangeData& data,
43 int operation) OVERRIDE; 44 int operation) OVERRIDE;
44 virtual void DragUpdate(aura::Window* target, 45 virtual void DragUpdate(aura::Window* target,
45 const aura::MouseEvent& event) OVERRIDE; 46 const aura::MouseEvent& event) OVERRIDE;
46 virtual void Drop(aura::Window* target, 47 virtual void Drop(aura::Window* target,
47 const aura::MouseEvent& event) OVERRIDE; 48 const aura::MouseEvent& event) OVERRIDE;
48 virtual void DragCancel() OVERRIDE; 49 virtual void DragCancel() OVERRIDE;
49 virtual bool IsDragDropInProgress() OVERRIDE; 50 virtual bool IsDragDropInProgress() OVERRIDE;
50 51
51 // Overridden from aura::EventFilter: 52 // Overridden from aura::EventFilter:
(...skipping 21 matching lines...) Expand all
73 // Only be used for tests. 74 // Only be used for tests.
74 bool should_block_during_drag_drop_; 75 bool should_block_during_drag_drop_;
75 76
76 DISALLOW_COPY_AND_ASSIGN(DragDropController); 77 DISALLOW_COPY_AND_ASSIGN(DragDropController);
77 }; 78 };
78 79
79 } // namespace internal 80 } // namespace internal
80 } // namespace aura_shell 81 } // namespace aura_shell
81 82
82 #endif // UI_AURA_SHELL_DRAG_DROP_CONTROLLER_H_ 83 #endif // UI_AURA_SHELL_DRAG_DROP_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ui/aura/client/window_drag_drop_delegate.h ('k') | ui/aura_shell/drag_drop_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698