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

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

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 #include "chrome/test/webdriver/session_manager.h" 5 #include "chrome/test/webdriver/session_manager.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/test/webdriver/utility_functions.h" 8 #include "chrome/test/webdriver/utility_functions.h"
9 #include "net/base/net_util.h" 9 #include "net/base/net_util.h"
10 10
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 } 78 }
79 79
80 void SessionManager::set_chrome_dir(const FilePath& chrome_dir) { 80 void SessionManager::set_chrome_dir(const FilePath& chrome_dir) {
81 chrome_dir_ = chrome_dir; 81 chrome_dir_ = chrome_dir;
82 } 82 }
83 83
84 FilePath SessionManager::chrome_dir() const { 84 FilePath SessionManager::chrome_dir() const {
85 return chrome_dir_; 85 return chrome_dir_;
86 } 86 }
87 87
88 SessionManager::SessionManager() : port_(""), url_base_("") {} 88 void SessionManager::set_use_native_events(bool use_native_events) {
89 use_native_events_ = use_native_events;
90 }
91
92 bool SessionManager::use_native_events() const {
93 return use_native_events_;
94 }
95
96 SessionManager::SessionManager() : port_(""), url_base_(""),
97 use_native_events_(false) {}
89 98
90 SessionManager::~SessionManager() {} 99 SessionManager::~SessionManager() {}
91 100
92 // static 101 // static
93 SessionManager* SessionManager::GetInstance() { 102 SessionManager* SessionManager::GetInstance() {
94 return Singleton<SessionManager>::get(); 103 return Singleton<SessionManager>::get();
95 } 104 }
96 105
97 } // namespace webdriver 106 } // namespace webdriver
OLDNEW
« chrome/test/webdriver/session.cc ('K') | « chrome/test/webdriver/session_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698