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

Side by Side Diff: chrome/browser/ui/views/infobars/infobar_view.cc

Issue 2000403003: [forbots] IWYU for ax_enums.h Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/infobars/infobar_view.h" 5 #include "chrome/browser/ui/views/infobars/infobar_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "chrome/browser/ui/infobar_container_delegate.h" 13 #include "chrome/browser/ui/infobar_container_delegate.h"
14 #include "chrome/browser/ui/views/bar_control_button.h" 14 #include "chrome/browser/ui/views/bar_control_button.h"
15 #include "chrome/browser/ui/views/infobars/infobar_background.h" 15 #include "chrome/browser/ui/views/infobars/infobar_background.h"
16 #include "chrome/grit/generated_resources.h" 16 #include "chrome/grit/generated_resources.h"
17 #include "components/infobars/core/infobar_delegate.h" 17 #include "components/infobars/core/infobar_delegate.h"
18 #include "grit/components_strings.h" 18 #include "grit/components_strings.h"
19 #include "grit/theme_resources.h" 19 #include "grit/theme_resources.h"
20 #include "third_party/skia/include/effects/SkGradientShader.h" 20 #include "third_party/skia/include/effects/SkGradientShader.h"
21 #include "ui/accessibility/ax_enums.h"
21 #include "ui/accessibility/ax_view_state.h" 22 #include "ui/accessibility/ax_view_state.h"
22 #include "ui/base/l10n/l10n_util.h" 23 #include "ui/base/l10n/l10n_util.h"
23 #include "ui/base/material_design/material_design_controller.h" 24 #include "ui/base/material_design/material_design_controller.h"
24 #include "ui/base/resource/resource_bundle.h" 25 #include "ui/base/resource/resource_bundle.h"
25 #include "ui/gfx/canvas.h" 26 #include "ui/gfx/canvas.h"
26 #include "ui/gfx/color_palette.h" 27 #include "ui/gfx/color_palette.h"
27 #include "ui/gfx/image/image.h" 28 #include "ui/gfx/image/image.h"
28 #include "ui/gfx/paint_vector_icon.h" 29 #include "ui/gfx/paint_vector_icon.h"
29 #include "ui/gfx/vector_icons_public.h" 30 #include "ui/gfx/vector_icons_public.h"
30 #include "ui/native_theme/common_theme.h" 31 #include "ui/native_theme/common_theme.h"
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 } 438 }
438 439
439 bool InfoBarView::DoesIntersectRect(const View* target, 440 bool InfoBarView::DoesIntersectRect(const View* target,
440 const gfx::Rect& rect) const { 441 const gfx::Rect& rect) const {
441 DCHECK_EQ(this, target); 442 DCHECK_EQ(this, target);
442 // Only events that intersect the portion below the arrow are interesting. 443 // Only events that intersect the portion below the arrow are interesting.
443 gfx::Rect non_arrow_bounds = GetLocalBounds(); 444 gfx::Rect non_arrow_bounds = GetLocalBounds();
444 non_arrow_bounds.Inset(0, arrow_height(), 0, 0); 445 non_arrow_bounds.Inset(0, arrow_height(), 0, 0);
445 return rect.Intersects(non_arrow_bounds); 446 return rect.Intersects(non_arrow_bounds);
446 } 447 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/infobars/infobar_container_view.cc ('k') | chrome/browser/ui/views/location_bar/bubble_icon_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698