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

Side by Side Diff: ash/common/wm/window_positioning_utils.h

Issue 2162193003: Separates out accelerators using non-common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@accelerators
Patch Set: sim=20 Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « ash/ash.gyp ('k') | ash/common/wm/window_positioning_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_COMMON_WM_WINDOW_POSITIONING_UTILS_H_ 5 #ifndef ASH_COMMON_WM_WINDOW_POSITIONING_UTILS_H_
6 #define ASH_COMMON_WM_WINDOW_POSITIONING_UTILS_H_ 6 #define ASH_COMMON_WM_WINDOW_POSITIONING_UTILS_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 9
10 namespace gfx { 10 namespace gfx {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // Returns the bounds of a left snapped window with default width in parent 44 // Returns the bounds of a left snapped window with default width in parent
45 // coordinates. 45 // coordinates.
46 ASH_EXPORT gfx::Rect GetDefaultLeftSnappedWindowBoundsInParent( 46 ASH_EXPORT gfx::Rect GetDefaultLeftSnappedWindowBoundsInParent(
47 WmWindow* window); 47 WmWindow* window);
48 48
49 // Returns the bounds of a right snapped window with default width in parent 49 // Returns the bounds of a right snapped window with default width in parent
50 // coordinates. 50 // coordinates.
51 ASH_EXPORT gfx::Rect GetDefaultRightSnappedWindowBoundsInParent( 51 ASH_EXPORT gfx::Rect GetDefaultRightSnappedWindowBoundsInParent(
52 WmWindow* window); 52 WmWindow* window);
53 53
54 // Moves the window to the center of the display.
55 ASH_EXPORT void CenterWindow(WmWindow* window);
56
54 } // namespace wm 57 } // namespace wm
55 } // namespace ash 58 } // namespace ash
56 59
57 #endif // ASH_COMMON_WM_WINDOW_POSITIONING_UTILS_H_ 60 #endif // ASH_COMMON_WM_WINDOW_POSITIONING_UTILS_H_
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | ash/common/wm/window_positioning_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698