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

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

Issue 275183002: patch from issue 218843002 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 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 #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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/top_container_view.cc ('k') | chrome/browser/ui/views/infobars/infobar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698