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

Side by Side Diff: services/ui/ws/server_window.cc

Issue 2118383002: mus: Disregard windows that explicitly set can_accept_events to be false when sending events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments 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
« no previous file with comments | « services/ui/ws/server_window.h ('k') | services/ui/ws/test_utils.h » ('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 "services/ui/ws/server_window.h" 5 #include "services/ui/ws/server_window.h"
6 6
7 #include <inttypes.h> 7 #include <inttypes.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 17 matching lines...) Expand all
28 id_(id), 28 id_(id),
29 parent_(nullptr), 29 parent_(nullptr),
30 stacking_target_(nullptr), 30 stacking_target_(nullptr),
31 transient_parent_(nullptr), 31 transient_parent_(nullptr),
32 is_modal_(false), 32 is_modal_(false),
33 visible_(false), 33 visible_(false),
34 cursor_id_(mojom::Cursor::CURSOR_NULL), 34 cursor_id_(mojom::Cursor::CURSOR_NULL),
35 non_client_cursor_id_(mojom::Cursor::CURSOR_NULL), 35 non_client_cursor_id_(mojom::Cursor::CURSOR_NULL),
36 opacity_(1), 36 opacity_(1),
37 can_focus_(true), 37 can_focus_(true),
38 can_accept_events_(true),
38 properties_(properties), 39 properties_(properties),
39 // Don't notify newly added observers during notification. This causes 40 // Don't notify newly added observers during notification. This causes
40 // problems for code that adds an observer as part of an observer 41 // problems for code that adds an observer as part of an observer
41 // notification (such as ServerWindowDrawTracker). 42 // notification (such as ServerWindowDrawTracker).
42 observers_( 43 observers_(
43 base::ObserverList<ServerWindowObserver>::NOTIFY_EXISTING_ONLY) { 44 base::ObserverList<ServerWindowObserver>::NOTIFY_EXISTING_ONLY) {
44 DCHECK(delegate); // Must provide a delegate. 45 DCHECK(delegate); // Must provide a delegate.
45 } 46 }
46 47
47 ServerWindow::~ServerWindow() { 48 ServerWindow::~ServerWindow() {
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 } 449 }
449 450
450 // static 451 // static
451 ServerWindow** ServerWindow::GetStackingTarget(ServerWindow* window) { 452 ServerWindow** ServerWindow::GetStackingTarget(ServerWindow* window) {
452 return &window->stacking_target_; 453 return &window->stacking_target_;
453 } 454 }
454 455
455 } // namespace ws 456 } // namespace ws
456 457
457 } // namespace ui 458 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/server_window.h ('k') | services/ui/ws/test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698