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

Side by Side Diff: chrome/test/webdriver/session_manager.h

Issue 6630001: Allow webdriver users to choose between sending the key events when... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 9 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) 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 #ifndef CHROME_TEST_WEBDRIVER_SESSION_MANAGER_H_ 5 #ifndef CHROME_TEST_WEBDRIVER_SESSION_MANAGER_H_
6 #define CHROME_TEST_WEBDRIVER_SESSION_MANAGER_H_ 6 #define CHROME_TEST_WEBDRIVER_SESSION_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 23 matching lines...) Expand all
34 Session* GetSession(const std::string& id) const; 34 Session* GetSession(const std::string& id) const;
35 35
36 void set_port(const std::string& port); 36 void set_port(const std::string& port);
37 37
38 void set_url_base(const std::string& url_base); 38 void set_url_base(const std::string& url_base);
39 std::string url_base() const; 39 std::string url_base() const;
40 40
41 void set_chrome_dir(const FilePath& chrome_dir); 41 void set_chrome_dir(const FilePath& chrome_dir);
42 FilePath chrome_dir() const; 42 FilePath chrome_dir() const;
43 43
44 void set_use_native_events(bool use_native_events);
45 bool use_native_events() const;
46
44 private: 47 private:
45 SessionManager(); 48 SessionManager();
46 ~SessionManager(); 49 ~SessionManager();
47 friend struct DefaultSingletonTraits<SessionManager>; 50 friend struct DefaultSingletonTraits<SessionManager>;
48 51
49 std::map<std::string, Session*> map_; 52 std::map<std::string, Session*> map_;
50 mutable base::Lock map_lock_; 53 mutable base::Lock map_lock_;
51 std::string port_; 54 std::string port_;
52 std::string url_base_; 55 std::string url_base_;
53 FilePath chrome_dir_; 56 FilePath chrome_dir_;
57 bool use_native_events_;
54 58
55 DISALLOW_COPY_AND_ASSIGN(SessionManager); 59 DISALLOW_COPY_AND_ASSIGN(SessionManager);
56 }; 60 };
57 61
58 } // namespace webdriver 62 } // namespace webdriver
59 63
60 #endif // CHROME_TEST_WEBDRIVER_SESSION_MANAGER_H_ 64 #endif // CHROME_TEST_WEBDRIVER_SESSION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698