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

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

Issue 2834493007: MacViews: Allows the toolkit-views Zoom Dialog to be used (Closed)
Patch Set: MacViews: Allows the toolkit-views Zoom Dialog to be used (keep anchoring) Created 3 years, 7 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
« no previous file with comments | « chrome/browser/ui/views/location_bar/zoom_bubble_view_browsertest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/i18n/number_formatting.h" 7 #include "base/i18n/number_formatting.h"
8 #include "chrome/app/vector_icons/vector_icons.h" 8 #include "chrome/app/vector_icons/vector_icons.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 ? &kZoomMinusIcon 44 ? &kZoomMinusIcon
45 : &kZoomPlusIcon; 45 : &kZoomPlusIcon;
46 if (GetNativeTheme()) 46 if (GetNativeTheme())
47 UpdateIcon(); 47 UpdateIcon();
48 48
49 SetVisible(true); 49 SetVisible(true);
50 } 50 }
51 51
52 void ZoomView::OnExecuting(BubbleIconView::ExecuteSource source) { 52 void ZoomView::OnExecuting(BubbleIconView::ExecuteSource source) {
53 ZoomBubbleView::ShowBubble(location_bar_delegate_->GetWebContents(), 53 ZoomBubbleView::ShowBubble(location_bar_delegate_->GetWebContents(),
54 ZoomBubbleView::USER_GESTURE); 54 gfx::Point(), ZoomBubbleView::USER_GESTURE);
55 } 55 }
56 56
57 void ZoomView::GetAccessibleNodeData(ui::AXNodeData* node_data) { 57 void ZoomView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
58 BubbleIconView::GetAccessibleNodeData(node_data); 58 BubbleIconView::GetAccessibleNodeData(node_data);
59 node_data->SetName(l10n_util::GetStringUTF8(IDS_ACCNAME_ZOOM)); 59 node_data->SetName(l10n_util::GetStringUTF8(IDS_ACCNAME_ZOOM));
60 } 60 }
61 61
62 views::BubbleDialogDelegateView* ZoomView::GetBubble() const { 62 views::BubbleDialogDelegateView* ZoomView::GetBubble() const {
63 return ZoomBubbleView::GetZoomBubble(); 63 return ZoomBubbleView::GetZoomBubble();
64 } 64 }
65 65
66 const gfx::VectorIcon& ZoomView::GetVectorIcon() const { 66 const gfx::VectorIcon& ZoomView::GetVectorIcon() const {
67 return *icon_; 67 return *icon_;
68 } 68 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/zoom_bubble_view_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698