OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/accessibility/accessibility_extension_api.h" | 10 #include "chrome/browser/accessibility/accessibility_extension_api.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 virtual void NotifyMenuItemFocused(const string16& menu_name, | 52 virtual void NotifyMenuItemFocused(const string16& menu_name, |
53 const string16& menu_item_name, | 53 const string16& menu_item_name, |
54 int item_index, | 54 int item_index, |
55 int item_count, | 55 int item_count, |
56 bool has_submenu) OVERRIDE {} | 56 bool has_submenu) OVERRIDE {} |
57 #if defined(OS_WIN) | 57 #if defined(OS_WIN) |
58 virtual HICON GetDefaultWindowIcon() const OVERRIDE { | 58 virtual HICON GetDefaultWindowIcon() const OVERRIDE { |
59 return NULL; | 59 return NULL; |
60 } | 60 } |
61 #endif | 61 #endif |
| 62 virtual views::NonClientFrameView* CreateDefaultNonClientFrameView( |
| 63 views::Widget* widget) OVERRIDE { |
| 64 return NULL; |
| 65 } |
62 virtual void AddRef() OVERRIDE {} | 66 virtual void AddRef() OVERRIDE {} |
63 virtual void ReleaseRef() OVERRIDE {} | 67 virtual void ReleaseRef() OVERRIDE {} |
64 | 68 |
65 virtual int GetDispositionForEvent(int event_flags) OVERRIDE { | 69 virtual int GetDispositionForEvent(int event_flags) OVERRIDE { |
66 return 0; | 70 return 0; |
67 } | 71 } |
68 | 72 |
69 DISALLOW_COPY_AND_ASSIGN(AccessibilityViewsDelegate); | 73 DISALLOW_COPY_AND_ASSIGN(AccessibilityViewsDelegate); |
70 }; | 74 }; |
71 | 75 |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 | 296 |
293 // Test that we got the event with the expected name and context. | 297 // Test that we got the event with the expected name and context. |
294 EXPECT_EQ(1, focus_event_count_); | 298 EXPECT_EQ(1, focus_event_count_); |
295 EXPECT_EQ(kButtonNameASCII, last_control_name_); | 299 EXPECT_EQ(kButtonNameASCII, last_control_name_); |
296 EXPECT_EQ(kAlertTextASCII, last_control_context_); | 300 EXPECT_EQ(kAlertTextASCII, last_control_context_); |
297 | 301 |
298 window->CloseNow(); | 302 window->CloseNow(); |
299 } | 303 } |
300 | 304 |
301 #endif // defined(TOOLKIT_VIEWS) | 305 #endif // defined(TOOLKIT_VIEWS) |
OLD | NEW |