Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: chrome/browser/ui/aura/chrome_shell_delegate.cc

Issue 8289022: Wires keeping the launcher up to date with the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweaks Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/aura/chrome_shell_delegate.h ('k') | chrome/browser/ui/aura/launcher_icon_updater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698