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

Side by Side Diff: components/mus/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: General patch cleanup. Created 4 years, 6 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 "components/mus/public/cpp/window.h" 5 #include "components/mus/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 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 client_->Embed(server_id_, std::move(client), callback); 457 client_->Embed(server_id_, std::move(client), callback);
458 else 458 else
459 callback.Run(false); 459 callback.Run(false);
460 } 460 }
461 461
462 void Window::RequestClose() { 462 void Window::RequestClose() {
463 if (client_) 463 if (client_)
464 client_->RequestClose(this); 464 client_->RequestClose(this);
465 } 465 }
466 466
467 bool Window::PerformWindowMove(const gfx::Point& cursor_location) {
468 return client_->PerformWindowMove(this, cursor_location);
469 }
470
471 void Window::CancelWindowMove() {
472 client_->CancelWindowMove(this);
473 }
474
467 std::string Window::GetName() const { 475 std::string Window::GetName() const {
468 if (HasSharedProperty(mojom::WindowManager::kName_Property)) 476 if (HasSharedProperty(mojom::WindowManager::kName_Property))
469 return GetSharedProperty<std::string>(mojom::WindowManager::kName_Property); 477 return GetSharedProperty<std::string>(mojom::WindowManager::kName_Property);
470 478
471 return std::string(); 479 return std::string();
472 } 480 }
473 481
474 //////////////////////////////////////////////////////////////////////////////// 482 ////////////////////////////////////////////////////////////////////////////////
475 // Window, protected: 483 // Window, protected:
476 484
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 notifier->NotifyWindowReordered(); 889 notifier->NotifyWindowReordered();
882 890
883 return true; 891 return true;
884 } 892 }
885 893
886 // static 894 // static
887 Window** Window::GetStackingTarget(Window* window) { 895 Window** Window::GetStackingTarget(Window* window) {
888 return &window->stacking_target_; 896 return &window->stacking_target_;
889 } 897 }
890 } // namespace mus 898 } // namespace mus
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698