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

Side by Side Diff: ash/wm/window_util.h

Issue 2696073002: Merge ShelfItemDelegate::ItemSelected & LauncherItemDelegate::Activate. (Closed)
Patch Set: nit Created 3 years, 10 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/shell/window_watcher_shelf_item_delegate.cc ('k') | ash/wm/window_util.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WM_WINDOW_UTIL_H_ 5 #ifndef ASH_WM_WINDOW_UTIL_H_
6 #define ASH_WM_WINDOW_UTIL_H_ 6 #define ASH_WM_WINDOW_UTIL_H_
7 7
8 #include <stdint.h>
9
8 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
9 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
10 #include "ui/base/ui_base_types.h" 12 #include "ui/base/ui_base_types.h"
11 13
12 namespace aura { 14 namespace aura {
13 class Window; 15 class Window;
14 } 16 }
15 17
16 namespace ui { 18 namespace ui {
17 class Event; 19 class Event;
(...skipping 16 matching lines...) Expand all
34 // If you're looking for a function to get the activatable "top level" window, 36 // If you're looking for a function to get the activatable "top level" window,
35 // this is probably what you're looking for. 37 // this is probably what you're looking for.
36 ASH_EXPORT aura::Window* GetActivatableWindow(aura::Window* window); 38 ASH_EXPORT aura::Window* GetActivatableWindow(aura::Window* window);
37 39
38 // Returns true if |window|'s location can be controlled by the user. 40 // Returns true if |window|'s location can be controlled by the user.
39 ASH_EXPORT bool IsWindowUserPositionable(aura::Window* window); 41 ASH_EXPORT bool IsWindowUserPositionable(aura::Window* window);
40 42
41 // Pins the window on top of other windows. 43 // Pins the window on top of other windows.
42 ASH_EXPORT void PinWindow(aura::Window* window, bool trusted); 44 ASH_EXPORT void PinWindow(aura::Window* window, bool trusted);
43 45
44 // Moves |window| to the root window where the |event| occured if it is not 46 // Moves |window| to the root window for the given |display_id|, if it is not
47 // already in the same root window. Returns true if |window| was moved.
48 ASH_EXPORT bool MoveWindowToDisplay(aura::Window* window, int64_t display_id);
49
50 // Moves |window| to the root window where the |event| occurred, if it is not
45 // already in the same root window. Returns true if |window| was moved. 51 // already in the same root window. Returns true if |window| was moved.
46 ASH_EXPORT bool MoveWindowToEventRoot(aura::Window* window, 52 ASH_EXPORT bool MoveWindowToEventRoot(aura::Window* window,
47 const ui::Event& event); 53 const ui::Event& event);
48 54
49 // Snap the window's layer to physical pixel boundary. 55 // Snap the window's layer to physical pixel boundary.
50 ASH_EXPORT void SnapWindowToPixelBoundary(aura::Window* window); 56 ASH_EXPORT void SnapWindowToPixelBoundary(aura::Window* window);
51 57
52 // Mark the container window so that InstallSnapLayoutManagerToContainers 58 // Mark the container window so that InstallSnapLayoutManagerToContainers
53 // installs the SnapToPixelLayoutManager. 59 // installs the SnapToPixelLayoutManager.
54 ASH_EXPORT void SetSnapsChildrenToPhysicalPixelBoundary( 60 ASH_EXPORT void SetSnapsChildrenToPhysicalPixelBoundary(
55 aura::Window* container); 61 aura::Window* container);
56 62
57 } // namespace wm 63 } // namespace wm
58 } // namespace ash 64 } // namespace ash
59 65
60 #endif // ASH_WM_WINDOW_UTIL_H_ 66 #endif // ASH_WM_WINDOW_UTIL_H_
OLDNEW
« no previous file with comments | « ash/shell/window_watcher_shelf_item_delegate.cc ('k') | ash/wm/window_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698