| 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" | 7 #include "ash/shelf/shelf_item_types.h" |
| 8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
| 9 #include "ash/wm/window_util.h" | 9 #include "ash/wm/window_util.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 12 #include "chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controll
er.h" | 12 #include "chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controll
er.h" |
| 13 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" | 13 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" |
| 14 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_util.h" | 14 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_util.h" |
| 15 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
| 16 #include "chrome/browser/ui/browser_finder.h" | 16 #include "chrome/browser/ui/browser_finder.h" |
| 17 #include "chrome/browser/ui/browser_list.h" | 17 #include "chrome/browser/ui/browser_list.h" |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 content::WebContents* contents) { | 290 content::WebContents* contents) { |
| 291 return launcher_controller_->GetShelfIDForWebContents(contents); | 291 return launcher_controller_->GetShelfIDForWebContents(contents); |
| 292 } | 292 } |
| 293 | 293 |
| 294 void BrowserStatusMonitor::SetShelfIDForBrowserWindowContents( | 294 void BrowserStatusMonitor::SetShelfIDForBrowserWindowContents( |
| 295 Browser* browser, | 295 Browser* browser, |
| 296 content::WebContents* web_contents) { | 296 content::WebContents* web_contents) { |
| 297 launcher_controller_->GetBrowserShortcutLauncherItemController()-> | 297 launcher_controller_->GetBrowserShortcutLauncherItemController()-> |
| 298 SetShelfIDForBrowserWindowContents(browser, web_contents); | 298 SetShelfIDForBrowserWindowContents(browser, web_contents); |
| 299 } | 299 } |
| OLD | NEW |