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

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

Issue 10834140: aura: Fix launcher tooltips: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch 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
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_DELEGATE_H_ 5 #ifndef UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_
6 #define UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ 6 #define UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "ui/base/animation/animation_delegate.h" 9 #include "ui/base/animation/animation_delegate.h"
10 #include "ui/views/bubble/bubble_border.h" 10 #include "ui/views/bubble/bubble_border.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 void set_arrow_location(BubbleBorder::ArrowLocation arrow_location) { 65 void set_arrow_location(BubbleBorder::ArrowLocation arrow_location) {
66 arrow_location_ = arrow_location; 66 arrow_location_ = arrow_location;
67 } 67 }
68 68
69 SkColor color() const { return color_; } 69 SkColor color() const { return color_; }
70 void set_color(SkColor color) { color_ = color; } 70 void set_color(SkColor color) { color_ = color; }
71 71
72 const gfx::Insets& margins() const { return margins_; } 72 const gfx::Insets& margins() const { return margins_; }
73 void set_margins(const gfx::Insets& margins) { margins_ = margins; } 73 void set_margins(const gfx::Insets& margins) { margins_ = margins; }
74 74
75 void set_anchor_insets(const gfx::Insets& insets) { anchor_insets_ = insets; }
76 const gfx::Insets& anchor_insets() const { return anchor_insets_; }
77
75 gfx::NativeView parent_window() const { return parent_window_; } 78 gfx::NativeView parent_window() const { return parent_window_; }
76 void set_parent_window(gfx::NativeView window) { parent_window_ = window; } 79 void set_parent_window(gfx::NativeView window) { parent_window_ = window; }
77 80
78 bool use_focusless() const { return use_focusless_; } 81 bool use_focusless() const { return use_focusless_; }
79 void set_use_focusless(bool use_focusless) { 82 void set_use_focusless(bool use_focusless) {
80 use_focusless_ = use_focusless; 83 use_focusless_ = use_focusless;
81 } 84 }
82 85
83 // Get the arrow's anchor rect in screen space. 86 // Get the arrow's anchor rect in screen space.
84 virtual gfx::Rect GetAnchorRect(); 87 virtual gfx::Rect GetAnchorRect();
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 153
151 // The arrow's location on the bubble. 154 // The arrow's location on the bubble.
152 BubbleBorder::ArrowLocation arrow_location_; 155 BubbleBorder::ArrowLocation arrow_location_;
153 156
154 // The background color of the bubble. 157 // The background color of the bubble.
155 SkColor color_; 158 SkColor color_;
156 159
157 // The margins between the content and the inside of the border. 160 // The margins between the content and the inside of the border.
158 gfx::Insets margins_; 161 gfx::Insets margins_;
159 162
163 // Insets applied to the |anchor_view_| bounds.
164 gfx::Insets anchor_insets_;
165
160 // Original opacity of the bubble. 166 // Original opacity of the bubble.
161 int original_opacity_; 167 int original_opacity_;
162 168
163 // The widget hosting the border for this bubble (non-Aura Windows only). 169 // The widget hosting the border for this bubble (non-Aura Windows only).
164 Widget* border_widget_; 170 Widget* border_widget_;
165 171
166 // Create a popup window for focusless bubbles on Linux/ChromeOS. 172 // Create a popup window for focusless bubbles on Linux/ChromeOS.
167 // These bubbles are not interactive and should not gain focus. 173 // These bubbles are not interactive and should not gain focus.
168 bool use_focusless_; 174 bool use_focusless_;
169 175
170 // Parent native window of the bubble. 176 // Parent native window of the bubble.
171 gfx::NativeView parent_window_; 177 gfx::NativeView parent_window_;
172 178
173 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView); 179 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView);
174 }; 180 };
175 181
176 } // namespace views 182 } // namespace views
177 183
178 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ 184 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698