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

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

Issue 1044043004: Don't add an aura tooltip to bubble close buttons on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | no next file » | 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 dff1e993c38982f0e6869eebfe6b7b7a9b7b85c6..39fa447528b3256ebf51e1152d5f5f037ea90f62 100644
--- a/ui/views/bubble/bubble_frame_view.cc
+++ b/ui/views/bubble/bubble_frame_view.cc
@@ -125,8 +125,6 @@ gfx::Rect BubbleFrameView::GetWindowBoundsForClientBounds(
int BubbleFrameView::NonClientHitTest(const gfx::Point& point) {
if (!bounds().Contains(point))
return HTNOWHERE;
- if (close_->visible() && close_->GetMirroredBounds().Contains(point))
- return HTCLOSE;
msw 2015/03/31 16:45:30 Hmm, do screen readers, software that assists the
dmazzoni 2015/03/31 16:55:46 Yes, they do call hit testing functions so at firs
msw 2015/03/31 16:57:22 We could hide the other tooltip when the native on
benwells 2015/03/31 22:06:57 I think that would look like adding an #if !define
msw 2015/03/31 22:11:26 What do browser frames do? Those seem to show nati
benwells 2015/04/08 00:19:13 Ah, yes the frames use the native hint as well. I'
// Allow dialogs to show the system menu and be dragged.
if (GetWidget()->widget_delegate()->AsDialogDelegate()) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698