OLD | NEW |
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 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "components/infobars/core/infobar.h" | 10 #include "components/infobars/core/infobar.h" |
11 #include "components/infobars/core/infobar_container.h" | 11 #include "components/infobars/core/infobar_container.h" |
12 #include "third_party/skia/include/core/SkPath.h" | 12 #include "third_party/skia/include/core/SkPath.h" |
13 #include "ui/views/controls/button/button.h" | 13 #include "ui/views/controls/button/button.h" |
14 #include "ui/views/controls/button/vector_icon_button_delegate.h" | 14 #include "ui/views/controls/button/vector_icon_button_delegate.h" |
15 #include "ui/views/controls/menu/menu_types.h" | 15 #include "ui/views/controls/menu/menu_types.h" |
16 #include "ui/views/focus/external_focus_tracker.h" | 16 #include "ui/views/focus/external_focus_tracker.h" |
17 #include "ui/views/view_targeter_delegate.h" | 17 #include "ui/views/view_targeter_delegate.h" |
18 | 18 |
19 namespace ui { | |
20 class MenuModel; | |
21 } | |
22 | |
23 namespace views { | 19 namespace views { |
24 class ImageView; | 20 class ImageView; |
25 class Label; | 21 class Label; |
26 class LabelButton; | |
27 class Link; | 22 class Link; |
28 class LinkListener; | 23 class LinkListener; |
29 class MenuButton; | |
30 class MenuRunner; | 24 class MenuRunner; |
31 class VectorIconButton; | 25 class VectorIconButton; |
32 } // namespace views | 26 } // namespace views |
33 | 27 |
34 class InfoBarView : public infobars::InfoBar, | 28 class InfoBarView : public infobars::InfoBar, |
35 public views::View, | 29 public views::View, |
36 public views::VectorIconButtonDelegate, | 30 public views::VectorIconButtonDelegate, |
37 public views::ExternalFocusTracker, | 31 public views::ExternalFocusTracker, |
38 public views::ViewTargeterDelegate { | 32 public views::ViewTargeterDelegate { |
39 public: | 33 public: |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 // The close button at the right edge of the InfoBar. | 120 // The close button at the right edge of the InfoBar. |
127 views::VectorIconButton* close_button_; | 121 views::VectorIconButton* close_button_; |
128 | 122 |
129 // Used to run the menu. | 123 // Used to run the menu. |
130 std::unique_ptr<views::MenuRunner> menu_runner_; | 124 std::unique_ptr<views::MenuRunner> menu_runner_; |
131 | 125 |
132 DISALLOW_COPY_AND_ASSIGN(InfoBarView); | 126 DISALLOW_COPY_AND_ASSIGN(InfoBarView); |
133 }; | 127 }; |
134 | 128 |
135 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_ | 129 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_ |
OLD | NEW |