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

Unified Diff: ash/wm/aura/wm_window_aura.cc

Issue 2001623003: Splits ToplevelWindowEventHandler into two (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix gyp Created 4 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/aura/wm_window_aura.h ('k') | ash/wm/common/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/aura/wm_window_aura.cc
diff --git a/ash/wm/aura/wm_window_aura.cc b/ash/wm/aura/wm_window_aura.cc
index f770a8a234b155bb119af3b49beca2bfc9882a45..53afa3a0e9203f12537297c669b14fb29d35104a 100644
--- a/ash/wm/aura/wm_window_aura.cc
+++ b/ash/wm/aura/wm_window_aura.cc
@@ -6,6 +6,7 @@
#include "ash/screen_util.h"
#include "ash/shelf/shelf_util.h"
+#include "ash/shell.h"
#include "ash/wm/aura/aura_layout_manager_adapter.h"
#include "ash/wm/aura/wm_globals_aura.h"
#include "ash/wm/aura/wm_root_window_controller_aura.h"
@@ -13,6 +14,7 @@
#include "ash/wm/common/wm_layout_manager.h"
#include "ash/wm/common/wm_window_observer.h"
#include "ash/wm/common/wm_window_property.h"
+#include "ash/wm/resize_shadow_controller.h"
#include "ash/wm/window_animations.h"
#include "ash/wm/window_properties.h"
#include "ash/wm/window_state_aura.h"
@@ -492,6 +494,20 @@ WmWindow* WmWindowAura::GetChildByShellWindowId(int id) {
return Get(window_->GetChildById(id));
}
+void WmWindowAura::ShowResizeShadow(int component) {
+ ResizeShadowController* resize_shadow_controller =
+ Shell::GetInstance()->resize_shadow_controller();
+ if (resize_shadow_controller)
+ resize_shadow_controller->ShowShadow(window_, component);
+}
+
+void WmWindowAura::HideResizeShadow() {
+ ResizeShadowController* resize_shadow_controller =
+ Shell::GetInstance()->resize_shadow_controller();
+ if (resize_shadow_controller)
+ resize_shadow_controller->HideShadow(window_);
+}
+
void WmWindowAura::SnapToPixelBoundaryIfNecessary() {
SnapWindowToPixelBoundary(window_);
}
« no previous file with comments | « ash/wm/aura/wm_window_aura.h ('k') | ash/wm/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698