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

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

Issue 20871003: Fix BubbleFrameView title and close button patterns. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and merge; add OVERRIDE mark. Created 7 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 23 matching lines...) Expand all
34 BubbleDelegateView(); 34 BubbleDelegateView();
35 BubbleDelegateView(View* anchor_view, BubbleBorder::Arrow arrow); 35 BubbleDelegateView(View* anchor_view, BubbleBorder::Arrow arrow);
36 virtual ~BubbleDelegateView(); 36 virtual ~BubbleDelegateView();
37 37
38 // Create and initialize the bubble Widget(s) with proper bounds. 38 // Create and initialize the bubble Widget(s) with proper bounds.
39 static Widget* CreateBubble(BubbleDelegateView* bubble_delegate); 39 static Widget* CreateBubble(BubbleDelegateView* bubble_delegate);
40 40
41 // WidgetDelegate overrides: 41 // WidgetDelegate overrides:
42 virtual BubbleDelegateView* AsBubbleDelegate() OVERRIDE; 42 virtual BubbleDelegateView* AsBubbleDelegate() OVERRIDE;
43 virtual bool CanActivate() const OVERRIDE; 43 virtual bool CanActivate() const OVERRIDE;
44 virtual bool ShouldShowCloseButton() const OVERRIDE;
44 virtual View* GetContentsView() OVERRIDE; 45 virtual View* GetContentsView() OVERRIDE;
45 virtual NonClientFrameView* CreateNonClientFrameView(Widget* widget) OVERRIDE; 46 virtual NonClientFrameView* CreateNonClientFrameView(Widget* widget) OVERRIDE;
46 47
47 // WidgetObserver overrides: 48 // WidgetObserver overrides:
48 virtual void OnWidgetDestroying(Widget* widget) OVERRIDE; 49 virtual void OnWidgetDestroying(Widget* widget) OVERRIDE;
49 virtual void OnWidgetVisibilityChanged(Widget* widget, bool visible) OVERRIDE; 50 virtual void OnWidgetVisibilityChanged(Widget* widget, bool visible) OVERRIDE;
50 virtual void OnWidgetActivationChanged(Widget* widget, bool active) OVERRIDE; 51 virtual void OnWidgetActivationChanged(Widget* widget, bool active) OVERRIDE;
51 virtual void OnWidgetBoundsChanged(Widget* widget, 52 virtual void OnWidgetBoundsChanged(Widget* widget,
52 const gfx::Rect& new_bounds) OVERRIDE; 53 const gfx::Rect& new_bounds) OVERRIDE;
53 54
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 213
213 // Parent native window of the bubble. 214 // Parent native window of the bubble.
214 gfx::NativeView parent_window_; 215 gfx::NativeView parent_window_;
215 216
216 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView); 217 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView);
217 }; 218 };
218 219
219 } // namespace views 220 } // namespace views
220 221
221 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ 222 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/autofill/autofill_credit_card_bubble_views.cc ('k') | ui/views/bubble/bubble_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698