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

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

Issue 2424633002: Revert of Mus+Ash: propagate Surface ID to parents (Closed)
Patch Set: Created 4 years, 2 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/cpp/window_tree_client.h ('k') | services/ui/public/interfaces/window_tree.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/window_tree_client.cc
diff --git a/services/ui/public/cpp/window_tree_client.cc b/services/ui/public/cpp/window_tree_client.cc
index 01bd08277138efa39f463c8ef10d66a8e4f1c95e..bd2d3578d7a1033c33fd34e85b2c038d8d93a14c 100644
--- a/services/ui/public/cpp/window_tree_client.cc
+++ b/services/ui/public/cpp/window_tree_client.cc
@@ -16,7 +16,6 @@
#include "services/ui/common/util.h"
#include "services/ui/public/cpp/in_flight_change.h"
#include "services/ui/public/cpp/input_event_handler.h"
-#include "services/ui/public/cpp/surface_id_handler.h"
#include "services/ui/public/cpp/window_drop_target.h"
#include "services/ui/public/cpp/window_manager_delegate.h"
#include "services/ui/public/cpp/window_observer.h"
@@ -357,13 +356,6 @@
tree_->AttachSurface(window_id, type, std::move(surface), std::move(client));
}
-void WindowTreeClient::OnWindowSurfaceDetached(
- Id window_id,
- const cc::SurfaceSequence& sequence) {
- DCHECK(tree_);
- tree_->OnWindowSurfaceDetached(window_id, sequence);
-}
-
void WindowTreeClient::LocalSetCapture(Window* window) {
if (capture_window_ == window)
return;
@@ -1100,23 +1092,6 @@
WindowPrivate(window).LocalSetPredefinedCursor(cursor);
}
-void WindowTreeClient::OnWindowSurfaceChanged(
- Id window_id,
- const cc::SurfaceId& surface_id,
- const cc::SurfaceSequence& surface_sequence,
- const gfx::Size& frame_size,
- float device_scale_factor) {
- Window* window = GetWindowByServerId(window_id);
- if (!window)
- return;
- std::unique_ptr<SurfaceInfo> surface_info(base::MakeUnique<SurfaceInfo>());
- surface_info->surface_id = surface_id;
- surface_info->surface_sequence = surface_sequence;
- surface_info->frame_size = frame_size;
- surface_info->device_scale_factor = device_scale_factor;
- WindowPrivate(window).LocalSetSurfaceId(std::move(surface_info));
-}
-
void WindowTreeClient::OnDragDropStart(
mojo::Map<mojo::String, mojo::Array<uint8_t>> mime_data) {
mime_drag_data_ = std::move(mime_data);
« no previous file with comments | « services/ui/public/cpp/window_tree_client.h ('k') | services/ui/public/interfaces/window_tree.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698