OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/apps/chrome_app_delegate.h" | 5 #include "chrome/browser/ui/apps/chrome_app_delegate.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 const GURL& security_origin, | 289 const GURL& security_origin, |
290 content::MediaStreamType type, | 290 content::MediaStreamType type, |
291 const extensions::Extension* extension) { | 291 const extensions::Extension* extension) { |
292 return MediaCaptureDevicesDispatcher::GetInstance() | 292 return MediaCaptureDevicesDispatcher::GetInstance() |
293 ->CheckMediaAccessPermission( | 293 ->CheckMediaAccessPermission( |
294 web_contents, security_origin, type, extension); | 294 web_contents, security_origin, type, extension); |
295 } | 295 } |
296 | 296 |
297 int ChromeAppDelegate::PreferredIconSize() { | 297 int ChromeAppDelegate::PreferredIconSize() { |
298 #if defined(USE_ASH) | 298 #if defined(USE_ASH) |
299 return ash::GetShelfConstant(ash::SHELF_SIZE); | 299 return ash::kShelfSize; |
300 #else | 300 #else |
301 return extension_misc::EXTENSION_ICON_SMALL; | 301 return extension_misc::EXTENSION_ICON_SMALL; |
302 #endif | 302 #endif |
303 } | 303 } |
304 | 304 |
305 void ChromeAppDelegate::SetWebContentsBlocked( | 305 void ChromeAppDelegate::SetWebContentsBlocked( |
306 content::WebContents* web_contents, | 306 content::WebContents* web_contents, |
307 bool blocked) { | 307 bool blocked) { |
308 if (!blocked) | 308 if (!blocked) |
309 web_contents->Focus(); | 309 web_contents->Focus(); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 KeepAliveRestartOption::DISABLED)); | 348 KeepAliveRestartOption::DISABLED)); |
349 } | 349 } |
350 | 350 |
351 void ChromeAppDelegate::Observe(int type, | 351 void ChromeAppDelegate::Observe(int type, |
352 const content::NotificationSource& source, | 352 const content::NotificationSource& source, |
353 const content::NotificationDetails& details) { | 353 const content::NotificationDetails& details) { |
354 DCHECK_EQ(chrome::NOTIFICATION_APP_TERMINATING, type); | 354 DCHECK_EQ(chrome::NOTIFICATION_APP_TERMINATING, type); |
355 if (!terminating_callback_.is_null()) | 355 if (!terminating_callback_.is_null()) |
356 terminating_callback_.Run(); | 356 terminating_callback_.Run(); |
357 } | 357 } |
OLD | NEW |