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

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

Issue 24011: chrome_resources take 2 (Closed)
Patch Set: rebase Created 11 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 | « chrome/browser/views/tabs/tab_renderer.cc ('k') | chrome/browser/views/toolbar_star_toggle.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_strip.h" 5 #include "chrome/browser/views/tabs/tab_strip.h"
6 6
7 #include "base/gfx/size.h" 7 #include "base/gfx/size.h"
8 #include "chrome/app/theme/theme_resources.h" 8 #include "grit/theme_resources.h"
9 #include "chrome/browser/metrics/user_metrics.h" 9 #include "chrome/browser/metrics/user_metrics.h"
10 #include "chrome/browser/profile.h" 10 #include "chrome/browser/profile.h"
11 #include "chrome/browser/tab_contents/tab_contents.h" 11 #include "chrome/browser/tab_contents/tab_contents.h"
12 #include "chrome/browser/tabs/tab_strip_model.h" 12 #include "chrome/browser/tabs/tab_strip_model.h"
13 #include "chrome/browser/view_ids.h" 13 #include "chrome/browser/view_ids.h"
14 #include "chrome/browser/views/tabs/dragged_tab_controller.h" 14 #include "chrome/browser/views/tabs/dragged_tab_controller.h"
15 #include "chrome/browser/views/tabs/tab.h" 15 #include "chrome/browser/views/tabs/tab.h"
16 #include "chrome/browser/tab_contents/web_contents.h" 16 #include "chrome/browser/tab_contents/web_contents.h"
17 #include "chrome/common/drag_drop_types.h" 17 #include "chrome/common/drag_drop_types.h"
18 #include "chrome/common/gfx/chrome_canvas.h" 18 #include "chrome/common/gfx/chrome_canvas.h"
(...skipping 1514 matching lines...) Expand 10 before | Expand all | Expand 10 after
1533 return last_tab->x() + last_tab->width(); 1533 return last_tab->x() + last_tab->width();
1534 } 1534 }
1535 1535
1536 bool TabStrip::IsPointInTab(Tab* tab, 1536 bool TabStrip::IsPointInTab(Tab* tab,
1537 const gfx::Point& point_in_tabstrip_coords) { 1537 const gfx::Point& point_in_tabstrip_coords) {
1538 gfx::Point point_in_tab_coords(point_in_tabstrip_coords); 1538 gfx::Point point_in_tab_coords(point_in_tabstrip_coords);
1539 View::ConvertPointToView(this, tab, &point_in_tab_coords); 1539 View::ConvertPointToView(this, tab, &point_in_tab_coords);
1540 return tab->HitTest(point_in_tab_coords); 1540 return tab->HitTest(point_in_tab_coords);
1541 } 1541 }
1542 1542
OLDNEW
« no previous file with comments | « chrome/browser/views/tabs/tab_renderer.cc ('k') | chrome/browser/views/toolbar_star_toggle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698