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

Side by Side Diff: services/ui/public/cpp/lib/window.cc

Issue 2060513002: Tab dragging as implemented as a mus API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheng nits Created 4 years, 5 months 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 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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 client_->Embed(server_id_, std::move(client), flags, callback); 458 client_->Embed(server_id_, std::move(client), flags, callback);
459 else 459 else
460 callback.Run(false); 460 callback.Run(false);
461 } 461 }
462 462
463 void Window::RequestClose() { 463 void Window::RequestClose() {
464 if (client_) 464 if (client_)
465 client_->RequestClose(this); 465 client_->RequestClose(this);
466 } 466 }
467 467
468 void Window::PerformWindowMove(mojom::MoveLoopSource source,
469 const gfx::Point& cursor_location,
470 const base::Callback<void(bool)>& callback) {
471 client_->PerformWindowMove(this, source, cursor_location, callback);
472 }
473
474 void Window::CancelWindowMove() {
475 client_->CancelWindowMove(this);
476 }
477
468 std::string Window::GetName() const { 478 std::string Window::GetName() const {
469 if (HasSharedProperty(mojom::WindowManager::kName_Property)) 479 if (HasSharedProperty(mojom::WindowManager::kName_Property))
470 return GetSharedProperty<std::string>(mojom::WindowManager::kName_Property); 480 return GetSharedProperty<std::string>(mojom::WindowManager::kName_Property);
471 481
472 return std::string(); 482 return std::string();
473 } 483 }
474 484
475 //////////////////////////////////////////////////////////////////////////////// 485 ////////////////////////////////////////////////////////////////////////////////
476 // Window, protected: 486 // Window, protected:
477 487
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
882 notifier->NotifyWindowReordered(); 892 notifier->NotifyWindowReordered();
883 893
884 return true; 894 return true;
885 } 895 }
886 896
887 // static 897 // static
888 Window** Window::GetStackingTarget(Window* window) { 898 Window** Window::GetStackingTarget(Window* window) {
889 return &window->stacking_target_; 899 return &window->stacking_target_;
890 } 900 }
891 } // namespace ui 901 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/public/cpp/lib/in_flight_change.cc ('k') | services/ui/public/cpp/lib/window_tree_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698