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

Side by Side Diff: chrome/browser/ui/views/location_bar/zoom_bubble_view.cc

Issue 1802073002: Makes vertical alignment of location bar bubbles same (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Makes vertical alignment of location bar bubbles same (nits) 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/ui/views/location_bar/zoom_bubble_view.h" 5 #include "chrome/browser/ui/views/location_bar/zoom_bubble_view.h"
6 6
7 #include "base/i18n/rtl.h" 7 #include "base/i18n/rtl.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "chrome/browser/chrome_notification_types.h" 9 #include "chrome/browser/chrome_notification_types.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 views::View* anchor_view, 109 views::View* anchor_view,
110 content::WebContents* web_contents, 110 content::WebContents* web_contents,
111 DisplayReason reason, 111 DisplayReason reason,
112 ImmersiveModeController* immersive_mode_controller) 112 ImmersiveModeController* immersive_mode_controller)
113 : LocationBarBubbleDelegateView(anchor_view, web_contents), 113 : LocationBarBubbleDelegateView(anchor_view, web_contents),
114 image_button_(NULL), 114 image_button_(NULL),
115 label_(NULL), 115 label_(NULL),
116 web_contents_(web_contents), 116 web_contents_(web_contents),
117 auto_close_(reason == AUTOMATIC), 117 auto_close_(reason == AUTOMATIC),
118 immersive_mode_controller_(immersive_mode_controller) { 118 immersive_mode_controller_(immersive_mode_controller) {
119 // Compensate for built-in vertical padding in the anchor view's image.
120 set_anchor_view_insets(gfx::Insets(5, 0, 5, 0));
121 set_notify_enter_exit_on_child(true); 119 set_notify_enter_exit_on_child(true);
122 immersive_mode_controller_->AddObserver(this); 120 immersive_mode_controller_->AddObserver(this);
123 UseCompactMargins(); 121 UseCompactMargins();
124 } 122 }
125 123
126 ZoomBubbleView::~ZoomBubbleView() { 124 ZoomBubbleView::~ZoomBubbleView() {
127 if (immersive_mode_controller_) 125 if (immersive_mode_controller_)
128 immersive_mode_controller_->RemoveObserver(this); 126 immersive_mode_controller_->RemoveObserver(this);
129 } 127 }
130 128
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 } 311 }
314 } 312 }
315 313
316 void ZoomBubbleView::StopTimer() { 314 void ZoomBubbleView::StopTimer() {
317 timer_.Stop(); 315 timer_.Stop();
318 } 316 }
319 317
320 ZoomBubbleView::ZoomBubbleExtensionInfo::ZoomBubbleExtensionInfo() {} 318 ZoomBubbleView::ZoomBubbleExtensionInfo::ZoomBubbleExtensionInfo() {}
321 319
322 ZoomBubbleView::ZoomBubbleExtensionInfo::~ZoomBubbleExtensionInfo() {} 320 ZoomBubbleView::ZoomBubbleExtensionInfo::~ZoomBubbleExtensionInfo() {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698