| OLD | NEW |
| 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 #include "ui/views/view.h" | 5 #include "ui/views/view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <functional> | 8 #include <functional> |
| 9 | 9 |
| 10 #include "ui/base/dragdrop/drag_drop_types.h" | 10 #include "ui/base/dragdrop/drag_drop_types.h" |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 | 433 |
| 434 bool View::OnMousePressed(const MouseEvent& event) { | 434 bool View::OnMousePressed(const MouseEvent& event) { |
| 435 return true; | 435 return true; |
| 436 } | 436 } |
| 437 | 437 |
| 438 bool View::OnMouseDragged(const MouseEvent& event) { | 438 bool View::OnMouseDragged(const MouseEvent& event) { |
| 439 return true; | 439 return true; |
| 440 } | 440 } |
| 441 | 441 |
| 442 void View::OnMouseReleased(const MouseEvent& event) { | 442 void View::OnMouseReleased(const MouseEvent& event) { |
| 443 | |
| 444 } | 443 } |
| 445 | 444 |
| 446 void View::OnMouseCaptureLost() { | 445 void View::OnMouseCaptureLost() { |
| 447 | |
| 448 } | 446 } |
| 449 | 447 |
| 450 void View::OnMouseMoved(const MouseEvent& event) { | 448 void View::OnMouseMoved(const MouseEvent& event) { |
| 451 | |
| 452 } | 449 } |
| 453 | 450 |
| 454 void View::OnMouseEntered(const MouseEvent& event) { | 451 void View::OnMouseEntered(const MouseEvent& event) { |
| 455 | |
| 456 } | 452 } |
| 457 | 453 |
| 458 void View::OnMouseExited(const MouseEvent& event) { | 454 void View::OnMouseExited(const MouseEvent& event) { |
| 459 | |
| 460 } | 455 } |
| 461 | 456 |
| 462 // Accelerators ---------------------------------------------------------------- | 457 // Accelerators ---------------------------------------------------------------- |
| 463 | 458 |
| 464 bool View::OnAcceleratorPressed(const Accelerator& accelerator) { | 459 bool View::OnAcceleratorPressed(const Accelerator& accelerator) { |
| 465 return false; | 460 return false; |
| 466 } | 461 } |
| 467 | 462 |
| 468 // Focus ----------------------------------------------------------------------- | 463 // Focus ----------------------------------------------------------------------- |
| 469 | 464 |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 void View::WriteDragData(const gfx::Point& point, OSExchangeData* data) { | 655 void View::WriteDragData(const gfx::Point& point, OSExchangeData* data) { |
| 661 drag_controller_->WriteDragData(this, point, data); | 656 drag_controller_->WriteDragData(this, point, data); |
| 662 } | 657 } |
| 663 | 658 |
| 664 void View::StartShellDrag(const MouseEvent& event, | 659 void View::StartShellDrag(const MouseEvent& event, |
| 665 const gfx::Point& press_point) { | 660 const gfx::Point& press_point) { |
| 666 // TODO(beng): system stuff. | 661 // TODO(beng): system stuff. |
| 667 } | 662 } |
| 668 | 663 |
| 669 } // namespace ui | 664 } // namespace ui |
| OLD | NEW |