OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/ui/aura/chrome_shell_delegate.h" |
| 6 |
| 7 #include "chrome/browser/ui/browser.h" |
| 8 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 9 #include "ui/aura_shell/launcher/launcher_types.h" |
| 10 |
| 11 ChromeShellDelegate::ChromeShellDelegate() { |
| 12 } |
| 13 |
| 14 ChromeShellDelegate::~ChromeShellDelegate() { |
| 15 } |
| 16 |
| 17 void ChromeShellDelegate::CreateNewWindow() { |
| 18 } |
| 19 |
| 20 void ChromeShellDelegate::ShowApps() { |
| 21 } |
| 22 |
| 23 void ChromeShellDelegate::LauncherItemClicked( |
| 24 const aura_shell::LauncherItem& item) { |
| 25 } |
| 26 |
| 27 bool ChromeShellDelegate::ConfigureLauncherItem( |
| 28 aura_shell::LauncherItem* item) { |
| 29 BrowserView* view = BrowserView::GetBrowserViewForNativeWindow(item->window); |
| 30 if (!view) |
| 31 return false; |
| 32 item->type = (view->browser()->type() == Browser::TYPE_TABBED) ? |
| 33 aura_shell::TYPE_TABBED : aura_shell::TYPE_APP; |
| 34 return true; |
| 35 } |
OLD | NEW |