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

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

Issue 9033007: Rename the aura_shell namespace to ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/tabbed_launcher_button.h" 5 #include "ash/launcher/tabbed_launcher_button.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "ash/launcher/launcher_button_host.h" 9 #include "ash/launcher/launcher_button_host.h"
10 #include "grit/ui_resources.h" 10 #include "grit/ui_resources.h"
11 #include "ui/base/animation/multi_animation.h" 11 #include "ui/base/animation/multi_animation.h"
12 #include "ui/base/resource/resource_bundle.h" 12 #include "ui/base/resource/resource_bundle.h"
13 #include "ui/gfx/canvas.h" 13 #include "ui/gfx/canvas.h"
14 #include "ui/gfx/image/image.h" 14 #include "ui/gfx/image/image.h"
15 #include "ui/gfx/insets.h" 15 #include "ui/gfx/insets.h"
16 16
17 namespace aura_shell { 17 namespace ash {
18 namespace internal { 18 namespace internal {
19 19
20 // The images drawn inside the background tab are drawn at this offset from 20 // The images drawn inside the background tab are drawn at this offset from
21 // the edge. 21 // the edge.
22 const int kBgImageContentInset = 12; 22 const int kBgImageContentInset = 12;
23 23
24 // Padding between each of the images. 24 // Padding between each of the images.
25 const int kImagePadding = 8; 25 const int kImagePadding = 8;
26 26
27 // Insets used in painting the background if it's rendered bigger than the size 27 // Insets used in painting the background if it's rendered bigger than the size
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 int hot_id) { 186 int hot_id) {
187 ImageSet* set = new ImageSet; 187 ImageSet* set = new ImageSet;
188 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); 188 ResourceBundle& rb = ResourceBundle::GetSharedInstance();
189 set->normal_image = new SkBitmap(*rb.GetImageNamed(normal_id).ToSkBitmap()); 189 set->normal_image = new SkBitmap(*rb.GetImageNamed(normal_id).ToSkBitmap());
190 set->pushed_image = new SkBitmap(*rb.GetImageNamed(pushed_id).ToSkBitmap()); 190 set->pushed_image = new SkBitmap(*rb.GetImageNamed(pushed_id).ToSkBitmap());
191 set->hot_image = new SkBitmap(*rb.GetImageNamed(hot_id).ToSkBitmap()); 191 set->hot_image = new SkBitmap(*rb.GetImageNamed(hot_id).ToSkBitmap());
192 return set; 192 return set;
193 } 193 }
194 194
195 } // namespace internal 195 } // namespace internal
196 } // namespace aura_shell 196 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698