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

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

Issue 1053143002: Make View::Paint use ui::PaintRecorder to access PaintContext's canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: paintrecorder: . Created 5 years, 8 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 static void AssignWidthsSorted(Labels* labels, int available_width); 107 static void AssignWidthsSorted(Labels* labels, int available_width);
108 108
109 // InfoBar: 109 // InfoBar:
110 void PlatformSpecificShow(bool animate) override; 110 void PlatformSpecificShow(bool animate) override;
111 void PlatformSpecificHide(bool animate) override; 111 void PlatformSpecificHide(bool animate) override;
112 void PlatformSpecificOnHeightsRecalculated() override; 112 void PlatformSpecificOnHeightsRecalculated() override;
113 113
114 // views::View: 114 // views::View:
115 void GetAccessibleState(ui::AXViewState* state) override; 115 void GetAccessibleState(ui::AXViewState* state) override;
116 gfx::Size GetPreferredSize() const override; 116 gfx::Size GetPreferredSize() const override;
117 void PaintChildren(const PaintContext& context) override; 117 void PaintChildren(const ui::PaintContext& context) override;
118 118
119 // views::ExternalFocusTracker: 119 // views::ExternalFocusTracker:
120 void OnWillChangeFocus(View* focused_before, View* focused_now) override; 120 void OnWillChangeFocus(View* focused_before, View* focused_now) override;
121 121
122 // The optional icon at the left edge of the InfoBar. 122 // The optional icon at the left edge of the InfoBar.
123 views::ImageView* icon_; 123 views::ImageView* icon_;
124 124
125 // The close button at the right edge of the InfoBar. 125 // The close button at the right edge of the InfoBar.
126 views::ImageButton* close_button_; 126 views::ImageButton* close_button_;
127 127
128 // The paths for the InfoBarBackground to draw, sized according to the heights 128 // The paths for the InfoBarBackground to draw, sized according to the heights
129 // above. 129 // above.
130 SkPath fill_path_; 130 SkPath fill_path_;
131 SkPath stroke_path_; 131 SkPath stroke_path_;
132 132
133 // Used to run the menu. 133 // Used to run the menu.
134 scoped_ptr<views::MenuRunner> menu_runner_; 134 scoped_ptr<views::MenuRunner> menu_runner_;
135 135
136 DISALLOW_COPY_AND_ASSIGN(InfoBarView); 136 DISALLOW_COPY_AND_ASSIGN(InfoBarView);
137 }; 137 };
138 138
139 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_ 139 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698