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

Unified Diff: services/ui/public/cpp/lib/window_tree_client.cc

Issue 2179273002: Mojo C++ bindings: support mapping T and T? differently. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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 side-by-side diff with in-line comments
Download patch
Index: services/ui/public/cpp/lib/window_tree_client.cc
diff --git a/services/ui/public/cpp/lib/window_tree_client.cc b/services/ui/public/cpp/lib/window_tree_client.cc
index b37771cc3fa49eb7e1a354429d7ac31ef27ba9fe..1cfdf74f62889c6a754ac3cd1a9c368df6db0fd7 100644
--- a/services/ui/public/cpp/lib/window_tree_client.cc
+++ b/services/ui/public/cpp/lib/window_tree_client.cc
@@ -281,7 +281,7 @@ void WindowTreeClient::SetHitTestMask(Id window_id, const gfx::Rect& mask) {
void WindowTreeClient::ClearHitTestMask(Id window_id) {
DCHECK(tree_);
- tree_->SetHitTestMask(window_id, {});
+ tree_->SetHitTestMask(window_id, base::nullopt);
}
void WindowTreeClient::SetFocus(Window* window) {
« no previous file with comments | « mojo/public/tools/bindings/generators/mojom_cpp_generator.py ('k') | services/ui/public/cpp/tests/test_window_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698