OLD | NEW |
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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 return chromeos::CreateUserWallpaperDelegate(); | 317 return chromeos::CreateUserWallpaperDelegate(); |
318 #else | 318 #else |
319 return NULL; | 319 return NULL; |
320 #endif | 320 #endif |
321 } | 321 } |
322 | 322 |
323 aura::client::UserActionClient* ChromeShellDelegate::CreateUserActionClient() { | 323 aura::client::UserActionClient* ChromeShellDelegate::CreateUserActionClient() { |
324 return new UserActionHandler; | 324 return new UserActionHandler; |
325 } | 325 } |
326 | 326 |
| 327 void ChromeShellDelegate::OpenFeedbackPage() { |
| 328 chrome::OpenFeedbackDialog(GetTargetBrowser()); |
| 329 } |
| 330 |
327 void ChromeShellDelegate::Observe(int type, | 331 void ChromeShellDelegate::Observe(int type, |
328 const content::NotificationSource& source, | 332 const content::NotificationSource& source, |
329 const content::NotificationDetails& details) { | 333 const content::NotificationDetails& details) { |
330 #if defined(OS_CHROMEOS) | 334 #if defined(OS_CHROMEOS) |
331 switch (type) { | 335 switch (type) { |
332 case chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED: | 336 case chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED: |
333 ash::Shell::GetInstance()->CreateLauncher(); | 337 ash::Shell::GetInstance()->CreateLauncher(); |
334 break; | 338 break; |
335 default: | 339 default: |
336 NOTREACHED() << "Unexpected notification " << type; | 340 NOTREACHED() << "Unexpected notification " << type; |
337 } | 341 } |
338 #else | 342 #else |
339 // MSVC++ warns about switch statements without any cases. | 343 // MSVC++ warns about switch statements without any cases. |
340 NOTREACHED() << "Unexpected notification " << type; | 344 NOTREACHED() << "Unexpected notification " << type; |
341 #endif | 345 #endif |
342 } | 346 } |
OLD | NEW |