| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "services/ui/public/cpp/window.h" | 5 #include "services/ui/public/cpp/window.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 if (client_) | 480 if (client_) |
| 481 client_->RequestClose(this); | 481 client_->RequestClose(this); |
| 482 } | 482 } |
| 483 | 483 |
| 484 void Window::PerformDragDrop( | 484 void Window::PerformDragDrop( |
| 485 int drag_pointer, | 485 int drag_pointer, |
| 486 const std::map<std::string, std::vector<uint8_t>>& drag_data, | 486 const std::map<std::string, std::vector<uint8_t>>& drag_data, |
| 487 int drag_operation, | 487 int drag_operation, |
| 488 const gfx::Point& cursor_location, | 488 const gfx::Point& cursor_location, |
| 489 const SkBitmap& bitmap, | 489 const SkBitmap& bitmap, |
| 490 const base::Callback<void(bool)>& callback) { | 490 const base::Callback<void(bool, uint32_t)>& callback) { |
| 491 client_->PerformDragDrop(this, drag_pointer, drag_data, drag_operation, | 491 client_->PerformDragDrop(this, drag_pointer, drag_data, drag_operation, |
| 492 cursor_location, bitmap, callback); | 492 cursor_location, bitmap, callback); |
| 493 } | 493 } |
| 494 | 494 |
| 495 void Window::PerformWindowMove(mojom::MoveLoopSource source, | 495 void Window::PerformWindowMove(mojom::MoveLoopSource source, |
| 496 const gfx::Point& cursor_location, | 496 const gfx::Point& cursor_location, |
| 497 const base::Callback<void(bool)>& callback) { | 497 const base::Callback<void(bool)>& callback) { |
| 498 client_->PerformWindowMove(this, source, cursor_location, callback); | 498 client_->PerformWindowMove(this, source, cursor_location, callback); |
| 499 } | 499 } |
| 500 | 500 |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 921 notifier->NotifyWindowReordered(); | 921 notifier->NotifyWindowReordered(); |
| 922 | 922 |
| 923 return true; | 923 return true; |
| 924 } | 924 } |
| 925 | 925 |
| 926 // static | 926 // static |
| 927 Window** Window::GetStackingTarget(Window* window) { | 927 Window** Window::GetStackingTarget(Window* window) { |
| 928 return &window->stacking_target_; | 928 return &window->stacking_target_; |
| 929 } | 929 } |
| 930 } // namespace ui | 930 } // namespace ui |
| OLD | NEW |