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

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

Issue 2849953004: SV Test
Patch Set: Created 3 years, 7 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
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 "chrome/browser/ui/views/tabs/tab_strip.h" 5 #include "chrome/browser/ui/views/tabs/tab_strip.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <iterator> 10 #include <iterator>
(...skipping 30 matching lines...) Expand all
41 #include "third_party/skia/include/effects/SkBlurMaskFilter.h" 41 #include "third_party/skia/include/effects/SkBlurMaskFilter.h"
42 #include "third_party/skia/include/effects/SkLayerDrawLooper.h" 42 #include "third_party/skia/include/effects/SkLayerDrawLooper.h"
43 #include "third_party/skia/include/pathops/SkPathOps.h" 43 #include "third_party/skia/include/pathops/SkPathOps.h"
44 #include "ui/accessibility/ax_node_data.h" 44 #include "ui/accessibility/ax_node_data.h"
45 #include "ui/base/default_theme_provider.h" 45 #include "ui/base/default_theme_provider.h"
46 #include "ui/base/dragdrop/drag_drop_types.h" 46 #include "ui/base/dragdrop/drag_drop_types.h"
47 #include "ui/base/l10n/l10n_util.h" 47 #include "ui/base/l10n/l10n_util.h"
48 #include "ui/base/models/list_selection_model.h" 48 #include "ui/base/models/list_selection_model.h"
49 #include "ui/base/resource/resource_bundle.h" 49 #include "ui/base/resource/resource_bundle.h"
50 #include "ui/compositor/compositing_recorder.h" 50 #include "ui/compositor/compositing_recorder.h"
51 #include "ui/compositor/paint_context.h"
51 #include "ui/compositor/paint_recorder.h" 52 #include "ui/compositor/paint_recorder.h"
52 #include "ui/display/display.h" 53 #include "ui/display/display.h"
53 #include "ui/display/screen.h" 54 #include "ui/display/screen.h"
54 #include "ui/gfx/animation/animation_container.h" 55 #include "ui/gfx/animation/animation_container.h"
55 #include "ui/gfx/animation/throb_animation.h" 56 #include "ui/gfx/animation/throb_animation.h"
56 #include "ui/gfx/canvas.h" 57 #include "ui/gfx/canvas.h"
57 #include "ui/gfx/geometry/rect_conversions.h" 58 #include "ui/gfx/geometry/rect_conversions.h"
58 #include "ui/gfx/geometry/size.h" 59 #include "ui/gfx/geometry/size.h"
59 #include "ui/gfx/image/image_skia.h" 60 #include "ui/gfx/image/image_skia.h"
60 #include "ui/gfx/image/image_skia_operations.h" 61 #include "ui/gfx/image/image_skia_operations.h"
(...skipping 1387 matching lines...) Expand 10 before | Expand all | Expand 10 after
1448 } 1449 }
1449 1450
1450 // And the dragged tabs. 1451 // And the dragged tabs.
1451 for (size_t i = 0; i < tabs_dragging.size(); ++i) 1452 for (size_t i = 0; i < tabs_dragging.size(); ++i)
1452 tabs_dragging[i]->Paint(context); 1453 tabs_dragging[i]->Paint(context);
1453 1454
1454 // If the active tab is being dragged, it goes last. 1455 // If the active tab is being dragged, it goes last.
1455 if (active_tab && is_dragging) 1456 if (active_tab && is_dragging)
1456 active_tab->Paint(context); 1457 active_tab->Paint(context);
1457 1458
1458 ui::PaintRecorder recorder(context, size()); 1459 ui::PaintRecorder recorder(context, context.pixel_size(), nullptr, true);
1459 gfx::Canvas* canvas = recorder.canvas(); 1460 gfx::Canvas* canvas = recorder.canvas();
1460 if (active_tab) { 1461 if (active_tab) {
1461 canvas->sk_canvas()->clipRect( 1462 canvas->sk_canvas()->clipRect(
1462 gfx::RectToSkRect(active_tab->GetMirroredBounds()), 1463 gfx::RectToSkRect(active_tab->GetMirroredBounds()),
1463 SkClipOp::kDifference); 1464 SkClipOp::kDifference);
1464 } 1465 }
1465 BrowserView::Paint1pxHorizontalLine(canvas, GetToolbarTopSeparatorColor(), 1466 BrowserView::Paint1pxHorizontalLine(canvas, GetToolbarTopSeparatorColor(),
1466 GetLocalBounds(), true); 1467 GetLocalBounds(), true);
1467 } 1468 }
1468 1469
(...skipping 1312 matching lines...) Expand 10 before | Expand all | Expand 10 after
2781 ConvertPointToViewAndGetEventHandler(this, newtab_button_, point); 2782 ConvertPointToViewAndGetEventHandler(this, newtab_button_, point);
2782 if (view) 2783 if (view)
2783 return view; 2784 return view;
2784 } 2785 }
2785 Tab* tab = FindTabForEvent(point); 2786 Tab* tab = FindTabForEvent(point);
2786 if (tab) 2787 if (tab)
2787 return ConvertPointToViewAndGetEventHandler(this, tab, point); 2788 return ConvertPointToViewAndGetEventHandler(this, tab, point);
2788 } 2789 }
2789 return this; 2790 return this;
2790 } 2791 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc ('k') | chrome/common/chrome_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698