| OLD | NEW | 
|---|
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/frame/browser_view.h" | 5 #include "chrome/browser/ui/views/frame/browser_view.h" | 
| 6 | 6 | 
| 7 #include <stdint.h> | 7 #include <stdint.h> | 
| 8 | 8 | 
| 9 #include <algorithm> | 9 #include <algorithm> | 
| 10 #include <memory> | 10 #include <memory> | 
| (...skipping 2676 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2687 } | 2687 } | 
| 2688 | 2688 | 
| 2689 bool BrowserView::IsImmersiveModeEnabled() { | 2689 bool BrowserView::IsImmersiveModeEnabled() { | 
| 2690   return immersive_mode_controller()->IsEnabled(); | 2690   return immersive_mode_controller()->IsEnabled(); | 
| 2691 } | 2691 } | 
| 2692 | 2692 | 
| 2693 gfx::Rect BrowserView::GetTopContainerBoundsInScreen() { | 2693 gfx::Rect BrowserView::GetTopContainerBoundsInScreen() { | 
| 2694   return top_container_->GetBoundsInScreen(); | 2694   return top_container_->GetBoundsInScreen(); | 
| 2695 } | 2695 } | 
| 2696 | 2696 | 
|  | 2697 void BrowserView::DestroyAnyExclusiveAccessBubble() { | 
|  | 2698   exclusive_access_bubble_.reset(); | 
|  | 2699   new_back_shortcut_bubble_.reset(); | 
|  | 2700 } | 
|  | 2701 | 
| 2697 extensions::ActiveTabPermissionGranter* | 2702 extensions::ActiveTabPermissionGranter* | 
| 2698 BrowserView::GetActiveTabPermissionGranter() { | 2703 BrowserView::GetActiveTabPermissionGranter() { | 
| 2699   content::WebContents* web_contents = GetActiveWebContents(); | 2704   content::WebContents* web_contents = GetActiveWebContents(); | 
| 2700   if (!web_contents) | 2705   if (!web_contents) | 
| 2701     return nullptr; | 2706     return nullptr; | 
| 2702   return extensions::TabHelper::FromWebContents(web_contents) | 2707   return extensions::TabHelper::FromWebContents(web_contents) | 
| 2703       ->active_tab_permission_granter(); | 2708       ->active_tab_permission_granter(); | 
| 2704 } | 2709 } | 
| OLD | NEW | 
|---|