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

Unified Diff: ui/views/examples/bubble_example.cc

Issue 1895203004: Update sundry BubbleDelegateView references to BubbleDialogDelegateView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: relative again 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/views/examples/examples_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/bubble_example.cc
diff --git a/ui/views/examples/bubble_example.cc b/ui/views/examples/bubble_example.cc
index 597b7adcc6191821ed8125a16bbf4c37f9d97ead..6aa47909522992f4aa3ec21163d165b762b0dc53 100644
--- a/ui/views/examples/bubble_example.cc
+++ b/ui/views/examples/bubble_example.cc
@@ -6,7 +6,7 @@
#include "base/macros.h"
#include "base/strings/utf_string_conversions.h"
-#include "ui/views/bubble/bubble_delegate.h"
+#include "ui/views/bubble/bubble_dialog_delegate.h"
#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/label.h"
#include "ui/views/layout/box_layout.h"
@@ -49,12 +49,14 @@ base::string16 GetArrowName(BubbleBorder::Arrow arrow) {
return ASCIIToUTF16("INVALID");
}
-class ExampleBubble : public BubbleDelegateView {
+class ExampleBubble : public BubbleDialogDelegateView {
public:
- ExampleBubble(View* anchor, BubbleBorder::Arrow arrow)
- : BubbleDelegateView(anchor, arrow) {}
+ ExampleBubble(View* anchor, BubbleBorder::Arrow arrow)
+ : BubbleDialogDelegateView(anchor, arrow) {}
protected:
+ int GetDialogButtons() const override { return ui::DIALOG_BUTTON_NONE; }
+
void Init() override {
SetLayoutManager(new BoxLayout(BoxLayout::kVertical, 50, 50, 0));
AddChildView(new Label(GetArrowName(arrow())));
@@ -117,7 +119,7 @@ void BubbleExample::ButtonPressed(Button* sender, const ui::Event& event) {
if (sender == persistent_)
bubble->set_close_on_deactivate(false);
- BubbleDelegateView::CreateBubble(bubble);
+ BubbleDialogDelegateView::CreateBubble(bubble);
if (sender == align_to_edge_)
bubble->SetAlignment(BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE);
« no previous file with comments | « no previous file | ui/views/examples/examples_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698