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

Side by Side Diff: ash/shell.cc

Issue 2934673002: Revert of Draggable peeking/fullscreen launcher with transparent background. (Closed)
Patch Set: Created 3 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/shell.h ('k') | ash/shell_observer.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ash/shell.h" 5 #include "ash/shell.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 void Shell::NotifyShelfAutoHideBehaviorChanged(aura::Window* root_window) { 546 void Shell::NotifyShelfAutoHideBehaviorChanged(aura::Window* root_window) {
547 for (auto& observer : shell_observers_) 547 for (auto& observer : shell_observers_)
548 observer.OnShelfAutoHideBehaviorChanged(root_window); 548 observer.OnShelfAutoHideBehaviorChanged(root_window);
549 } 549 }
550 550
551 // static 551 // static
552 void Shell::SetIsBrowserProcessWithMash() { 552 void Shell::SetIsBrowserProcessWithMash() {
553 g_is_browser_process_with_mash = true; 553 g_is_browser_process_with_mash = true;
554 } 554 }
555 555
556 void Shell::OnAppListVisibilityChanged(bool visible,
557 aura::Window* root_window) {
558 for (auto& observer : shell_observers_)
559 observer.OnAppListVisibilityChanged(visible, root_window);
560 }
561
562 //////////////////////////////////////////////////////////////////////////////// 556 ////////////////////////////////////////////////////////////////////////////////
563 // Shell, private: 557 // Shell, private:
564 558
565 Shell::Shell(std::unique_ptr<ShellDelegate> shell_delegate, 559 Shell::Shell(std::unique_ptr<ShellDelegate> shell_delegate,
566 std::unique_ptr<ShellPort> shell_port) 560 std::unique_ptr<ShellPort> shell_port)
567 : shell_port_(std::move(shell_port)), 561 : shell_port_(std::move(shell_port)),
568 ash_display_controller_(base::MakeUnique<AshDisplayController>()), 562 ash_display_controller_(base::MakeUnique<AshDisplayController>()),
569 brightness_control_delegate_( 563 brightness_control_delegate_(
570 base::MakeUnique<system::BrightnessControllerChromeos>()), 564 base::MakeUnique<system::BrightnessControllerChromeos>()),
571 cast_config_(base::MakeUnique<CastConfigController>()), 565 cast_config_(base::MakeUnique<CastConfigController>()),
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 ? kChromeOsBootColor 906 ? kChromeOsBootColor
913 : 0); 907 : 0);
914 display_initialized = true; 908 display_initialized = true;
915 } 909 }
916 display_color_manager_.reset(new DisplayColorManager( 910 display_color_manager_.reset(new DisplayColorManager(
917 display_configurator_.get(), init_params.blocking_pool)); 911 display_configurator_.get(), init_params.blocking_pool));
918 912
919 if (!display_initialized) 913 if (!display_initialized)
920 display_manager_->InitDefaultDisplay(); 914 display_manager_->InitDefaultDisplay();
921 915
922 if (config == Config::CLASSIC) { 916 // TODO(sky): move this to chrome for mash. http://crbug.com/729824.
917 if (ShouldEnableSimplifiedDisplayManagement())
923 display_manager_->RefreshFontParams(); 918 display_manager_->RefreshFontParams();
924 919
920 if (config == Config::CLASSIC) {
925 aura::Env::GetInstance()->set_context_factory(init_params.context_factory); 921 aura::Env::GetInstance()->set_context_factory(init_params.context_factory);
926 aura::Env::GetInstance()->set_context_factory_private( 922 aura::Env::GetInstance()->set_context_factory_private(
927 init_params.context_factory_private); 923 init_params.context_factory_private);
928 } 924 }
929 925
930 // The WindowModalityController needs to be at the front of the input event 926 // The WindowModalityController needs to be at the front of the input event
931 // pretarget handler list to ensure that it processes input events when modal 927 // pretarget handler list to ensure that it processes input events when modal
932 // windows are active. 928 // windows are active.
933 window_modality_controller_.reset(new ::wm::WindowModalityController(this)); 929 window_modality_controller_.reset(new ::wm::WindowModalityController(this));
934 930
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 void Shell::OnPrefServiceInitialized( 1274 void Shell::OnPrefServiceInitialized(
1279 std::unique_ptr<::PrefService> pref_service) { 1275 std::unique_ptr<::PrefService> pref_service) {
1280 if (!instance_) 1276 if (!instance_)
1281 return; 1277 return;
1282 // |pref_service_| is null if can't connect to Chrome (as happens when 1278 // |pref_service_| is null if can't connect to Chrome (as happens when
1283 // running mash outside of chrome --mash and chrome isn't built). 1279 // running mash outside of chrome --mash and chrome isn't built).
1284 pref_service_ = std::move(pref_service); 1280 pref_service_ = std::move(pref_service);
1285 } 1281 }
1286 1282
1287 } // namespace ash 1283 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shell.h ('k') | ash/shell_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698