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

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

Issue 191723003: Nukes USE_AURA ifdefs from views (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 6 years, 9 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/gfx/animation/animation_delegate.h" 9 #include "ui/gfx/animation/animation_delegate.h"
10 #include "ui/views/bubble/bubble_border.h" 10 #include "ui/views/bubble/bubble_border.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 FRIEND_TEST_ALL_PREFIXES(BubbleDelegateTest, CreateDelegate); 163 FRIEND_TEST_ALL_PREFIXES(BubbleDelegateTest, CreateDelegate);
164 FRIEND_TEST_ALL_PREFIXES(BubbleDelegateTest, NonClientHitTest); 164 FRIEND_TEST_ALL_PREFIXES(BubbleDelegateTest, NonClientHitTest);
165 165
166 // Update the bubble color from |theme|, unless it was explicitly set. 166 // Update the bubble color from |theme|, unless it was explicitly set.
167 void UpdateColorsFromTheme(const ui::NativeTheme* theme); 167 void UpdateColorsFromTheme(const ui::NativeTheme* theme);
168 168
169 // Handles widget visibility changes. 169 // Handles widget visibility changes.
170 void HandleVisibilityChanged(Widget* widget, bool visible); 170 void HandleVisibilityChanged(Widget* widget, bool visible);
171 171
172 // Fade animation for bubble. 172 // Fade animation for bubble.
173 // TODO(sky): remove this, not needed anymore.
173 scoped_ptr<gfx::SlideAnimation> fade_animation_; 174 scoped_ptr<gfx::SlideAnimation> fade_animation_;
174 175
175 // Flags controlling bubble closure on the escape key and deactivation. 176 // Flags controlling bubble closure on the escape key and deactivation.
176 bool close_on_esc_; 177 bool close_on_esc_;
177 bool close_on_deactivate_; 178 bool close_on_deactivate_;
178 179
179 // The view and widget to which this bubble is anchored. Since an anchor view 180 // The view and widget to which this bubble is anchored. Since an anchor view
180 // can be deleted without notice, we store it in the ViewStorage and retrieve 181 // can be deleted without notice, we store it in the ViewStorage and retrieve
181 // it from there. It will make sure that the view is still valid. 182 // it from there. It will make sure that the view is still valid.
182 const int anchor_view_storage_id_; 183 const int anchor_view_storage_id_;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 224
224 // Parent native window of the bubble. 225 // Parent native window of the bubble.
225 gfx::NativeView parent_window_; 226 gfx::NativeView parent_window_;
226 227
227 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView); 228 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView);
228 }; 229 };
229 230
230 } // namespace views 231 } // namespace views
231 232
232 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ 233 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698