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

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

Issue 1901593004: Removes most aura dependencies from DockedWindowResizer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@window_resizer
Patch Set: branch from master 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 unified diff | Download patch
« no previous file with comments | « ash/wm/aura/wm_window_aura.cc ('k') | ash/wm/dock/docked_window_resizer.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 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_WM_COMMON_WM_WINDOW_H_ 5 #ifndef ASH_WM_COMMON_WM_WINDOW_H_
6 #define ASH_WM_COMMON_WM_WINDOW_H_ 6 #define ASH_WM_COMMON_WM_WINDOW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 virtual bool GetBoolProperty(WmWindowProperty key) = 0; 82 virtual bool GetBoolProperty(WmWindowProperty key) = 0;
83 83
84 WindowState* GetWindowState() { 84 WindowState* GetWindowState() {
85 return const_cast<WindowState*>( 85 return const_cast<WindowState*>(
86 const_cast<const WmWindow*>(this)->GetWindowState()); 86 const_cast<const WmWindow*>(this)->GetWindowState());
87 } 87 }
88 virtual const WindowState* GetWindowState() const = 0; 88 virtual const WindowState* GetWindowState() const = 0;
89 89
90 virtual WmWindow* GetToplevelWindow() = 0; 90 virtual WmWindow* GetToplevelWindow() = 0;
91 91
92 // See aura::client::ParentWindowWithContext() for details of what this does.
93 virtual void SetParentUsingContext(WmWindow* context,
94 const gfx::Rect& screen_bounds) = 0;
92 virtual void AddChild(WmWindow* window) = 0; 95 virtual void AddChild(WmWindow* window) = 0;
93 96
94 virtual WmWindow* GetParent() = 0; 97 virtual WmWindow* GetParent() = 0;
95 98
96 virtual WmWindow* GetTransientParent() = 0; 99 virtual WmWindow* GetTransientParent() = 0;
97 virtual std::vector<WmWindow*> GetTransientChildren() = 0; 100 virtual std::vector<WmWindow*> GetTransientChildren() = 0;
98 101
99 // |type| is WindowVisibilityAnimationType. Has to be an int to match aura. 102 // |type| is WindowVisibilityAnimationType. Has to be an int to match aura.
100 virtual void SetVisibilityAnimationType(int type) = 0; 103 virtual void SetVisibilityAnimationType(int type) = 0;
101 virtual void Animate(::wm::WindowAnimationType type) = 0; 104 virtual void Animate(::wm::WindowAnimationType type) = 0;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 virtual void RemoveObserver(WmWindowObserver* observer) = 0; 164 virtual void RemoveObserver(WmWindowObserver* observer) = 0;
162 165
163 protected: 166 protected:
164 virtual ~WmWindow() {} 167 virtual ~WmWindow() {}
165 }; 168 };
166 169
167 } // namespace wm 170 } // namespace wm
168 } // namespace ash 171 } // namespace ash
169 172
170 #endif // ASH_WM_COMMON_WM_WINDOW_H_ 173 #endif // ASH_WM_COMMON_WM_WINDOW_H_
OLDNEW
« no previous file with comments | « ash/wm/aura/wm_window_aura.cc ('k') | ash/wm/dock/docked_window_resizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698