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

Side by Side Diff: chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.mm

Issue 1162393003: Replace info_bubble::BubbleArrowLocation with views::BubbleBorder::Arrow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile in test Created 5 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/cocoa/website_settings/permission_bubble_cocoa.h" 5 #include "chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.h"
6 6
7 #include "chrome/browser/ui/browser_window.h" 7 #include "chrome/browser/ui/browser_window.h"
8 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" 8 #import "chrome/browser/ui/cocoa/base_bubble_controller.h"
9 #import "chrome/browser/ui/cocoa/browser_window_controller.h" 9 #import "chrome/browser/ui/cocoa/browser_window_controller.h"
10 #import "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" 10 #import "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 if (location_bar_bridge) { 96 if (location_bar_bridge) {
97 // It is necessary to check that the location bar bridge will actually 97 // It is necessary to check that the location bar bridge will actually
98 // support the location bar. This is important because an application window 98 // support the location bar. This is important because an application window
99 // will have a location_bar_bridge but not have a location bar. 99 // will have a location_bar_bridge but not have a location bar.
100 return location_bar_bridge->browser()->SupportsWindowFeature( 100 return location_bar_bridge->browser()->SupportsWindowFeature(
101 Browser::FEATURE_LOCATIONBAR); 101 Browser::FEATURE_LOCATIONBAR);
102 } 102 }
103 return false; 103 return false;
104 } 104 }
105 105
106 info_bubble::BubbleArrowLocation PermissionBubbleCocoa::GetArrowLocation() { 106 views::BubbleBorder::Arrow PermissionBubbleCocoa::GetArrowLocation() {
107 return HasLocationBar() ? info_bubble::kTopLeft : info_bubble::kNoArrow; 107 return HasLocationBar() ? views::BubbleBorder::TOP_LEFT
108 : views::BubbleBorder::NONE;
108 } 109 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698