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

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

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: Created 4 years, 11 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/lib/window_tree_client_impl.h" 5 #include "components/mus/public/cpp/lib/window_tree_client_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 } 387 }
388 388
389 void WindowTreeClientImpl::OnEmbedImpl(mojom::WindowTree* window_tree, 389 void WindowTreeClientImpl::OnEmbedImpl(mojom::WindowTree* window_tree,
390 ConnectionSpecificId connection_id, 390 ConnectionSpecificId connection_id,
391 mojom::WindowDataPtr root_data, 391 mojom::WindowDataPtr root_data,
392 Id focused_window_id, 392 Id focused_window_id,
393 uint32_t access_policy) { 393 uint32_t access_policy) {
394 tree_ = window_tree; 394 tree_ = window_tree;
395 connection_id_ = connection_id; 395 connection_id_ = connection_id;
396 is_embed_root_ = 396 is_embed_root_ =
397 (access_policy & mojom::WindowTree::ACCESS_POLICY_EMBED_ROOT) != 0; 397 (access_policy & mojom::WindowTree::kAccessPolicyEmbedRoot) != 0;
398 398
399 DCHECK(!root_); 399 DCHECK(!root_);
400 root_ = AddWindowToConnection(this, nullptr, root_data); 400 root_ = AddWindowToConnection(this, nullptr, root_data);
401 401
402 focused_window_ = GetWindowById(focused_window_id); 402 focused_window_ = GetWindowById(focused_window_id);
403 403
404 delegate_->OnEmbed(root_); 404 delegate_->OnEmbed(root_);
405 405
406 if (focused_window_) { 406 if (focused_window_) {
407 FOR_EACH_OBSERVER(WindowTreeConnectionObserver, observers_, 407 FOR_EACH_OBSERVER(WindowTreeConnectionObserver, observers_,
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 if (result) { 752 if (result) {
753 // If the resulting bounds differ return false. Returning false ensures 753 // If the resulting bounds differ return false. Returning false ensures
754 // the client applies the bounds we set below. 754 // the client applies the bounds we set below.
755 window->SetSharedPropertyInternal(name, data.get()); 755 window->SetSharedPropertyInternal(name, data.get());
756 } 756 }
757 } 757 }
758 window_manager_internal_client_->WmResponse(change_id, result); 758 window_manager_internal_client_->WmResponse(change_id, result);
759 } 759 }
760 760
761 } // namespace mus 761 } // namespace mus
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698