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

Side by Side Diff: chrome/browser/ui/views/ash/chrome_shell_delegate.cc

Issue 9630002: Ash: Remove compact window mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: OpaqueBrowserFrameView, MultipleWindowIndicatorButton Created 8 years, 9 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/views/ash/chrome_shell_delegate.h" 5 #include "chrome/browser/ui/views/ash/chrome_shell_delegate.h"
6 6
7 #include "ash/launcher/launcher_types.h" 7 #include "ash/launcher/launcher_types.h"
8 #include "ash/system/tray/system_tray_delegate.h" 8 #include "ash/system/tray/system_tray_delegate.h"
9 #include "ash/wm/partial_screenshot_view.h" 9 #include "ash/wm/partial_screenshot_view.h"
10 #include "ash/wm/window_util.h" 10 #include "ash/wm/window_util.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 BrowserList::AttemptUserExit(); 76 BrowserList::AttemptUserExit();
77 } 77 }
78 78
79 ash::AppListViewDelegate* 79 ash::AppListViewDelegate*
80 ChromeShellDelegate::CreateAppListViewDelegate() { 80 ChromeShellDelegate::CreateAppListViewDelegate() {
81 // Shell will own the created delegate. 81 // Shell will own the created delegate.
82 return new AppListViewDelegate; 82 return new AppListViewDelegate;
83 } 83 }
84 84
85 std::vector<aura::Window*> ChromeShellDelegate::GetCycleWindowList( 85 std::vector<aura::Window*> ChromeShellDelegate::GetCycleWindowList(
86 CycleSource source, 86 CycleSource source) const {
87 CycleOrder order) const { 87 // BrowserList maintains a list of browsers sorted by activity.
88 std::vector<aura::Window*> windows; 88 return GetBrowserWindows(BrowserList::begin_last_active(),
89 switch (order) { 89 BrowserList::end_last_active());
90 case ORDER_MRU:
91 // BrowserList maintains a list of browsers sorted by activity.
92 windows = GetBrowserWindows(BrowserList::begin_last_active(),
93 BrowserList::end_last_active());
94 break;
95 case ORDER_LINEAR:
96 // Just return windows in creation order.
97 windows = GetBrowserWindows(BrowserList::begin(),
98 BrowserList::end());
99 break;
100 default:
101 NOTREACHED();
102 break;
103 }
104 return windows;
105 } 90 }
106 91
107 void ChromeShellDelegate::StartPartialScreenshot( 92 void ChromeShellDelegate::StartPartialScreenshot(
108 ash::ScreenshotDelegate* screenshot_delegate) { 93 ash::ScreenshotDelegate* screenshot_delegate) {
109 ash::PartialScreenshotView::StartPartialScreenshot(screenshot_delegate); 94 ash::PartialScreenshotView::StartPartialScreenshot(screenshot_delegate);
110 } 95 }
111 96
112 ash::LauncherDelegate* ChromeShellDelegate::CreateLauncherDelegate( 97 ash::LauncherDelegate* ChromeShellDelegate::CreateLauncherDelegate(
113 ash::LauncherModel* model) { 98 ash::LauncherModel* model) {
114 ChromeLauncherDelegate* delegate = new ChromeLauncherDelegate(NULL, model); 99 ChromeLauncherDelegate* delegate = new ChromeLauncherDelegate(NULL, model);
115 delegate->Init(); 100 delegate->Init();
116 return delegate; 101 return delegate;
117 } 102 }
118 103
119 ash::SystemTrayDelegate* ChromeShellDelegate::CreateSystemTrayDelegate( 104 ash::SystemTrayDelegate* ChromeShellDelegate::CreateSystemTrayDelegate(
120 ash::SystemTray* tray) { 105 ash::SystemTray* tray) {
121 #if defined(OS_CHROMEOS) 106 #if defined(OS_CHROMEOS)
122 return chromeos::CreateSystemTrayDelegate(tray); 107 return chromeos::CreateSystemTrayDelegate(tray);
123 #else 108 #else
124 return NULL; 109 return NULL;
125 #endif 110 #endif
126 } 111 }
127
128 bool ChromeShellDelegate::GetOverrideWindowMode(
129 ash::Shell::WindowMode* window_mode) {
130 return false;
131 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/ash/chrome_shell_delegate.h ('k') | chrome/browser/ui/views/ash/multiple_window_indicator_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698