| 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/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "components/infobars/core/infobar.h" | 10 #include "components/infobars/core/infobar.h" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 static void AssignWidthsSorted(Labels* labels, int available_width); | 115 static void AssignWidthsSorted(Labels* labels, int available_width); |
| 116 | 116 |
| 117 // InfoBar: | 117 // InfoBar: |
| 118 virtual void PlatformSpecificShow(bool animate) OVERRIDE; | 118 virtual void PlatformSpecificShow(bool animate) OVERRIDE; |
| 119 virtual void PlatformSpecificHide(bool animate) OVERRIDE; | 119 virtual void PlatformSpecificHide(bool animate) OVERRIDE; |
| 120 virtual void PlatformSpecificOnHeightsRecalculated() OVERRIDE; | 120 virtual void PlatformSpecificOnHeightsRecalculated() OVERRIDE; |
| 121 | 121 |
| 122 // views::View: | 122 // views::View: |
| 123 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; | 123 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; |
| 124 virtual gfx::Size GetPreferredSize() OVERRIDE; | 124 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 125 virtual void PaintChildren(gfx::Canvas* canvas) OVERRIDE; | 125 virtual void PaintChildren(gfx::Canvas* canvas, |
| 126 const views::CullSet& cull_set) OVERRIDE; |
| 126 | 127 |
| 127 // views::ExternalFocusTracker: | 128 // views::ExternalFocusTracker: |
| 128 virtual void OnWillChangeFocus(View* focused_before, | 129 virtual void OnWillChangeFocus(View* focused_before, |
| 129 View* focused_now) OVERRIDE; | 130 View* focused_now) OVERRIDE; |
| 130 | 131 |
| 131 // The optional icon at the left edge of the InfoBar. | 132 // The optional icon at the left edge of the InfoBar. |
| 132 views::ImageView* icon_; | 133 views::ImageView* icon_; |
| 133 | 134 |
| 134 // The close button at the right edge of the InfoBar. | 135 // The close button at the right edge of the InfoBar. |
| 135 views::ImageButton* close_button_; | 136 views::ImageButton* close_button_; |
| 136 | 137 |
| 137 // The paths for the InfoBarBackground to draw, sized according to the heights | 138 // The paths for the InfoBarBackground to draw, sized according to the heights |
| 138 // above. | 139 // above. |
| 139 SkPath fill_path_; | 140 SkPath fill_path_; |
| 140 SkPath stroke_path_; | 141 SkPath stroke_path_; |
| 141 | 142 |
| 142 // Used to run the menu. | 143 // Used to run the menu. |
| 143 scoped_ptr<views::MenuRunner> menu_runner_; | 144 scoped_ptr<views::MenuRunner> menu_runner_; |
| 144 | 145 |
| 145 DISALLOW_COPY_AND_ASSIGN(InfoBarView); | 146 DISALLOW_COPY_AND_ASSIGN(InfoBarView); |
| 146 }; | 147 }; |
| 147 | 148 |
| 148 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_ | 149 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_ |
| OLD | NEW |