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

Unified Diff: ui/views/bubble/bubble_frame_view.cc

Issue 1809933003: Port BubbleDelegate tests to BubbleDialogDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: msw review Created 4 years, 9 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 | « ui/views/bubble/bubble_frame_view.h ('k') | ui/views/views.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/bubble/bubble_frame_view.cc
diff --git a/ui/views/bubble/bubble_frame_view.cc b/ui/views/bubble/bubble_frame_view.cc
index 0c1220cfe2be3e13ff30b7d770e83a4fe3eb26a9..3e63de96a220a0eac2563d6fa2a896b96b7f7cc3 100644
--- a/ui/views/bubble/bubble_frame_view.cc
+++ b/ui/views/bubble/bubble_frame_view.cc
@@ -141,7 +141,8 @@ int BubbleFrameView::NonClientHitTest(const gfx::Point& point) {
return HTCLOSE;
// Allow dialogs to show the system menu and be dragged.
- if (GetWidget()->widget_delegate()->AsDialogDelegate()) {
+ if (GetWidget()->widget_delegate()->AsDialogDelegate() &&
+ !GetWidget()->widget_delegate()->AsBubbleDialogDelegate()) {
gfx::Rect sys_rect(0, 0, title_->x(), title_->y());
sys_rect.set_origin(gfx::Point(GetMirroredXForRect(sys_rect), 0));
if (sys_rect.Contains(point))
« no previous file with comments | « ui/views/bubble/bubble_frame_view.h ('k') | ui/views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698