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

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

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 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
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/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void OnPaint(gfx::Canvas* canvas) override; 63 void OnPaint(gfx::Canvas* canvas) override;
64 void PaintChildren(const ui::PaintContext& context) override; 64 void PaintChildren(const ui::PaintContext& context) override;
65 void OnThemeChanged() override; 65 void OnThemeChanged() override;
66 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; 66 void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
67 67
68 // Overridden from ButtonListener: 68 // Overridden from ButtonListener:
69 void ButtonPressed(Button* sender, const ui::Event& event) override; 69 void ButtonPressed(Button* sender, const ui::Event& event) override;
70 70
71 // Use bubble_border() and SetBubbleBorder(), not border() and SetBorder(). 71 // Use bubble_border() and SetBubbleBorder(), not border() and SetBorder().
72 BubbleBorder* bubble_border() const { return bubble_border_; } 72 BubbleBorder* bubble_border() const { return bubble_border_; }
73 void SetBubbleBorder(scoped_ptr<BubbleBorder> border); 73 void SetBubbleBorder(std::unique_ptr<BubbleBorder> border);
74 74
75 gfx::Insets content_margins() const { return content_margins_; } 75 gfx::Insets content_margins() const { return content_margins_; }
76 76
77 void SetFootnoteView(View* view); 77 void SetFootnoteView(View* view);
78 78
79 // Given the size of the contents and the rect to point at, returns the bounds 79 // Given the size of the contents and the rect to point at, returns the bounds
80 // of the bubble window. The bubble's arrow location may change if the bubble 80 // of the bubble window. The bubble's arrow location may change if the bubble
81 // does not fit on the monitor and |adjust_if_offscreen| is true. 81 // does not fit on the monitor and |adjust_if_offscreen| is true.
82 gfx::Rect GetUpdatedWindowBounds(const gfx::Rect& anchor_rect, 82 gfx::Rect GetUpdatedWindowBounds(const gfx::Rect& anchor_rect,
83 gfx::Size client_size, 83 gfx::Size client_size,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 130
131 // Whether the close button was clicked. 131 // Whether the close button was clicked.
132 bool close_button_clicked_; 132 bool close_button_clicked_;
133 133
134 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); 134 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView);
135 }; 135 };
136 136
137 } // namespace views 137 } // namespace views
138 138
139 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ 139 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/bubble/bubble_dialog_delegate_unittest.cc ('k') | ui/views/bubble/bubble_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698