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

Unified Diff: ash/wm/common/wm_snap_to_pixel_layout_manager.cc

Issue 1907863002: Converts DockedWindowLayoutManager to common ash/wm types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 4 years, 8 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/common/wm_snap_to_pixel_layout_manager.h ('k') | ash/wm/common/wm_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/common/wm_snap_to_pixel_layout_manager.cc
diff --git a/ash/wm/common/wm_snap_to_pixel_layout_manager.cc b/ash/wm/common/wm_snap_to_pixel_layout_manager.cc
new file mode 100644
index 0000000000000000000000000000000000000000..bd1f10aeac18216bb3455c19a97d8539233230a7
--- /dev/null
+++ b/ash/wm/common/wm_snap_to_pixel_layout_manager.cc
@@ -0,0 +1,37 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ash/wm/common/wm_snap_to_pixel_layout_manager.h"
+
+#include "ash/wm/common/wm_window.h"
+
+namespace ash {
+namespace wm {
+
+WmSnapToPixelLayoutManager::WmSnapToPixelLayoutManager() {}
+
+WmSnapToPixelLayoutManager::~WmSnapToPixelLayoutManager() {}
+
+void WmSnapToPixelLayoutManager::OnWindowResized() {}
+
+void WmSnapToPixelLayoutManager::OnWindowAddedToLayout(WmWindow* child) {}
+
+void WmSnapToPixelLayoutManager::OnWillRemoveWindowFromLayout(WmWindow* child) {
+}
+
+void WmSnapToPixelLayoutManager::OnWindowRemovedFromLayout(WmWindow* child) {}
+
+void WmSnapToPixelLayoutManager::OnChildWindowVisibilityChanged(WmWindow* child,
+ bool visibile) {
+}
+
+void WmSnapToPixelLayoutManager::SetChildBounds(
+ WmWindow* child,
+ const gfx::Rect& requested_bounds) {
+ child->SetBoundsDirect(requested_bounds);
+ child->SnapToPixelBoundaryIfNecessary();
+}
+
+} // namespace wm
+} // namespace ash
« no previous file with comments | « ash/wm/common/wm_snap_to_pixel_layout_manager.h ('k') | ash/wm/common/wm_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698