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

Side by Side Diff: chrome/browser/ui/views/website_settings/permissions_bubble_view_views.cc

Issue 2115433002: Ensure permission bubble is stacked below the exclusive access bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission-bubble-detach-from-fullscreen
Patch Set: Fix Mac compile. Created 4 years, 5 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/website_settings/permissions_bubble_view.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "base/memory/ptr_util.h" 5 #include "base/memory/ptr_util.h"
6 #include "chrome/browser/ui/browser.h" 6 #include "chrome/browser/ui/browser.h"
7 #include "chrome/browser/ui/browser_window.h" 7 #include "chrome/browser/ui/browser_window.h"
8 #include "chrome/browser/ui/views/exclusive_access_bubble_views.h" 8 #include "chrome/browser/ui/views/exclusive_access_bubble_views.h"
9 #include "chrome/browser/ui/views/frame/browser_view.h" 9 #include "chrome/browser/ui/views/frame/browser_view.h"
10 #include "chrome/browser/ui/views/frame/top_container_view.h" 10 #include "chrome/browser/ui/views/frame/top_container_view.h"
(...skipping 18 matching lines...) Expand all
29 gfx::Point PermissionBubbleViewViews::GetAnchorPoint() { 29 gfx::Point PermissionBubbleViewViews::GetAnchorPoint() {
30 return gfx::Point(); 30 return gfx::Point();
31 } 31 }
32 32
33 views::BubbleBorder::Arrow PermissionBubbleViewViews::GetAnchorArrow() { 33 views::BubbleBorder::Arrow PermissionBubbleViewViews::GetAnchorArrow() {
34 if (browser_->SupportsWindowFeature(Browser::FEATURE_LOCATIONBAR)) 34 if (browser_->SupportsWindowFeature(Browser::FEATURE_LOCATIONBAR))
35 return views::BubbleBorder::TOP_LEFT; 35 return views::BubbleBorder::TOP_LEFT;
36 return views::BubbleBorder::NONE; 36 return views::BubbleBorder::NONE;
37 } 37 }
38 38
39 gfx::NativeView PermissionBubbleViewViews::GetExclusiveAccessNativeView() {
40 BrowserView* browser_view = BrowserView::GetBrowserViewForBrowser(browser_);
41 if (!browser_view->IsFullscreenBubbleVisible())
42 return nullptr;
43
44 return browser_view->exclusive_access_bubble()->GetWidget()->GetNativeView();
45 }
46
39 // static 47 // static
40 std::unique_ptr<PermissionBubbleView> PermissionBubbleView::Create( 48 std::unique_ptr<PermissionBubbleView> PermissionBubbleView::Create(
41 Browser* browser) { 49 Browser* browser) {
42 return base::WrapUnique(new PermissionBubbleViewViews(browser)); 50 return base::WrapUnique(new PermissionBubbleViewViews(browser));
43 } 51 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/website_settings/permissions_bubble_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698