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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 #include "chrome/browser/ui/ash/ash_util.h" | 159 #include "chrome/browser/ui/ash/ash_util.h" |
160 #endif | 160 #endif |
161 | 161 |
162 #if defined(USE_AURA) | 162 #if defined(USE_AURA) |
163 #include "ui/aura/client/window_tree_client.h" | 163 #include "ui/aura/client/window_tree_client.h" |
164 #include "ui/aura/window.h" | 164 #include "ui/aura/window.h" |
165 #include "ui/aura/window_tree_host.h" | 165 #include "ui/aura/window_tree_host.h" |
166 #endif | 166 #endif |
167 | 167 |
168 #if defined(OS_WIN) | 168 #if defined(OS_WIN) |
169 #include "chrome/browser/jumplist_win.h" | 169 #include "chrome/browser/win/jumplist.h" |
170 #include "ui/gfx/color_palette.h" | 170 #include "ui/gfx/color_palette.h" |
171 #include "ui/native_theme/native_theme_dark_win.h" | 171 #include "ui/native_theme/native_theme_dark_win.h" |
172 #include "ui/views/win/scoped_fullscreen_visibility.h" | 172 #include "ui/views/win/scoped_fullscreen_visibility.h" |
173 #endif | 173 #endif |
174 | 174 |
175 #if BUILDFLAG(ENABLE_ONE_CLICK_SIGNIN) | 175 #if BUILDFLAG(ENABLE_ONE_CLICK_SIGNIN) |
176 #include "chrome/browser/ui/sync/one_click_signin_links_delegate_impl.h" | 176 #include "chrome/browser/ui/sync/one_click_signin_links_delegate_impl.h" |
177 #include "chrome/browser/ui/views/sync/one_click_signin_dialog_view.h" | 177 #include "chrome/browser/ui/views/sync/one_click_signin_dialog_view.h" |
178 #endif | 178 #endif |
179 | 179 |
(...skipping 2472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2652 } | 2652 } |
2653 | 2653 |
2654 extensions::ActiveTabPermissionGranter* | 2654 extensions::ActiveTabPermissionGranter* |
2655 BrowserView::GetActiveTabPermissionGranter() { | 2655 BrowserView::GetActiveTabPermissionGranter() { |
2656 content::WebContents* web_contents = GetActiveWebContents(); | 2656 content::WebContents* web_contents = GetActiveWebContents(); |
2657 if (!web_contents) | 2657 if (!web_contents) |
2658 return nullptr; | 2658 return nullptr; |
2659 return extensions::TabHelper::FromWebContents(web_contents) | 2659 return extensions::TabHelper::FromWebContents(web_contents) |
2660 ->active_tab_permission_granter(); | 2660 ->active_tab_permission_granter(); |
2661 } | 2661 } |
OLD | NEW |