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

Side by Side Diff: ui/views/bubble/bubble_border.h

Issue 11068012: Add new views::LabelButton and LabelButtonBorder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove stray semicolon. Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « ui/app_list/app_list_item_view.cc ('k') | ui/views/controls/button/label_button.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_ 5 #ifndef UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_
6 #define UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_ 6 #define UI_VIEWS_BUBBLE_BUBBLE_BORDER_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 "ui/views/background.h" 10 #include "ui/views/background.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 virtual void GetInsetsForArrowLocation(gfx::Insets* insets, 158 virtual void GetInsetsForArrowLocation(gfx::Insets* insets,
159 ArrowLocation arrow_loc) const; 159 ArrowLocation arrow_loc) const;
160 160
161 private: 161 private:
162 struct BorderImages; 162 struct BorderImages;
163 163
164 // Loads images if necessary. 164 // Loads images if necessary.
165 static BorderImages* GetBorderImages(Shadow shadow); 165 static BorderImages* GetBorderImages(Shadow shadow);
166 166
167 // Overridden from Border: 167 // Overridden from Border:
168 virtual void Paint(const View& view, 168 virtual void Paint(const View& view, gfx::Canvas* canvas) const OVERRIDE;
169 gfx::Canvas* canvas) const OVERRIDE;
170 169
171 void DrawEdgeWithArrow(gfx::Canvas* canvas, 170 void DrawEdgeWithArrow(gfx::Canvas* canvas,
172 bool is_horizontal, 171 bool is_horizontal,
173 const gfx::ImageSkia& edge, 172 const gfx::ImageSkia& edge,
174 const gfx::ImageSkia& arrow, 173 const gfx::ImageSkia& arrow,
175 int start_x, 174 int start_x,
176 int start_y, 175 int start_y,
177 int before_arrow, 176 int before_arrow,
178 int after_arrow, 177 int after_arrow,
179 int offset) const; 178 int offset) const;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 213
215 private: 214 private:
216 BubbleBorder* border_; 215 BubbleBorder* border_;
217 216
218 DISALLOW_COPY_AND_ASSIGN(BubbleBackground); 217 DISALLOW_COPY_AND_ASSIGN(BubbleBackground);
219 }; 218 };
220 219
221 } // namespace views 220 } // namespace views
222 221
223 #endif // UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_ 222 #endif // UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_
OLDNEW
« no previous file with comments | « ui/app_list/app_list_item_view.cc ('k') | ui/views/controls/button/label_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698