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

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

Issue 11416042: views: Change the LocationBarView delegate's API to GetWebContents(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed Created 8 years, 1 month 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 | Annotate | Revision Log
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_view.h" 5 #include "chrome/browser/ui/views/location_bar/zoom_view.h"
6 6
7 #include "chrome/browser/ui/tab_contents/tab_contents.h" 7 #include "chrome/browser/ui/tab_contents/tab_contents.h"
8 #include "chrome/browser/ui/toolbar/toolbar_model.h" 8 #include "chrome/browser/ui/toolbar/toolbar_model.h"
9 #include "chrome/browser/ui/view_ids.h" 9 #include "chrome/browser/ui/view_ids.h"
10 #include "chrome/browser/ui/views/location_bar/zoom_bubble_view.h" 10 #include "chrome/browser/ui/views/location_bar/zoom_bubble_view.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 ActivateBubble(); 81 ActivateBubble();
82 return ui::ER_CONSUMED; 82 return ui::ER_CONSUMED;
83 } 83 }
84 84
85 int ZoomView::GetBuiltInHorizontalPadding() const { 85 int ZoomView::GetBuiltInHorizontalPadding() const {
86 return GetBuiltInHorizontalPaddingImpl(); 86 return GetBuiltInHorizontalPaddingImpl();
87 } 87 }
88 88
89 void ZoomView::ActivateBubble() { 89 void ZoomView::ActivateBubble() {
90 ZoomBubbleView::ShowBubble( 90 ZoomBubbleView::ShowBubble(
91 this, location_bar_delegate_->GetTabContents()->web_contents(), false); 91 this, location_bar_delegate_->GetWebContents(), false);
92 } 92 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698