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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/aura/chrome_shell_delegate.cc
diff --git a/chrome/browser/ui/aura/chrome_shell_delegate.cc b/chrome/browser/ui/aura/chrome_shell_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..ac0c52cc350d3287ebc43fd97e7b4fc1ef279d89
--- /dev/null
+++ b/chrome/browser/ui/aura/chrome_shell_delegate.cc
@@ -0,0 +1,35 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/ui/aura/chrome_shell_delegate.h"
+
+#include "chrome/browser/ui/browser.h"
+#include "chrome/browser/ui/views/frame/browser_view.h"
+#include "ui/aura_shell/launcher/launcher_types.h"
+
+ChromeShellDelegate::ChromeShellDelegate() {
+}
+
+ChromeShellDelegate::~ChromeShellDelegate() {
+}
+
+void ChromeShellDelegate::CreateNewWindow() {
+}
+
+void ChromeShellDelegate::ShowApps() {
+}
+
+void ChromeShellDelegate::LauncherItemClicked(
+ const aura_shell::LauncherItem& item) {
+}
+
+bool ChromeShellDelegate::ConfigureLauncherItem(
+ aura_shell::LauncherItem* item) {
+ BrowserView* view = BrowserView::GetBrowserViewForNativeWindow(item->window);
+ if (!view)
+ return false;
+ item->type = (view->browser()->type() == Browser::TYPE_TABBED) ?
+ aura_shell::TYPE_TABBED : aura_shell::TYPE_APP;
+ return true;
+}
« 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