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

Side by Side Diff: chrome/browser/ui/views/tabs/side_tab_strip.cc

Issue 6263008: Move ResourceBundle, DataPack to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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
« no previous file with comments | « chrome/browser/ui/views/tabs/side_tab.cc ('k') | chrome/browser/ui/views/tabs/tab.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) 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 "chrome/browser/ui/views/tabs/side_tab_strip.h" 5 #include "chrome/browser/ui/views/tabs/side_tab_strip.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h"
9 #include "chrome/browser/ui/view_ids.h" 8 #include "chrome/browser/ui/view_ids.h"
10 #include "chrome/browser/ui/views/tabs/side_tab.h" 9 #include "chrome/browser/ui/views/tabs/side_tab.h"
11 #include "chrome/browser/ui/views/tabs/tab_strip_controller.h" 10 #include "chrome/browser/ui/views/tabs/tab_strip_controller.h"
12 #include "gfx/canvas.h" 11 #include "gfx/canvas.h"
13 #include "grit/generated_resources.h" 12 #include "grit/generated_resources.h"
14 #include "grit/theme_resources.h" 13 #include "grit/theme_resources.h"
14 #include "ui/base/resource/resource_bundle.h"
15 #include "views/background.h" 15 #include "views/background.h"
16 #include "views/controls/button/image_button.h" 16 #include "views/controls/button/image_button.h"
17 17
18 namespace { 18 namespace {
19 const int kVerticalTabSpacing = 2; 19 const int kVerticalTabSpacing = 2;
20 const int kTabStripWidth = 140; 20 const int kTabStripWidth = 140;
21 const SkColor kBackgroundColor = SkColorSetARGB(255, 209, 220, 248); 21 const SkColor kBackgroundColor = SkColorSetARGB(255, 209, 220, 248);
22 const SkColor kSeparatorColor = SkColorSetARGB(255, 151, 159, 179); 22 const SkColor kSeparatorColor = SkColorSetARGB(255, 151, 159, 179);
23 23
24 // Height of the separator. 24 // Height of the separator.
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 bounds_animator().AnimateViewTo(separator_, separator_bounds_); 243 bounds_animator().AnimateViewTo(separator_, separator_bounds_);
244 } 244 }
245 245
246 void SideTabStrip::DoLayout() { 246 void SideTabStrip::DoLayout() {
247 BaseTabStrip::DoLayout(); 247 BaseTabStrip::DoLayout();
248 248
249 newtab_button_->SetBounds(newtab_button_bounds_); 249 newtab_button_->SetBounds(newtab_button_bounds_);
250 250
251 separator_->SetBounds(separator_bounds_); 251 separator_->SetBounds(separator_bounds_);
252 } 252 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/side_tab.cc ('k') | chrome/browser/ui/views/tabs/tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698