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

Side by Side Diff: ash/mus/bridge/wm_window_mus.h

Issue 2042913002: Converts MruWindowTracker to work with common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: not equal Created 4 years, 6 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/mus/bridge/wm_shell_mus.cc ('k') | ash/mus/bridge/wm_window_mus.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_MUS_BRIDGE_WM_WINDOW_MUS_H_ 5 #ifndef ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_
6 #define ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_ 6 #define ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/common/shell_window_ids.h" 10 #include "ash/common/shell_window_ids.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 BoundsInScreenBehavior behavior) override; 200 BoundsInScreenBehavior behavior) override;
201 void SetSnapsChildrenToPhysicalPixelBoundary() override; 201 void SetSnapsChildrenToPhysicalPixelBoundary() override;
202 void SnapToPixelBoundaryIfNecessary() override; 202 void SnapToPixelBoundaryIfNecessary() override;
203 void SetChildrenUseExtendedHitRegion() override; 203 void SetChildrenUseExtendedHitRegion() override;
204 void SetDescendantsStayInSameRootWindow(bool value) override; 204 void SetDescendantsStayInSameRootWindow(bool value) override;
205 void AddObserver(WmWindowObserver* observer) override; 205 void AddObserver(WmWindowObserver* observer) override;
206 void RemoveObserver(WmWindowObserver* observer) override; 206 void RemoveObserver(WmWindowObserver* observer) override;
207 207
208 private: 208 private:
209 // mus::WindowObserver: 209 // mus::WindowObserver:
210 void OnTreeChanging(const TreeChangeParams& params) override;
210 void OnTreeChanged(const TreeChangeParams& params) override; 211 void OnTreeChanged(const TreeChangeParams& params) override;
211 void OnWindowReordered(::mus::Window* window, 212 void OnWindowReordered(::mus::Window* window,
212 ::mus::Window* relative_window, 213 ::mus::Window* relative_window,
213 ::mus::mojom::OrderDirection direction) override; 214 ::mus::mojom::OrderDirection direction) override;
214 void OnWindowSharedPropertyChanged( 215 void OnWindowSharedPropertyChanged(
215 ::mus::Window* window, 216 ::mus::Window* window,
216 const std::string& name, 217 const std::string& name,
217 const std::vector<uint8_t>* old_data, 218 const std::vector<uint8_t>* old_data,
218 const std::vector<uint8_t>* new_data) override; 219 const std::vector<uint8_t>* new_data) override;
219 void OnWindowBoundsChanged(::mus::Window* window, 220 void OnWindowBoundsChanged(::mus::Window* window,
220 const gfx::Rect& old_bounds, 221 const gfx::Rect& old_bounds,
221 const gfx::Rect& new_bounds) override; 222 const gfx::Rect& new_bounds) override;
222 void OnWindowDestroying(::mus::Window* window) override; 223 void OnWindowDestroying(::mus::Window* window) override;
224 void OnWindowDestroyed(::mus::Window* window) override;
223 225
224 ::mus::Window* window_; 226 ::mus::Window* window_;
225 227
226 // The shell window id of this window. Shell window ids are defined in 228 // The shell window id of this window. Shell window ids are defined in
227 // ash/common/shell_window_ids.h. 229 // ash/common/shell_window_ids.h.
228 int shell_window_id_ = kShellWindowId_Invalid; 230 int shell_window_id_ = kShellWindowId_Invalid;
229 231
230 std::unique_ptr<wm::WindowState> window_state_; 232 std::unique_ptr<wm::WindowState> window_state_;
231 233
232 views::Widget* widget_ = nullptr; 234 views::Widget* widget_ = nullptr;
(...skipping 14 matching lines...) Expand all
247 // resizing easier. 249 // resizing easier.
248 bool children_use_extended_hit_region_ = false; 250 bool children_use_extended_hit_region_ = false;
249 251
250 DISALLOW_COPY_AND_ASSIGN(WmWindowMus); 252 DISALLOW_COPY_AND_ASSIGN(WmWindowMus);
251 }; 253 };
252 254
253 } // namespace mus 255 } // namespace mus
254 } // namespace ash 256 } // namespace ash
255 257
256 #endif // ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_ 258 #endif // ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_
OLDNEW
« no previous file with comments | « ash/mus/bridge/wm_shell_mus.cc ('k') | ash/mus/bridge/wm_window_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698