| 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/ash/launcher/app_shortcut_launcher_item_controller.h
" | 5 #include "chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h
" |
| 6 | 6 |
| 7 #include "apps/native_app_window.h" | 7 #include "apps/ui/native_app_window.h" |
| 8 #include "ash/wm/window_util.h" | 8 #include "ash/wm/window_util.h" |
| 9 #include "chrome/browser/extensions/extension_process_manager.h" | 9 #include "chrome/browser/extensions/extension_process_manager.h" |
| 10 #include "chrome/browser/extensions/extension_system.h" | 10 #include "chrome/browser/extensions/extension_system.h" |
| 11 #include "chrome/browser/favicon/favicon_tab_helper.h" | 11 #include "chrome/browser/favicon/favicon_tab_helper.h" |
| 12 #include "chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item.h" | 12 #include "chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item.h" |
| 13 #include "chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_tab.h" | 13 #include "chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_tab.h" |
| 14 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" | 14 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" |
| 15 #include "chrome/browser/ui/ash/launcher/launcher_item_controller.h" | 15 #include "chrome/browser/ui/ash/launcher/launcher_item_controller.h" |
| 16 #include "chrome/browser/ui/browser.h" | 16 #include "chrome/browser/ui/browser.h" |
| 17 #include "chrome/browser/ui/browser_finder.h" | 17 #include "chrome/browser/ui/browser_finder.h" |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 | 316 |
| 317 bool AppShortcutLauncherItemController::AllowNextLaunchAttempt() { | 317 bool AppShortcutLauncherItemController::AllowNextLaunchAttempt() { |
| 318 if (last_launch_attempt_.is_null() || | 318 if (last_launch_attempt_.is_null() || |
| 319 last_launch_attempt_ + base::TimeDelta::FromMilliseconds( | 319 last_launch_attempt_ + base::TimeDelta::FromMilliseconds( |
| 320 kClickSuppressionInMS) < base::Time::Now()) { | 320 kClickSuppressionInMS) < base::Time::Now()) { |
| 321 last_launch_attempt_ = base::Time::Now(); | 321 last_launch_attempt_ = base::Time::Now(); |
| 322 return true; | 322 return true; |
| 323 } | 323 } |
| 324 return false; | 324 return false; |
| 325 } | 325 } |
| OLD | NEW |