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

Side by Side Diff: ash/launcher/launcher.cc

Issue 9808026: Layout panels on top of their launcher icons (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ununsed constanrs removed Created 8 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 | Annotate | Revision Log
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/launcher/launcher.h" 5 #include "ash/launcher/launcher.h"
6 6
7 #include "ash/focus_cycler.h" 7 #include "ash/focus_cycler.h"
8 #include "ash/launcher/launcher_delegate.h" 8 #include "ash/launcher/launcher_delegate.h"
9 #include "ash/launcher/launcher_model.h" 9 #include "ash/launcher/launcher_model.h"
10 #include "ash/launcher/launcher_view.h" 10 #include "ash/launcher/launcher_view.h"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 internal::LauncherView* Launcher::GetLauncherViewForTest() { 182 internal::LauncherView* Launcher::GetLauncherViewForTest() {
183 return static_cast<internal::LauncherView*>( 183 return static_cast<internal::LauncherView*>(
184 widget_->GetContentsView()->child_at(0)); 184 widget_->GetContentsView()->child_at(0));
185 } 185 }
186 186
187 void Launcher::UpdateBackground(int alpha) { 187 void Launcher::UpdateBackground(int alpha) {
188 ui::Layer* layer = widget_->GetNativeView()->layer(); 188 ui::Layer* layer = widget_->GetNativeView()->layer();
189 layer->SetColor(SkColorSetARGB(alpha, 0, 0, 0)); 189 layer->SetColor(SkColorSetARGB(alpha, 0, 0, 0));
190 } 190 }
191 191
192 void Launcher::AddIconsObserver(LauncherIconsObserver* observer) {
sky 2012/03/23 21:41:14 Fix the order to match the header.
193 launcher_view_->AddIconsObserver(observer);
194 }
195
196 void Launcher::RemoveIconsObserver(LauncherIconsObserver* observer) {
197 launcher_view_->RemoveIconsObserver(observer);
198 }
199
192 } // namespace ash 200 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698