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

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

Issue 10911074: Change how ui::Clipboard is accessed so there's only one per thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch cleanup Created 8 years, 3 months 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) 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 <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 18 matching lines...) Expand all
29 #endif 29 #endif
30 30
31 #if defined(TOOLKIT_VIEWS) 31 #if defined(TOOLKIT_VIEWS)
32 32
33 class AccessibilityViewsDelegate : public views::ViewsDelegate { 33 class AccessibilityViewsDelegate : public views::ViewsDelegate {
34 public: 34 public:
35 AccessibilityViewsDelegate() {} 35 AccessibilityViewsDelegate() {}
36 virtual ~AccessibilityViewsDelegate() {} 36 virtual ~AccessibilityViewsDelegate() {}
37 37
38 // Overridden from views::ViewsDelegate: 38 // Overridden from views::ViewsDelegate:
39 virtual ui::Clipboard* GetClipboard() const OVERRIDE { return NULL; }
40 virtual void SaveWindowPlacement(const views::Widget* window, 39 virtual void SaveWindowPlacement(const views::Widget* window,
41 const std::string& window_name, 40 const std::string& window_name,
42 const gfx::Rect& bounds, 41 const gfx::Rect& bounds,
43 ui::WindowShowState show_state) OVERRIDE { 42 ui::WindowShowState show_state) OVERRIDE {
44 } 43 }
45 virtual bool GetSavedWindowPlacement( 44 virtual bool GetSavedWindowPlacement(
46 const std::string& window_name, 45 const std::string& window_name,
47 gfx::Rect* bounds, 46 gfx::Rect* bounds,
48 ui::WindowShowState* show_state) const OVERRIDE { 47 ui::WindowShowState* show_state) const OVERRIDE {
49 return false; 48 return false;
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 330
332 // Test that we got the event with the expected name and context. 331 // Test that we got the event with the expected name and context.
333 EXPECT_EQ(1, focus_event_count_); 332 EXPECT_EQ(1, focus_event_count_);
334 EXPECT_EQ(kButtonNameASCII, last_control_name_); 333 EXPECT_EQ(kButtonNameASCII, last_control_name_);
335 EXPECT_EQ(kAlertTextASCII, last_control_context_); 334 EXPECT_EQ(kAlertTextASCII, last_control_context_);
336 335
337 window->CloseNow(); 336 window->CloseNow();
338 } 337 }
339 338
340 #endif // defined(TOOLKIT_VIEWS) 339 #endif // defined(TOOLKIT_VIEWS)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698