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

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

Issue 10834140: aura: Fix launcher tooltips: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor change in tooltip text color Created 8 years, 4 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_view.cc ('k') | ui/views/bubble/bubble_border.cc » ('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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // Sets a fixed offset for the arrow from the beginning of corresponding edge. 111 // Sets a fixed offset for the arrow from the beginning of corresponding edge.
112 // The arrow will still point to the same location but the bubble will shift 112 // The arrow will still point to the same location but the bubble will shift
113 // location to make that happen. Returns actuall arrow offset, in case of 113 // location to make that happen. Returns actuall arrow offset, in case of
114 // overflow it differ from desired. 114 // overflow it differ from desired.
115 int SetArrowOffset(int offset, const gfx::Size& contents_size); 115 int SetArrowOffset(int offset, const gfx::Size& contents_size);
116 116
117 // Overridden from Border: 117 // Overridden from Border:
118 virtual void GetInsets(gfx::Insets* insets) const OVERRIDE; 118 virtual void GetInsets(gfx::Insets* insets) const OVERRIDE;
119 119
120 // How many pixels the bubble border is from the edge of the images. 120 // How many pixels the bubble border is from the edge of the images.
121 int border_thickness() const; 121 virtual int GetBorderThickness() const;
122 122
123 protected: 123 protected:
124 virtual ~BubbleBorder(); 124 virtual ~BubbleBorder();
125 125
126 // Calculates the insets for a specific arrow location. Normally called from 126 // Calculates the insets for a specific arrow location. Normally called from
127 // GetInsets(arrow_location()), but may be called by specialized BubbleBorder 127 // GetInsets(arrow_location()), but may be called by specialized BubbleBorder
128 // implementations. 128 // implementations.
129 void GetInsetsForArrowLocation(gfx::Insets* insets, 129 virtual void GetInsetsForArrowLocation(gfx::Insets* insets,
130 ArrowLocation arrow_loc) const; 130 ArrowLocation arrow_loc) const;
131 131
132 private: 132 private:
133 struct BorderImages; 133 struct BorderImages;
134 134
135 // Loads images if necessary. 135 // Loads images if necessary.
136 static BorderImages* GetBorderImages(Shadow shadow); 136 static BorderImages* GetBorderImages(Shadow shadow);
137 137
138 // Overridden from Border: 138 // Overridden from Border:
139 virtual void Paint(const View& view, 139 virtual void Paint(const View& view,
140 gfx::Canvas* canvas) const OVERRIDE; 140 gfx::Canvas* canvas) const OVERRIDE;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 186
187 private: 187 private:
188 BubbleBorder* border_; 188 BubbleBorder* border_;
189 189
190 DISALLOW_COPY_AND_ASSIGN(BubbleBackground); 190 DISALLOW_COPY_AND_ASSIGN(BubbleBackground);
191 }; 191 };
192 192
193 } // namespace views 193 } // namespace views
194 194
195 #endif // UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_ 195 #endif // UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_
OLDNEW
« no previous file with comments | « ui/app_list/app_list_view.cc ('k') | ui/views/bubble/bubble_border.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698