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/printing/print_dialog_cloud.h" | 5 #include "chrome/browser/printing/print_dialog_cloud.h" |
6 #include "chrome/browser/printing/print_dialog_cloud_internal.h" | 6 #include "chrome/browser/printing/print_dialog_cloud_internal.h" |
7 | 7 |
8 #include <functional> | 8 #include <functional> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 BrowserWindow* window = browser()->window(); | 255 BrowserWindow* window = browser()->window(); |
256 ASSERT_TRUE(window); | 256 ASSERT_TRUE(window); |
257 gfx::NativeWindow native_window = window->GetNativeHandle(); | 257 gfx::NativeWindow native_window = window->GetNativeHandle(); |
258 ASSERT_TRUE(native_window); | 258 ASSERT_TRUE(native_window); |
259 bool key_sent = ui_controls::SendKeyPress(native_window, ui::VKEY_ESCAPE, | 259 bool key_sent = ui_controls::SendKeyPress(native_window, ui::VKEY_ESCAPE, |
260 false, false, false, false); | 260 false, false, false, false); |
261 EXPECT_TRUE(key_sent); | 261 EXPECT_TRUE(key_sent); |
262 if (key_sent) | 262 if (key_sent) |
263 tab_closed_observer.Wait(); | 263 tab_closed_observer.Wait(); |
264 } | 264 } |
OLD | NEW |