Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1061)

Side by Side Diff: chrome/browser/ui/views/accessibility_event_router_views_unittest.cc

Issue 8598024: Now that we are doing a hard-cut-over to Aura, remove a bunch of *Views based classes that are ob... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 13 matching lines...) Expand all
24 24
25 #if defined(TOOLKIT_VIEWS) 25 #if defined(TOOLKIT_VIEWS)
26 26
27 class AccessibilityViewsDelegate : public views::ViewsDelegate { 27 class AccessibilityViewsDelegate : public views::ViewsDelegate {
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; }
35 virtual void SaveWindowPlacement(const views::Widget* window, 34 virtual void SaveWindowPlacement(const views::Widget* window,
36 const std::string& window_name, 35 const std::string& window_name,
37 const gfx::Rect& bounds, 36 const gfx::Rect& bounds,
38 ui::WindowShowState show_state) OVERRIDE { 37 ui::WindowShowState show_state) OVERRIDE {
39 } 38 }
40 virtual bool GetSavedWindowPlacement( 39 virtual bool GetSavedWindowPlacement(
41 const std::string& window_name, 40 const std::string& window_name,
42 gfx::Rect* bounds, 41 gfx::Rect* bounds,
43 ui::WindowShowState* show_state) const OVERRIDE { 42 ui::WindowShowState* show_state) const OVERRIDE {
44 return false; 43 return false;
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 EXPECT_EQ(2, focus_event_count_); 180 EXPECT_EQ(2, focus_event_count_);
182 EXPECT_EQ(kButton3NewASCII, last_control_name_); 181 EXPECT_EQ(kButton3NewASCII, last_control_name_);
183 182
184 // Advance to button 1 and check the notification. 183 // Advance to button 1 and check the notification.
185 focus_manager->AdvanceFocus(false); 184 focus_manager->AdvanceFocus(false);
186 EXPECT_EQ(3, focus_event_count_); 185 EXPECT_EQ(3, focus_event_count_);
187 EXPECT_EQ(kButton1ASCII, last_control_name_); 186 EXPECT_EQ(kButton1ASCII, last_control_name_);
188 } 187 }
189 188
190 #endif // defined(TOOLKIT_VIEWS) 189 #endif // defined(TOOLKIT_VIEWS)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698