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

Side by Side Diff: ash/shell.cc

Issue 916423002: Tooltip Cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win build fix Created 5 years, 10 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 | « no previous file | chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc » ('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 9
10 #include "ash/accelerators/accelerator_controller.h" 10 #include "ash/accelerators/accelerator_controller.h"
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 partial_magnification_controller_.reset( 983 partial_magnification_controller_.reset(
984 new PartialMagnificationController()); 984 new PartialMagnificationController());
985 985
986 autoclick_controller_.reset(AutoclickController::CreateInstance()); 986 autoclick_controller_.reset(AutoclickController::CreateInstance());
987 987
988 high_contrast_controller_.reset(new HighContrastController); 988 high_contrast_controller_.reset(new HighContrastController);
989 video_detector_.reset(new VideoDetector); 989 video_detector_.reset(new VideoDetector);
990 window_selector_controller_.reset(new WindowSelectorController()); 990 window_selector_controller_.reset(new WindowSelectorController());
991 window_cycle_controller_.reset(new WindowCycleController()); 991 window_cycle_controller_.reset(new WindowCycleController());
992 992
993 tooltip_controller_.reset( 993 tooltip_controller_.reset(new views::corewm::TooltipController(
994 new views::corewm::TooltipController( 994 scoped_ptr<views::corewm::Tooltip>(new views::corewm::TooltipAura)));
995 scoped_ptr<views::corewm::Tooltip>(
996 new views::corewm::TooltipAura(gfx::SCREEN_TYPE_ALTERNATE))));
997 AddPreTargetHandler(tooltip_controller_.get()); 995 AddPreTargetHandler(tooltip_controller_.get());
998 996
999 event_client_.reset(new EventClientImpl); 997 event_client_.reset(new EventClientImpl);
1000 998
1001 // This controller needs to be set before SetupManagedWindowMode. 999 // This controller needs to be set before SetupManagedWindowMode.
1002 desktop_background_controller_.reset(new DesktopBackgroundController()); 1000 desktop_background_controller_.reset(new DesktopBackgroundController());
1003 user_wallpaper_delegate_.reset(delegate_->CreateUserWallpaperDelegate()); 1001 user_wallpaper_delegate_.reset(delegate_->CreateUserWallpaperDelegate());
1004 1002
1005 session_state_delegate_.reset(delegate_->CreateSessionStateDelegate()); 1003 session_state_delegate_.reset(delegate_->CreateSessionStateDelegate());
1006 accessibility_delegate_.reset(delegate_->CreateAccessibilityDelegate()); 1004 accessibility_delegate_.reset(delegate_->CreateAccessibilityDelegate());
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1165 //////////////////////////////////////////////////////////////////////////////// 1163 ////////////////////////////////////////////////////////////////////////////////
1166 // Shell, aura::client::ActivationChangeObserver implementation: 1164 // Shell, aura::client::ActivationChangeObserver implementation:
1167 1165
1168 void Shell::OnWindowActivated(aura::Window* gained_active, 1166 void Shell::OnWindowActivated(aura::Window* gained_active,
1169 aura::Window* lost_active) { 1167 aura::Window* lost_active) {
1170 if (gained_active) 1168 if (gained_active)
1171 target_root_window_ = gained_active->GetRootWindow(); 1169 target_root_window_ = gained_active->GetRootWindow();
1172 } 1170 }
1173 1171
1174 } // namespace ash 1172 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698