OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/modal_dialog_lock.h" | 5 #include "chrome/browser/modal_dialog_lock.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <Windows.h> | 8 #include <Windows.h> |
9 #endif | 9 #endif |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 #if !defined(OS_WIN) || defined(USE_AURA) | 45 #if !defined(OS_WIN) || defined(USE_AURA) |
46 NOTREACHED(); | 46 NOTREACHED(); |
47 #else | 47 #else |
48 ::SetForegroundWindow(active_dialog_); | 48 ::SetForegroundWindow(active_dialog_); |
49 #endif | 49 #endif |
50 return true; | 50 return true; |
51 } else { | 51 } else { |
52 return original_callback_.Run(command_line, current_directory); | 52 return original_callback_.Run(command_line, current_directory); |
53 } | 53 } |
54 } | 54 } |
OLD | NEW |