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

Unified Diff: mash/wm/window_manager.cc

Issue 1980593002: Changes container names and adds a couple of more (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include 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 side-by-side diff with in-line comments
Download patch
Index: mash/wm/window_manager.cc
diff --git a/mash/wm/window_manager.cc b/mash/wm/window_manager.cc
index e2c1379e6a6e7bcd96253ef37c3b3d5c06995a71..4e3e9b0a69bc44e099cf7f3be4705a65a9be0031 100644
--- a/mash/wm/window_manager.cc
+++ b/mash/wm/window_manager.cc
@@ -41,8 +41,8 @@ void WindowManager::Initialize(RootWindowController* root_controller,
// Observe all the containers so that windows can be added to/removed from the
// |disconnected_app_handler_|.
int count = static_cast<int>(mojom::Container::COUNT);
- for (int id = static_cast<int>(mojom::Container::ROOT) + 1; id < count;
- ++id) {
+ for (int id = static_cast<int>(mojom::Container::ROOT_CONTAINER) + 1;
+ id < count; ++id) {
mus::Window* container = root_controller_->GetWindowForContainer(
static_cast<mojom::Container>(id));
Add(container);
@@ -175,9 +175,9 @@ void WindowManager::OnAccelerator(uint32_t id, const ui::Event& event) {
}
void WindowManager::ScreenlockStateChanged(bool locked) {
- // Hide USER_PRIVATE windows when the screen is locked.
+ // Hide USER_PRIVATE_CONTAINER windows when the screen is locked.
mus::Window* window = root_controller_->GetWindowForContainer(
- mash::wm::mojom::Container::USER_PRIVATE);
+ mash::wm::mojom::Container::USER_PRIVATE_CONTAINER);
window->SetVisible(!locked);
}
« mash/wm/root_window_controller.cc ('K') | « mash/wm/user_window_controller_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698