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

Side by Side Diff: mash/simple_wm/simple_wm.cc

Issue 2759643003: Add system modals to the proper container in mus+ash. (Closed)
Patch Set: addressed feedback. Created 3 years, 9 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/simple_wm/simple_wm.h ('k') | services/ui/demo/mus_demo_internal.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 #include "mash/simple_wm/simple_wm.h" 5 #include "mash/simple_wm/simple_wm.h"
6 6
7 #include "base/observer_list.h" 7 #include "base/observer_list.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "mash/simple_wm/move_event_handler.h" 9 #include "mash/simple_wm/move_event_handler.h"
10 #include "ui/aura/client/aura_constants.h" 10 #include "ui/aura/client/aura_constants.h"
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 return false; 417 return false;
418 } 418 }
419 419
420 bool SimpleWM::OnWmSetProperty( 420 bool SimpleWM::OnWmSetProperty(
421 aura::Window* window, 421 aura::Window* window,
422 const std::string& name, 422 const std::string& name,
423 std::unique_ptr<std::vector<uint8_t>>* new_data) { 423 std::unique_ptr<std::vector<uint8_t>>* new_data) {
424 return true; 424 return true;
425 } 425 }
426 426
427 void SimpleWM::OnWmSetModalType(aura::Window* window, ui::ModalType type) {}
428
427 void SimpleWM::OnWmSetCanFocus(aura::Window* window, bool can_focus) {} 429 void SimpleWM::OnWmSetCanFocus(aura::Window* window, bool can_focus) {}
428 430
429 aura::Window* SimpleWM::OnWmCreateTopLevelWindow( 431 aura::Window* SimpleWM::OnWmCreateTopLevelWindow(
430 ui::mojom::WindowType window_type, 432 ui::mojom::WindowType window_type,
431 std::map<std::string, std::vector<uint8_t>>* properties) { 433 std::map<std::string, std::vector<uint8_t>>* properties) {
432 aura::Window* client_window = new aura::Window(nullptr); 434 aura::Window* client_window = new aura::Window(nullptr);
433 SetWindowType(client_window, window_type); 435 SetWindowType(client_window, window_type);
434 client_window->Init(ui::LAYER_NOT_DRAWN); 436 client_window->Init(ui::LAYER_NOT_DRAWN);
435 437
436 views::Widget* frame_widget = new views::Widget; 438 views::Widget* frame_widget = new views::Widget;
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 } 578 }
577 579
578 void SimpleWM::OnWindowListViewItemActivated(aura::Window* window) { 580 void SimpleWM::OnWindowListViewItemActivated(aura::Window* window) {
579 window->Show(); 581 window->Show();
580 aura::client::ActivationClient* activation_client = 582 aura::client::ActivationClient* activation_client =
581 aura::client::GetActivationClient(window->GetRootWindow()); 583 aura::client::GetActivationClient(window->GetRootWindow());
582 activation_client->ActivateWindow(window); 584 activation_client->ActivateWindow(window);
583 } 585 }
584 586
585 } // namespace simple_wm 587 } // namespace simple_wm
OLDNEW
« no previous file with comments | « mash/simple_wm/simple_wm.h ('k') | services/ui/demo/mus_demo_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698