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

Side by Side Diff: ui/views/bubble/bubble_dialog_delegate_unittest.cc

Issue 2305933002: Update dialog close buttons to use vector icons and ripples. (Closed)
Patch Set: always good to compile Created 4 years, 3 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
« no previous file with comments | « ui/views/BUILD.gn ('k') | ui/views/bubble/bubble_frame_view.h » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "ui/views/bubble/bubble_dialog_delegate.h" 5 #include "ui/views/bubble/bubble_dialog_delegate.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 } 314 }
315 315
316 { 316 {
317 std::unique_ptr<Widget> anchor_widget(CreateTestWidget()); 317 std::unique_ptr<Widget> anchor_widget(CreateTestWidget());
318 TestBubbleDialogDelegateView* bubble_delegate = 318 TestBubbleDialogDelegateView* bubble_delegate =
319 new TestBubbleDialogDelegateView(anchor_widget->GetContentsView()); 319 new TestBubbleDialogDelegateView(anchor_widget->GetContentsView());
320 Widget* bubble_widget = 320 Widget* bubble_widget =
321 BubbleDialogDelegateView::CreateBubble(bubble_delegate); 321 BubbleDialogDelegateView::CreateBubble(bubble_delegate);
322 bubble_widget->Show(); 322 bubble_widget->Show();
323 BubbleFrameView* frame_view = bubble_delegate->GetBubbleFrameView(); 323 BubbleFrameView* frame_view = bubble_delegate->GetBubbleFrameView();
324 LabelButton* close_button = frame_view->close_; 324 Button* close_button = frame_view->close_;
325 ASSERT_TRUE(close_button); 325 ASSERT_TRUE(close_button);
326 frame_view->ButtonPressed( 326 frame_view->ButtonPressed(
327 close_button, 327 close_button,
328 ui::MouseEvent(ui::ET_MOUSE_PRESSED, gfx::Point(), gfx::Point(), 328 ui::MouseEvent(ui::ET_MOUSE_PRESSED, gfx::Point(), gfx::Point(),
329 ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE)); 329 ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE));
330 EXPECT_TRUE(bubble_widget->IsClosed()); 330 EXPECT_TRUE(bubble_widget->IsClosed());
331 } 331 }
332 } 332 }
333 333
334 } // namespace views 334 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/BUILD.gn ('k') | ui/views/bubble/bubble_frame_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698