OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "app/gfx/chrome_canvas.h" | 5 #include "app/gfx/chrome_canvas.h" |
| 6 #include "app/gfx/path.h" |
6 #include "base/clipboard.h" | 7 #include "base/clipboard.h" |
7 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
8 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
9 #include "chrome/common/gfx/path.h" | |
10 #include "chrome/common/notification_service.h" | 10 #include "chrome/common/notification_service.h" |
11 #include "chrome/views/background.h" | 11 #include "chrome/views/background.h" |
12 #include "chrome/views/controls/button/checkbox.h" | 12 #include "chrome/views/controls/button/checkbox.h" |
13 #if defined(OS_WIN) | 13 #if defined(OS_WIN) |
14 #include "chrome/views/controls/button/native_button_win.h" | 14 #include "chrome/views/controls/button/native_button_win.h" |
15 #endif | 15 #endif |
16 #include "chrome/views/controls/scroll_view.h" | 16 #include "chrome/views/controls/scroll_view.h" |
17 #include "chrome/views/controls/text_field.h" | 17 #include "chrome/views/controls/text_field.h" |
18 #include "chrome/views/event.h" | 18 #include "chrome/views/event.h" |
19 #include "chrome/views/view.h" | 19 #include "chrome/views/view.h" |
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1002 SimularePressingEnterAndCheckDefaultButton(OK); | 1002 SimularePressingEnterAndCheckDefaultButton(OK); |
1003 | 1003 |
1004 // Focus the cancel button. | 1004 // Focus the cancel button. |
1005 client_view_->FocusWillChange(NULL, cancel_button_); | 1005 client_view_->FocusWillChange(NULL, cancel_button_); |
1006 EXPECT_FALSE(ok_button_->is_default()); | 1006 EXPECT_FALSE(ok_button_->is_default()); |
1007 EXPECT_TRUE(cancel_button_->is_default()); | 1007 EXPECT_TRUE(cancel_button_->is_default()); |
1008 EXPECT_FALSE(dialog_view_->button1_->is_default()); | 1008 EXPECT_FALSE(dialog_view_->button1_->is_default()); |
1009 EXPECT_FALSE(dialog_view_->button2_->is_default()); | 1009 EXPECT_FALSE(dialog_view_->button2_->is_default()); |
1010 SimularePressingEnterAndCheckDefaultButton(CANCEL); | 1010 SimularePressingEnterAndCheckDefaultButton(CANCEL); |
1011 } | 1011 } |
OLD | NEW |