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

Side by Side Diff: ash/shell.cc

Issue 2910773002: cros: CustomFrameViewAsh avatar icon from a window prop (Closed)
Patch Set: add test 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/shell_delegate_impl.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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #include "ash/login_status.h" 47 #include "ash/login_status.h"
48 #include "ash/magnifier/magnification_controller.h" 48 #include "ash/magnifier/magnification_controller.h"
49 #include "ash/magnifier/partial_magnification_controller.h" 49 #include "ash/magnifier/partial_magnification_controller.h"
50 #include "ash/media_controller.h" 50 #include "ash/media_controller.h"
51 #include "ash/new_window_controller.h" 51 #include "ash/new_window_controller.h"
52 #include "ash/palette_delegate.h" 52 #include "ash/palette_delegate.h"
53 #include "ash/public/cpp/config.h" 53 #include "ash/public/cpp/config.h"
54 #include "ash/public/cpp/shell_window_ids.h" 54 #include "ash/public/cpp/shell_window_ids.h"
55 #include "ash/root_window_controller.h" 55 #include "ash/root_window_controller.h"
56 #include "ash/session/session_controller.h" 56 #include "ash/session/session_controller.h"
57 #include "ash/session/session_state_delegate.h"
58 #include "ash/shelf/shelf.h" 57 #include "ash/shelf/shelf.h"
59 #include "ash/shelf/shelf_controller.h" 58 #include "ash/shelf/shelf_controller.h"
60 #include "ash/shelf/shelf_model.h" 59 #include "ash/shelf/shelf_model.h"
61 #include "ash/shelf/shelf_window_watcher.h" 60 #include "ash/shelf/shelf_window_watcher.h"
62 #include "ash/shell_delegate.h" 61 #include "ash/shell_delegate.h"
63 #include "ash/shell_init_params.h" 62 #include "ash/shell_init_params.h"
64 #include "ash/shell_observer.h" 63 #include "ash/shell_observer.h"
65 #include "ash/shell_port.h" 64 #include "ash/shell_port.h"
66 #include "ash/shutdown_controller.h" 65 #include "ash/shutdown_controller.h"
67 #include "ash/sticky_keys/sticky_keys_controller.h" 66 #include "ash/sticky_keys/sticky_keys_controller.h"
(...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after
1034 1033
1035 tooltip_controller_.reset(new views::corewm::TooltipController( 1034 tooltip_controller_.reset(new views::corewm::TooltipController(
1036 std::unique_ptr<views::corewm::Tooltip>(new views::corewm::TooltipAura))); 1035 std::unique_ptr<views::corewm::Tooltip>(new views::corewm::TooltipAura)));
1037 AddPreTargetHandler(tooltip_controller_.get()); 1036 AddPreTargetHandler(tooltip_controller_.get());
1038 1037
1039 modality_filter_.reset(new SystemModalContainerEventFilter(this)); 1038 modality_filter_.reset(new SystemModalContainerEventFilter(this));
1040 AddPreTargetHandler(modality_filter_.get()); 1039 AddPreTargetHandler(modality_filter_.get());
1041 1040
1042 event_client_.reset(new EventClientImpl); 1041 event_client_.reset(new EventClientImpl);
1043 1042
1044 session_state_delegate_.reset(shell_delegate_->CreateSessionStateDelegate());
1045 // Must occur after Shell has installed its early pre-target handlers (for 1043 // Must occur after Shell has installed its early pre-target handlers (for
1046 // example, WindowModalityController). 1044 // example, WindowModalityController).
1047 shell_port_->CreatePointerWatcherAdapter(); 1045 shell_port_->CreatePointerWatcherAdapter();
1048 1046
1049 resize_shadow_controller_.reset(new ResizeShadowController()); 1047 resize_shadow_controller_.reset(new ResizeShadowController());
1050 shadow_controller_.reset(new ::wm::ShadowController(focus_controller_.get())); 1048 shadow_controller_.reset(new ::wm::ShadowController(focus_controller_.get()));
1051 1049
1052 SetSystemTrayDelegate( 1050 SetSystemTrayDelegate(
1053 base::WrapUnique(shell_delegate_->CreateSystemTrayDelegate())); 1051 base::WrapUnique(shell_delegate_->CreateSystemTrayDelegate()));
1054 1052
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
1268 void Shell::OnPrefServiceInitialized( 1266 void Shell::OnPrefServiceInitialized(
1269 std::unique_ptr<::PrefService> pref_service) { 1267 std::unique_ptr<::PrefService> pref_service) {
1270 if (!instance_) 1268 if (!instance_)
1271 return; 1269 return;
1272 // |pref_service_| is null if can't connect to Chrome (as happens when 1270 // |pref_service_| is null if can't connect to Chrome (as happens when
1273 // running mash outside of chrome --mash and chrome isn't built). 1271 // running mash outside of chrome --mash and chrome isn't built).
1274 pref_service_ = std::move(pref_service); 1272 pref_service_ = std::move(pref_service);
1275 } 1273 }
1276 1274
1277 } // namespace ash 1275 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shell.h ('k') | ash/shell/shell_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698