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

Side by Side Diff: mash/wm/bridge/wm_window_mus.h

Issue 2025413002: Moves RootWindowControllerCommon and LayoutManager to common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use_root_window_controller_common
Patch Set: merge 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 | « mash/wm/bridge/wm_globals_mus.cc ('k') | mash/wm/container_ids.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 MASH_WM_BRIDGE_WM_WINDOW_MUS_H_ 5 #ifndef MASH_WM_BRIDGE_WM_WINDOW_MUS_H_
6 #define MASH_WM_BRIDGE_WM_WINDOW_MUS_H_ 6 #define MASH_WM_BRIDGE_WM_WINDOW_MUS_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/common/wm/wm_window.h" 10 #include "ash/common/wm/wm_window.h"
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 const std::vector<uint8_t>* old_data, 221 const std::vector<uint8_t>* old_data,
222 const std::vector<uint8_t>* new_data) override; 222 const std::vector<uint8_t>* new_data) override;
223 void OnWindowBoundsChanged(mus::Window* window, 223 void OnWindowBoundsChanged(mus::Window* window,
224 const gfx::Rect& old_bounds, 224 const gfx::Rect& old_bounds,
225 const gfx::Rect& new_bounds) override; 225 const gfx::Rect& new_bounds) override;
226 void OnWindowDestroying(mus::Window* window) override; 226 void OnWindowDestroying(mus::Window* window) override;
227 227
228 mus::Window* window_; 228 mus::Window* window_;
229 229
230 // The shell window id of this window. Shell window ids are defined in 230 // The shell window id of this window. Shell window ids are defined in
231 // ash/common/wm/wm_shell_window_ids.h. 231 // ash/common/shell_window_ids.h.
232 int shell_window_id_ = -1; 232 int shell_window_id_ = -1;
233 233
234 std::unique_ptr<ash::wm::WindowState> window_state_; 234 std::unique_ptr<ash::wm::WindowState> window_state_;
235 235
236 views::Widget* widget_ = nullptr; 236 views::Widget* widget_ = nullptr;
237 237
238 WidgetCreationType widget_creation_type_ = WidgetCreationType::INTERNAL; 238 WidgetCreationType widget_creation_type_ = WidgetCreationType::INTERNAL;
239 239
240 base::ObserverList<ash::wm::WmWindowObserver> observers_; 240 base::ObserverList<ash::wm::WmWindowObserver> observers_;
241 241
242 std::unique_ptr<MusLayoutManagerAdapter> layout_manager_adapter_; 242 std::unique_ptr<MusLayoutManagerAdapter> layout_manager_adapter_;
243 243
244 std::unique_ptr<gfx::Rect> restore_bounds_in_screen_; 244 std::unique_ptr<gfx::Rect> restore_bounds_in_screen_;
245 245
246 ui::WindowShowState restore_show_state_ = ui::SHOW_STATE_DEFAULT; 246 ui::WindowShowState restore_show_state_ = ui::SHOW_STATE_DEFAULT;
247 247
248 bool snap_children_to_pixel_boundary_ = false; 248 bool snap_children_to_pixel_boundary_ = false;
249 249
250 // If true child windows should get a slightly larger hit region to make 250 // If true child windows should get a slightly larger hit region to make
251 // resizing easier. 251 // resizing easier.
252 bool children_use_extended_hit_region_ = false; 252 bool children_use_extended_hit_region_ = false;
253 253
254 DISALLOW_COPY_AND_ASSIGN(WmWindowMus); 254 DISALLOW_COPY_AND_ASSIGN(WmWindowMus);
255 }; 255 };
256 256
257 } // namespace wm 257 } // namespace wm
258 } // namespace mash 258 } // namespace mash
259 259
260 #endif // MASH_WM_BRIDGE_WM_WINDOW_MUS_H_ 260 #endif // MASH_WM_BRIDGE_WM_WINDOW_MUS_H_
OLDNEW
« no previous file with comments | « mash/wm/bridge/wm_globals_mus.cc ('k') | mash/wm/container_ids.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698