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

Unified Diff: ash/wm_window.cc

Issue 2904273002: [mus+ash] Removes WmWindow from RootWindowcontroller implementation (Closed)
Patch Set: [mus+ash] Removes WmWindow from RootWindowcontroller implementation (rebased) 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 | « ash/wm_window.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm_window.cc
diff --git a/ash/wm_window.cc b/ash/wm_window.cc
index 256a1ab55e97210fc8252259d5d11a053f09d82a..07feeec53b98b787169a73f2372bbcc986885f2e 100644
--- a/ash/wm_window.cc
+++ b/ash/wm_window.cc
@@ -97,13 +97,6 @@ const aura::Window* WmWindow::GetAuraWindow(const WmWindow* wm_window) {
: nullptr;
}
-bool WmWindow::ShouldUseExtendedHitRegion() const {
- const WmWindow* parent = Get(window_->parent());
- return parent &&
- static_cast<const WmWindow*>(parent)
- ->children_use_extended_hit_region_;
-}
-
void WmWindow::Destroy() {
delete window_;
// WARNING: this has been deleted.
@@ -515,22 +508,6 @@ void WmWindow::SnapToPixelBoundaryIfNecessary() {
wm::SnapWindowToPixelBoundary(window_);
}
-void WmWindow::SetChildrenUseExtendedHitRegion() {
- children_use_extended_hit_region_ = true;
- gfx::Insets mouse_extend(-kResizeOutsideBoundsSize, -kResizeOutsideBoundsSize,
- -kResizeOutsideBoundsSize,
- -kResizeOutsideBoundsSize);
- gfx::Insets touch_extend =
- mouse_extend.Scale(kResizeOutsideBoundsScaleForTouch);
- // TODO: EasyResizeWindowTargeter makes it so children get events outside
- // their bounds. This only works in mash when mash is providing the non-client
- // frame. Mus needs to support an api for the WindowManager that enables
- // events to be dispatched to windows outside the windows bounds that this
- // function calls into. http://crbug.com/679056.
- window_->SetEventTargeter(base::MakeUnique<::wm::EasyResizeWindowTargeter>(
- window_, mouse_extend, touch_extend));
-}
-
void WmWindow::AddTransientWindowObserver(WmTransientWindowObserver* observer) {
if (!added_transient_observer_) {
added_transient_observer_ = true;
« no previous file with comments | « ash/wm_window.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698