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

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

Issue 2001623003: Splits ToplevelWindowEventHandler into two (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix gyp Created 4 years, 7 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_window_mus.h ('k') | no next file » | 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 #include "mash/wm/bridge/wm_window_mus.h" 5 #include "mash/wm/bridge/wm_window_mus.h"
6 6
7 #include "ash/wm/common/container_finder.h" 7 #include "ash/wm/common/container_finder.h"
8 #include "ash/wm/common/window_state.h" 8 #include "ash/wm/common/window_state.h"
9 #include "ash/wm/common/wm_layout_manager.h" 9 #include "ash/wm/common/wm_layout_manager.h"
10 #include "ash/wm/common/wm_window_observer.h" 10 #include "ash/wm/common/wm_window_observer.h"
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 if (id == shell_window_id_) 545 if (id == shell_window_id_)
546 return this; 546 return this;
547 for (mus::Window* child : window_->children()) { 547 for (mus::Window* child : window_->children()) {
548 ash::wm::WmWindow* result = Get(child)->GetChildByShellWindowId(id); 548 ash::wm::WmWindow* result = Get(child)->GetChildByShellWindowId(id);
549 if (result) 549 if (result)
550 return result; 550 return result;
551 } 551 }
552 return nullptr; 552 return nullptr;
553 } 553 }
554 554
555 void WmWindowMus::ShowResizeShadow(int component) {
556 NOTIMPLEMENTED();
557 }
558
559 void WmWindowMus::HideResizeShadow() {
560 NOTIMPLEMENTED();
561 }
562
555 void WmWindowMus::SnapToPixelBoundaryIfNecessary() { 563 void WmWindowMus::SnapToPixelBoundaryIfNecessary() {
556 NOTIMPLEMENTED(); 564 NOTIMPLEMENTED();
557 } 565 }
558 566
559 void WmWindowMus::AddObserver(ash::wm::WmWindowObserver* observer) { 567 void WmWindowMus::AddObserver(ash::wm::WmWindowObserver* observer) {
560 observers_.AddObserver(observer); 568 observers_.AddObserver(observer);
561 } 569 }
562 570
563 void WmWindowMus::RemoveObserver(ash::wm::WmWindowObserver* observer) { 571 void WmWindowMus::RemoveObserver(ash::wm::WmWindowObserver* observer) {
564 observers_.RemoveObserver(observer); 572 observers_.RemoveObserver(observer);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 OnWindowBoundsChanged(this, old_bounds, new_bounds)); 615 OnWindowBoundsChanged(this, old_bounds, new_bounds));
608 } 616 }
609 617
610 void WmWindowMus::OnWindowDestroying(mus::Window* window) { 618 void WmWindowMus::OnWindowDestroying(mus::Window* window) {
611 FOR_EACH_OBSERVER(ash::wm::WmWindowObserver, observers_, 619 FOR_EACH_OBSERVER(ash::wm::WmWindowObserver, observers_,
612 OnWindowDestroying(this)); 620 OnWindowDestroying(this));
613 } 621 }
614 622
615 } // namespace wm 623 } // namespace wm
616 } // namespace mash 624 } // namespace mash
OLDNEW
« no previous file with comments | « mash/wm/bridge/wm_window_mus.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698