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

Unified Diff: services/ui/test_wm/test_wm.cc

Issue 2886873002: Only send the FrameSinkId to client when it is necessary (Closed)
Patch Set: Address review issues. Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/public/interfaces/window_tree.mojom ('k') | services/ui/ws/test_change_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/test_wm/test_wm.cc
diff --git a/services/ui/test_wm/test_wm.cc b/services/ui/test_wm/test_wm.cc
index da4b6812063c40a07bb80c8396194c03163f5f92..a61fc4e29bffc2ee53069f578c8baddd6f924320 100644
--- a/services/ui/test_wm/test_wm.cc
+++ b/services/ui/test_wm/test_wm.cc
@@ -13,6 +13,7 @@
#include "services/service_manager/public/cpp/service.h"
#include "services/service_manager/public/cpp/service_context.h"
#include "services/service_manager/public/cpp/service_runner.h"
+#include "ui/aura/client/aura_constants.h"
#include "ui/aura/client/default_capture_client.h"
#include "ui/aura/env.h"
#include "ui/aura/mus/property_converter.h"
@@ -112,6 +113,8 @@ class TestWM : public service_manager::Service,
ui::mojom::WindowType window_type,
std::map<std::string, std::vector<uint8_t>>* properties) override {
aura::Window* window = new aura::Window(nullptr);
+ window->SetProperty(aura::client::kEmbedType,
+ aura::client::WindowEmbedType::TOP_LEVEL_IN_WM);
SetWindowType(window, window_type);
window->Init(LAYER_NOT_DRAWN);
window->SetBounds(gfx::Rect(10, 10, 500, 500));
« no previous file with comments | « services/ui/public/interfaces/window_tree.mojom ('k') | services/ui/ws/test_change_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698