OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/ash/launcher/browser_status_monitor.h" | 5 #include "chrome/browser/ui/ash/launcher/browser_status_monitor.h" |
6 | 6 |
7 #include "ash/common/shelf/shelf_item_types.h" | |
8 #include "ash/shell.h" | 7 #include "ash/shell.h" |
9 #include "ash/wm/window_util.h" | 8 #include "ash/wm/window_util.h" |
10 #include "base/macros.h" | 9 #include "base/macros.h" |
11 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
12 #include "chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controll
er.h" | 11 #include "chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controll
er.h" |
13 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" | 12 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" |
14 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_util.h" | 13 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_util.h" |
15 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
16 #include "chrome/browser/ui/browser_finder.h" | 15 #include "chrome/browser/ui/browser_finder.h" |
17 #include "chrome/browser/ui/browser_list.h" | 16 #include "chrome/browser/ui/browser_list.h" |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 content::WebContents* contents) { | 298 content::WebContents* contents) { |
300 return launcher_controller_->GetShelfIDForWebContents(contents); | 299 return launcher_controller_->GetShelfIDForWebContents(contents); |
301 } | 300 } |
302 | 301 |
303 void BrowserStatusMonitor::SetShelfIDForBrowserWindowContents( | 302 void BrowserStatusMonitor::SetShelfIDForBrowserWindowContents( |
304 Browser* browser, | 303 Browser* browser, |
305 content::WebContents* web_contents) { | 304 content::WebContents* web_contents) { |
306 launcher_controller_->GetBrowserShortcutLauncherItemController()-> | 305 launcher_controller_->GetBrowserShortcutLauncherItemController()-> |
307 SetShelfIDForBrowserWindowContents(browser, web_contents); | 306 SetShelfIDForBrowserWindowContents(browser, web_contents); |
308 } | 307 } |
OLD | NEW |