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

Side by Side Diff: chrome/browser/views/tabs/tab.cc

Issue 1132006: Move app/gfx/canvas and app/gfx/font to gfx/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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
« no previous file with comments | « chrome/browser/views/tabs/side_tab_strip.cc ('k') | chrome/browser/views/tabs/tab_renderer.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/views/tabs/tab.h" 5 #include "chrome/browser/views/tabs/tab.h"
6 6
7 #include "app/gfx/canvas.h"
8 #include "app/gfx/font.h"
9 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
10 #include "app/menus/simple_menu_model.h" 8 #include "app/menus/simple_menu_model.h"
11 #include "app/resource_bundle.h" 9 #include "app/resource_bundle.h"
12 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
13 #include "chrome/browser/tab_menu_model.h" 11 #include "chrome/browser/tab_menu_model.h"
14 #include "chrome/browser/views/frame/browser_view.h" 12 #include "chrome/browser/views/frame/browser_view.h"
15 #include "chrome/browser/views/tabs/tab_strip.h" 13 #include "chrome/browser/views/tabs/tab_strip.h"
14 #include "gfx/canvas.h"
15 #include "gfx/font.h"
16 #include "gfx/path.h" 16 #include "gfx/path.h"
17 #include "gfx/size.h" 17 #include "gfx/size.h"
18 #include "grit/generated_resources.h" 18 #include "grit/generated_resources.h"
19 #include "views/controls/menu/menu_2.h" 19 #include "views/controls/menu/menu_2.h"
20 #include "views/widget/tooltip_manager.h" 20 #include "views/widget/tooltip_manager.h"
21 #include "views/widget/widget.h" 21 #include "views/widget/widget.h"
22 22
23 const std::string Tab::kTabClassName = "browser/tabs/Tab"; 23 const std::string Tab::kTabClassName = "browser/tabs/Tab";
24 24
25 static const SkScalar kTabCapWidth = 15; 25 static const SkScalar kTabCapWidth = 15;
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 240
241 // Right end cap. 241 // Right end cap.
242 path->lineTo(w - kTabCapWidth + kTabTopCurveWidth, kTabTopCurveWidth); 242 path->lineTo(w - kTabCapWidth + kTabTopCurveWidth, kTabTopCurveWidth);
243 path->lineTo(w - kTabBottomCurveWidth, h - kTabBottomCurveWidth); 243 path->lineTo(w - kTabBottomCurveWidth, h - kTabBottomCurveWidth);
244 path->lineTo(w, h); 244 path->lineTo(w, h);
245 245
246 // Close out the path. 246 // Close out the path.
247 path->lineTo(0, h); 247 path->lineTo(0, h);
248 path->close(); 248 path->close();
249 } 249 }
OLDNEW
« no previous file with comments | « chrome/browser/views/tabs/side_tab_strip.cc ('k') | chrome/browser/views/tabs/tab_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698