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

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

Issue 2625113004: Unify window fullscreen and minimizing implementation (Closed)
Patch Set: Update Created 3 years, 11 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/wm/window_util.h ('k') | ui/views/mus/desktop_window_tree_host_mus.h » ('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 #include "ash/wm/window_util.h" 5 #include "ash/wm/window_util.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "ash/common/ash_constants.h" 9 #include "ash/common/ash_constants.h"
10 #include "ash/common/wm/window_state.h" 10 #include "ash/common/wm/window_state.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 } 48 }
49 49
50 aura::Window* GetActivatableWindow(aura::Window* window) { 50 aura::Window* GetActivatableWindow(aura::Window* window) {
51 return ::wm::GetActivatableWindow(window); 51 return ::wm::GetActivatableWindow(window);
52 } 52 }
53 53
54 bool CanActivateWindow(aura::Window* window) { 54 bool CanActivateWindow(aura::Window* window) {
55 return ::wm::CanActivateWindow(window); 55 return ::wm::CanActivateWindow(window);
56 } 56 }
57 57
58 void SetWindowFullscreen(aura::Window* window, bool fullscreen) {
sky 2017/01/23 20:13:34 Can't callers call through to ::wm::SetWindowFulls
Peng 2017/01/23 20:23:45 Done.
59 ::wm::SetWindowFullscreen(window, fullscreen);
60 }
61
58 bool IsWindowUserPositionable(aura::Window* window) { 62 bool IsWindowUserPositionable(aura::Window* window) {
59 return GetWindowState(window)->IsUserPositionable(); 63 return GetWindowState(window)->IsUserPositionable();
60 } 64 }
61 65
62 void PinWindow(aura::Window* window, bool trusted) { 66 void PinWindow(aura::Window* window, bool trusted) {
63 wm::WMEvent event(trusted ? wm::WM_EVENT_TRUSTED_PIN : wm::WM_EVENT_PIN); 67 wm::WMEvent event(trusted ? wm::WM_EVENT_TRUSTED_PIN : wm::WM_EVENT_PIN);
64 wm::GetWindowState(window)->OnWMEvent(&event); 68 wm::GetWindowState(window)->OnWMEvent(&event);
65 } 69 }
66 70
67 bool MoveWindowToEventRoot(aura::Window* window, const ui::Event& event) { 71 bool MoveWindowToEventRoot(aura::Window* window, const ui::Event& event) {
(...skipping 25 matching lines...) Expand all
93 } 97 }
94 98
95 void SetSnapsChildrenToPhysicalPixelBoundary(aura::Window* container) { 99 void SetSnapsChildrenToPhysicalPixelBoundary(aura::Window* container) {
96 DCHECK(!container->GetProperty(kSnapChildrenToPixelBoundary)) 100 DCHECK(!container->GetProperty(kSnapChildrenToPixelBoundary))
97 << container->GetName(); 101 << container->GetName();
98 container->SetProperty(kSnapChildrenToPixelBoundary, true); 102 container->SetProperty(kSnapChildrenToPixelBoundary, true);
99 } 103 }
100 104
101 } // namespace wm 105 } // namespace wm
102 } // namespace ash 106 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/window_util.h ('k') | ui/views/mus/desktop_window_tree_host_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698