WindowUnderPoint() is a platform independent function to return the id of the first window in z-order under a certain DesktopVector. It equals to GetAncestor(WindowFromPoint(point), GA_ROOT) on Windows. This CL includes the change to Windows / Mac OSX only to control the size in a reasonable range. Implementation for Linux will be added in a coming change. Bug: webrtc:7950 Change-Id: I57e423294fc8aeaa12d05cb626a1912240b2d4d0 Reviewed-on: https://chromium-review.googlesource.com/595022 Commit-Queue: Zijie He <zijiehe@chromium.org> Reviewed-by: Jamie Walch <jamiewalch@chromium.org> Cr-Commit-Position: refs/heads/master@{#19263}
21 lines
645 B
C++
21 lines
645 B
C++
/*
|
|
* Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#include "webrtc/modules/desktop_capture/window_under_point.h"
|
|
|
|
namespace webrtc {
|
|
|
|
WindowId GetWindowUnderPoint(DesktopVector point) {
|
|
// TODO(zijiehe): Implementation required.
|
|
return kNullWindowId;
|
|
}
|
|
|
|
} // namespace webrtc
|