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

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

Issue 145033006: views: Make View::set_border() take a scoped_ptr<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT Created 6 years, 11 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/views/bubble/bubble_delegate.cc ('k') | ui/views/bubble/bubble_frame_view.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_FRAME_VIEW_H_ 5 #ifndef UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_
6 #define UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ 6 #define UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_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 "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 virtual gfx::Size GetPreferredSize() OVERRIDE; 48 virtual gfx::Size GetPreferredSize() OVERRIDE;
49 virtual gfx::Size GetMinimumSize() OVERRIDE; 49 virtual gfx::Size GetMinimumSize() OVERRIDE;
50 virtual void Layout() OVERRIDE; 50 virtual void Layout() OVERRIDE;
51 virtual const char* GetClassName() const OVERRIDE; 51 virtual const char* GetClassName() const OVERRIDE;
52 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE; 52 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE;
53 virtual void OnThemeChanged() OVERRIDE; 53 virtual void OnThemeChanged() OVERRIDE;
54 54
55 // Overridden from ButtonListener: 55 // Overridden from ButtonListener:
56 virtual void ButtonPressed(Button* sender, const ui::Event& event) OVERRIDE; 56 virtual void ButtonPressed(Button* sender, const ui::Event& event) OVERRIDE;
57 57
58 // Use bubble_border() and SetBubbleBorder(), not border() and set_border(). 58 // Use bubble_border() and SetBubbleBorder(), not border() and SetBorder().
59 BubbleBorder* bubble_border() const { return bubble_border_; } 59 BubbleBorder* bubble_border() const { return bubble_border_; }
60 void SetBubbleBorder(BubbleBorder* border); 60 void SetBubbleBorder(scoped_ptr<BubbleBorder> border);
61 61
62 gfx::Insets content_margins() const { return content_margins_; } 62 gfx::Insets content_margins() const { return content_margins_; }
63 63
64 void SetTitlebarExtraView(View* view); 64 void SetTitlebarExtraView(View* view);
65 65
66 // Given the size of the contents and the rect to point at, returns the bounds 66 // Given the size of the contents and the rect to point at, returns the bounds
67 // of the bubble window. The bubble's arrow location may change if the bubble 67 // of the bubble window. The bubble's arrow location may change if the bubble
68 // does not fit on the monitor and |adjust_if_offscreen| is true. 68 // does not fit on the monitor and |adjust_if_offscreen| is true.
69 gfx::Rect GetUpdatedWindowBounds(const gfx::Rect& anchor_rect, 69 gfx::Rect GetUpdatedWindowBounds(const gfx::Rect& anchor_rect,
70 gfx::Size client_size, 70 gfx::Size client_size,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // When supplied, this view is placed in the titlebar between the title and 104 // When supplied, this view is placed in the titlebar between the title and
105 // (x) close button. 105 // (x) close button.
106 View* titlebar_extra_view_; 106 View* titlebar_extra_view_;
107 107
108 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); 108 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView);
109 }; 109 };
110 110
111 } // namespace views 111 } // namespace views
112 112
113 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ 113 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/bubble/bubble_delegate.cc ('k') | ui/views/bubble/bubble_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698