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

Side by Side Diff: components/mus/public/cpp/lib/window.cc

Issue 1923983003: Makes WorkspaceLayoutManager use ash/wm/common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 //////////////////////////////////////////////////////////////////////////////// 512 ////////////////////////////////////////////////////////////////////////////////
513 // Window, private: 513 // Window, private:
514 514
515 Window::Window(WindowTreeConnection* connection, Id id) 515 Window::Window(WindowTreeConnection* connection, Id id)
516 : connection_(connection), 516 : connection_(connection),
517 server_id_(id), 517 server_id_(id),
518 parent_(nullptr), 518 parent_(nullptr),
519 stacking_target_(nullptr), 519 stacking_target_(nullptr),
520 transient_parent_(nullptr), 520 transient_parent_(nullptr),
521 is_modal_(false), 521 is_modal_(false),
522 // Mirrors that of aura::Window.
523 observers_(base::ObserverList<WindowObserver>::NOTIFY_EXISTING_ONLY),
522 input_event_handler_(nullptr), 524 input_event_handler_(nullptr),
523 viewport_metrics_(CreateEmptyViewportMetrics()), 525 viewport_metrics_(CreateEmptyViewportMetrics()),
524 visible_(false), 526 visible_(false),
525 opacity_(1.0f), 527 opacity_(1.0f),
526 cursor_id_(mojom::Cursor::CURSOR_NULL), 528 cursor_id_(mojom::Cursor::CURSOR_NULL),
527 parent_drawn_(false) {} 529 parent_drawn_(false) {}
528 530
529 WindowTreeClientImpl* Window::tree_client() { 531 WindowTreeClientImpl* Window::tree_client() {
530 return static_cast<WindowTreeClientImpl*>(connection_); 532 return static_cast<WindowTreeClientImpl*>(connection_);
531 } 533 }
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 notifier->NotifyWindowReordered(); 869 notifier->NotifyWindowReordered();
868 870
869 return true; 871 return true;
870 } 872 }
871 873
872 // static 874 // static
873 Window** Window::GetStackingTarget(Window* window) { 875 Window** Window::GetStackingTarget(Window* window) {
874 return &window->stacking_target_; 876 return &window->stacking_target_;
875 } 877 }
876 } // namespace mus 878 } // namespace mus
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698