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

Unified Diff: chrome/browser/ui/views/status_bubble_views.h

Issue 2247563002: Change status bubble rendering at hidpi and when there is no client edge (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
Index: chrome/browser/ui/views/status_bubble_views.h
diff --git a/chrome/browser/ui/views/status_bubble_views.h b/chrome/browser/ui/views/status_bubble_views.h
index a18136c4fe68da2035dac1da7ed1168aa6471a03..41278c5cec2f5a021141891f450191584ddf6f81 100644
--- a/chrome/browser/ui/views/status_bubble_views.h
+++ b/chrome/browser/ui/views/status_bubble_views.h
@@ -12,6 +12,7 @@
#include "base/memory/weak_ptr.h"
#include "base/strings/string16.h"
#include "chrome/browser/ui/status_bubble.h"
+#include "chrome/browser/ui/views/frame/browser_view.h"
#include "ui/gfx/geometry/rect.h"
#include "url/gurl.h"
@@ -34,8 +35,9 @@ class StatusBubbleViews : public StatusBubble {
// The combined vertical padding above and below the text.
static const int kTotalVerticalPadding = 7;
- // |base_view| is the view that this bubble is positioned relative to.
- explicit StatusBubbleViews(views::View* base_view);
+ // |browser_view| created this object. |base_view| is the view that this
+ // bubble is positioned relative to.
+ StatusBubbleViews(const BrowserView* browser_view, views::View* base_view);
~StatusBubbleViews() override;
views::View* base_view() { return base_view_; }
@@ -126,6 +128,7 @@ class StatusBubbleViews : public StatusBubble {
// UI (the location bar, for example).
std::unique_ptr<views::Widget> popup_;
+ const BrowserView* browser_view_;
views::View* base_view_;
StatusView* view_;

Powered by Google App Engine
This is Rietveld 408576698