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

Side by Side Diff: chrome_frame/test/chrome_frame_ui_test_utils.cc

Issue 8555001: base::Bind: Convert chrome_frame/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win-dies. 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
« no previous file with comments | « chrome_frame/test/chrome_frame_test_utils.h ('k') | chrome_frame/test/infobar_unittests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome_frame/test/chrome_frame_ui_test_utils.h" 5 #include "chrome_frame/test/chrome_frame_ui_test_utils.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include <sstream> 9 #include <sstream>
10 #include <stack> 10 #include <stack>
11 11
12 #include "base/bind.h"
12 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
13 #include "base/message_loop.h" 14 #include "base/message_loop.h"
14 #include "base/path_service.h" 15 #include "base/path_service.h"
15 #include "base/string_util.h" 16 #include "base/string_util.h"
16 #include "base/stringprintf.h" 17 #include "base/stringprintf.h"
17 #include "base/utf_string_conversions.h" 18 #include "base/utf_string_conversions.h"
18 #include "base/win/scoped_bstr.h" 19 #include "base/win/scoped_bstr.h"
19 #include "chrome/common/chrome_paths.h" 20 #include "chrome/common/chrome_paths.h"
20 #include "chrome_frame/test/win_event_receiver.h" 21 #include "chrome_frame/test/win_event_receiver.h"
21 #include "chrome_frame/utils.h" 22 #include "chrome_frame/utils.h"
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 is_watching_ = true; 652 is_watching_ = true;
652 watching_for_matcher_ = matcher; 653 watching_for_matcher_ = matcher;
653 } 654 }
654 655
655 void AccEventObserver::OnEventReceived(DWORD event, 656 void AccEventObserver::OnEventReceived(DWORD event,
656 HWND hwnd, 657 HWND hwnd,
657 LONG object_id, 658 LONG object_id,
658 LONG child_id) { 659 LONG child_id) {
659 // Process events in a separate task to stop reentrancy problems. 660 // Process events in a separate task to stop reentrancy problems.
660 DCHECK(MessageLoop::current()); 661 DCHECK(MessageLoop::current());
661 MessageLoop::current()->PostTask(FROM_HERE, 662 MessageLoop::current()->PostTask(
662 NewRunnableMethod(event_handler_.get(), &EventHandler::Handle, 663 FROM_HERE, base::Bind(&EventHandler::Handle, event_handler_.get(), event,
663 event, hwnd, object_id, child_id)); 664 hwnd, object_id, child_id));
664 } 665 }
665 666
666 // AccEventObserver::EventHandler methods 667 // AccEventObserver::EventHandler methods
667 AccEventObserver::EventHandler::EventHandler(AccEventObserver* observer) 668 AccEventObserver::EventHandler::EventHandler(AccEventObserver* observer)
668 : observer_(observer) { 669 : observer_(observer) {
669 } 670 }
670 671
671 void AccEventObserver::EventHandler::Handle(DWORD event, 672 void AccEventObserver::EventHandler::Handle(DWORD event,
672 HWND hwnd, 673 HWND hwnd,
673 LONG object_id, 674 LONG object_id,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 return desk; 739 return desk;
739 } 740 }
740 741
741 FilePath GetIAccessible2ProxyStubPath() { 742 FilePath GetIAccessible2ProxyStubPath() {
742 FilePath path; 743 FilePath path;
743 PathService::Get(chrome::DIR_APP, &path); 744 PathService::Get(chrome::DIR_APP, &path);
744 return path.AppendASCII("IAccessible2Proxy.dll"); 745 return path.AppendASCII("IAccessible2Proxy.dll");
745 } 746 }
746 747
747 } // namespace chrome_frame_test 748 } // namespace chrome_frame_test
OLDNEW
« no previous file with comments | « chrome_frame/test/chrome_frame_test_utils.h ('k') | chrome_frame/test/infobar_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698