OLD | NEW |
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 VIEWS_EVENT_H_ | 5 #ifndef VIEWS_EVENT_H_ |
6 #define VIEWS_EVENT_H_ | 6 #define VIEWS_EVENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "gfx/point.h" | 10 #include "gfx/point.h" |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 int y, | 435 int y, |
436 int source_operations) | 436 int source_operations) |
437 : LocatedEvent(ET_DROP_TARGET_EVENT, gfx::Point(x, y), 0), | 437 : LocatedEvent(ET_DROP_TARGET_EVENT, gfx::Point(x, y), 0), |
438 data_(data), | 438 data_(data), |
439 source_operations_(source_operations) { | 439 source_operations_(source_operations) { |
440 } | 440 } |
441 | 441 |
442 // Data associated with the drag/drop session. | 442 // Data associated with the drag/drop session. |
443 const OSExchangeData& GetData() const { return data_; } | 443 const OSExchangeData& GetData() const { return data_; } |
444 | 444 |
445 // Bitmask of supported DragDropTypes::DragOperation by the source. | 445 // Bitmask of supported ui::DragDropTypes::DragOperation by the source. |
446 int GetSourceOperations() const { return source_operations_; } | 446 int GetSourceOperations() const { return source_operations_; } |
447 | 447 |
448 private: | 448 private: |
449 const OSExchangeData& data_; | 449 const OSExchangeData& data_; |
450 int source_operations_; | 450 int source_operations_; |
451 | 451 |
452 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); | 452 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); |
453 }; | 453 }; |
454 | 454 |
455 } // namespace views | 455 } // namespace views |
456 | 456 |
457 #endif // VIEWS_EVENT_H_ | 457 #endif // VIEWS_EVENT_H_ |
OLD | NEW |