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/extensions/extension_accessibility_api.h" | 10 #include "chrome/browser/extensions/extension_accessibility_api.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 public: | 28 public: |
29 AccessibilityViewsDelegate() {} | 29 AccessibilityViewsDelegate() {} |
30 virtual ~AccessibilityViewsDelegate() {} | 30 virtual ~AccessibilityViewsDelegate() {} |
31 | 31 |
32 // Overridden from views::ViewsDelegate: | 32 // Overridden from views::ViewsDelegate: |
33 virtual ui::Clipboard* GetClipboard() const OVERRIDE { return NULL; } | 33 virtual ui::Clipboard* GetClipboard() const OVERRIDE { return NULL; } |
34 virtual views::View* GetDefaultParentView() OVERRIDE { return NULL; } | 34 virtual views::View* GetDefaultParentView() OVERRIDE { return NULL; } |
35 virtual void SaveWindowPlacement(const views::Widget* window, | 35 virtual void SaveWindowPlacement(const views::Widget* window, |
36 const std::wstring& window_name, | 36 const std::wstring& window_name, |
37 const gfx::Rect& bounds, | 37 const gfx::Rect& bounds, |
38 bool maximized) OVERRIDE { | 38 ui::WindowShowState show_state) OVERRIDE { |
39 } | 39 } |
40 virtual bool GetSavedWindowBounds(const std::wstring& window_name, | 40 virtual bool GetSavedWindowPlacement( |
41 gfx::Rect* bounds) const OVERRIDE { | 41 const std::wstring& window_name, |
42 return false; | 42 gfx::Rect* bounds, |
43 } | 43 ui::WindowShowState* show_state) const OVERRIDE { |
44 virtual bool GetSavedMaximizedState(const std::wstring& window_name, | |
45 bool* maximized) const OVERRIDE { | |
46 return false; | 44 return false; |
47 } | 45 } |
48 virtual void NotifyAccessibilityEvent( | 46 virtual void NotifyAccessibilityEvent( |
49 views::View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE { | 47 views::View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE { |
50 AccessibilityEventRouterViews::GetInstance()->HandleAccessibilityEvent( | 48 AccessibilityEventRouterViews::GetInstance()->HandleAccessibilityEvent( |
51 view, event_type); | 49 view, event_type); |
52 } | 50 } |
53 virtual void NotifyMenuItemFocused( | 51 virtual void NotifyMenuItemFocused( |
54 const std::wstring& menu_name, | 52 const std::wstring& menu_name, |
55 const std::wstring& menu_item_name, | 53 const std::wstring& menu_item_name, |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 EXPECT_EQ(2, focus_event_count_); | 182 EXPECT_EQ(2, focus_event_count_); |
185 EXPECT_EQ(kButton3NewASCII, last_control_name_); | 183 EXPECT_EQ(kButton3NewASCII, last_control_name_); |
186 | 184 |
187 // Advance to button 1 and check the notification. | 185 // Advance to button 1 and check the notification. |
188 focus_manager->AdvanceFocus(false); | 186 focus_manager->AdvanceFocus(false); |
189 EXPECT_EQ(3, focus_event_count_); | 187 EXPECT_EQ(3, focus_event_count_); |
190 EXPECT_EQ(kButton1ASCII, last_control_name_); | 188 EXPECT_EQ(kButton1ASCII, last_control_name_); |
191 } | 189 } |
192 | 190 |
193 #endif // defined(TOOLKIT_VIEWS) | 191 #endif // defined(TOOLKIT_VIEWS) |
OLD | NEW |