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

Side by Side Diff: chrome/browser/chromeos/arc/accessibility/arc_accessibility_helper_bridge_unittest.cc

Issue 2949353003: Implement large cursors in Mushrome. (Closed)
Patch Set: rename everything to CursorSize Created 3 years, 6 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/browser/chromeos/arc/accessibility/arc_accessibility_helper_bri dge.h" 5 #include "chrome/browser/chromeos/arc/accessibility/arc_accessibility_helper_bri dge.h"
6 6
7 #include <unordered_map> 7 #include <unordered_map>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 17 matching lines...) Expand all
28 const display::ManagedDisplayInfo& GetDisplayInfo( 28 const display::ManagedDisplayInfo& GetDisplayInfo(
29 int64_t display_id) const override { 29 int64_t display_id) const override {
30 static const display::ManagedDisplayInfo info; 30 static const display::ManagedDisplayInfo info;
31 return info; 31 return info;
32 } 32 }
33 aura::Window* GetPrimaryDisplayContainer(int container_id) override { 33 aura::Window* GetPrimaryDisplayContainer(int container_id) override {
34 return nullptr; 34 return nullptr;
35 } 35 }
36 aura::Window* GetActiveWindow() const override { return nullptr; } 36 aura::Window* GetActiveWindow() const override { return nullptr; }
37 aura::Window* GetFocusedWindow() const override { return nullptr; } 37 aura::Window* GetFocusedWindow() const override { return nullptr; }
38 ui::CursorSetType GetCursorSet() const override { 38 ui::CursorSize GetCursorSize() const override {
39 return ui::CursorSetType::CURSOR_SET_NORMAL; 39 return ui::CursorSize::kNormal;
40 } 40 }
41 const display::Display& GetCursorDisplay() const override { 41 const display::Display& GetCursorDisplay() const override {
42 static const display::Display display; 42 static const display::Display display;
43 return display; 43 return display;
44 } 44 }
45 void AddPreTargetHandler(ui::EventHandler* handler) override {} 45 void AddPreTargetHandler(ui::EventHandler* handler) override {}
46 void PrependPreTargetHandler(ui::EventHandler* handler) override {} 46 void PrependPreTargetHandler(ui::EventHandler* handler) override {}
47 void RemovePreTargetHandler(ui::EventHandler* handler) override {} 47 void RemovePreTargetHandler(ui::EventHandler* handler) override {}
48 void AddPostTargetHandler(ui::EventHandler* handler) override {} 48 void AddPostTargetHandler(ui::EventHandler* handler) override {}
49 void RemovePostTargetHandler(ui::EventHandler* handler) override {} 49 void RemovePostTargetHandler(ui::EventHandler* handler) override {}
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 helper_bridge->OnAccessibilityEvent(event.Clone()); 164 helper_bridge->OnAccessibilityEvent(event.Clone());
165 ASSERT_EQ(0U, package_to_tree.size()); 165 ASSERT_EQ(0U, package_to_tree.size());
166 166
167 // Task 1 is now current. 167 // Task 1 is now current.
168 helper_bridge->OnTaskSetActive(1); 168 helper_bridge->OnTaskSetActive(1);
169 helper_bridge->OnAccessibilityEvent(event.Clone()); 169 helper_bridge->OnAccessibilityEvent(event.Clone());
170 ASSERT_EQ(1U, package_to_tree.size()); 170 ASSERT_EQ(1U, package_to_tree.size());
171 } 171 }
172 172
173 } // namespace arc 173 } // namespace arc
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/accessibility/accessibility_manager.cc ('k') | components/exo/pointer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698