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

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

Issue 1983343002: Makes mus::Window and mash::wm::WmWindowMus notify existing observers only (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
« no previous file with comments | « no previous file | mash/wm/bridge/wm_window_mus.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 //////////////////////////////////////////////////////////////////////////////// 515 ////////////////////////////////////////////////////////////////////////////////
516 // Window, private: 516 // Window, private:
517 517
518 Window::Window(WindowTreeConnection* connection, Id id) 518 Window::Window(WindowTreeConnection* connection, Id id)
519 : connection_(connection), 519 : connection_(connection),
520 server_id_(id), 520 server_id_(id),
521 parent_(nullptr), 521 parent_(nullptr),
522 stacking_target_(nullptr), 522 stacking_target_(nullptr),
523 transient_parent_(nullptr), 523 transient_parent_(nullptr),
524 is_modal_(false), 524 is_modal_(false),
525 // Matches aura, see aura::Window for details.
526 observers_(base::ObserverList<WindowObserver>::NOTIFY_EXISTING_ONLY),
525 input_event_handler_(nullptr), 527 input_event_handler_(nullptr),
526 viewport_metrics_(CreateEmptyViewportMetrics()), 528 viewport_metrics_(CreateEmptyViewportMetrics()),
527 visible_(false), 529 visible_(false),
528 opacity_(1.0f), 530 opacity_(1.0f),
529 cursor_id_(mojom::Cursor::CURSOR_NULL), 531 cursor_id_(mojom::Cursor::CURSOR_NULL),
530 parent_drawn_(false) {} 532 parent_drawn_(false) {}
531 533
532 WindowTreeClientImpl* Window::tree_client() { 534 WindowTreeClientImpl* Window::tree_client() {
533 return static_cast<WindowTreeClientImpl*>(connection_); 535 return static_cast<WindowTreeClientImpl*>(connection_);
534 } 536 }
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 notifier->NotifyWindowReordered(); 872 notifier->NotifyWindowReordered();
871 873
872 return true; 874 return true;
873 } 875 }
874 876
875 // static 877 // static
876 Window** Window::GetStackingTarget(Window* window) { 878 Window** Window::GetStackingTarget(Window* window) {
877 return &window->stacking_target_; 879 return &window->stacking_target_;
878 } 880 }
879 } // namespace mus 881 } // namespace mus
OLDNEW
« no previous file with comments | « no previous file | mash/wm/bridge/wm_window_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698