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 Browser* browser = GetTargetBrowser(); | |
329 chrome::OpenFeedbackDialog(browser); | |
Ben Goodger (Google)
2012/07/12 15:50:40
chrome::OpenFeedbackDialog(GetTargetBrowser());
Jun Mukai
2012/07/13 02:31:24
Done.
| |
330 } | |
331 | |
327 void ChromeShellDelegate::Observe(int type, | 332 void ChromeShellDelegate::Observe(int type, |
328 const content::NotificationSource& source, | 333 const content::NotificationSource& source, |
329 const content::NotificationDetails& details) { | 334 const content::NotificationDetails& details) { |
330 #if defined(OS_CHROMEOS) | 335 #if defined(OS_CHROMEOS) |
331 switch (type) { | 336 switch (type) { |
332 case chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED: | 337 case chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED: |
333 ash::Shell::GetInstance()->CreateLauncher(); | 338 ash::Shell::GetInstance()->CreateLauncher(); |
334 break; | 339 break; |
335 default: | 340 default: |
336 NOTREACHED() << "Unexpected notification " << type; | 341 NOTREACHED() << "Unexpected notification " << type; |
337 } | 342 } |
338 #else | 343 #else |
339 // MSVC++ warns about switch statements without any cases. | 344 // MSVC++ warns about switch statements without any cases. |
340 NOTREACHED() << "Unexpected notification " << type; | 345 NOTREACHED() << "Unexpected notification " << type; |
341 #endif | 346 #endif |
342 } | 347 } |
OLD | NEW |