Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / ui / aura / test / test_cursor_client.cc
index f0411ef..ef1eba2 100644 (file)
@@ -11,6 +11,7 @@ namespace test {
 
 TestCursorClient::TestCursorClient(aura::Window* root_window)
     : visible_(true),
+      should_hide_cursor_on_key_event_(true),
       mouse_events_enabled_(true),
       cursor_lock_count_(0),
       calls_to_set_cursor_(0),
@@ -49,13 +50,6 @@ ui::CursorSetType TestCursorClient::GetCursorSet() const {
   return ui::CURSOR_SET_NORMAL;
 }
 
-void TestCursorClient::SetScale(float scale) {
-}
-
-float TestCursorClient::GetScale() const {
-  return 1.f;
-}
-
 bool TestCursorClient::IsCursorVisible() const {
   return visible_;
 }
@@ -99,5 +93,10 @@ void TestCursorClient::RemoveObserver(
   observers_.RemoveObserver(observer);
 }
 
+bool TestCursorClient::ShouldHideCursorOnKeyEvent(
+    const ui::KeyEvent& event) const {
+  return should_hide_cursor_on_key_event_;
+}
+
 }  // namespace test
 }  // namespace aura