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

Side by Side Diff: ui/chromeos/touch_exploration_controller.h

Issue 2378773011: Only exclude workarea from touch-exploration with active shell-surface (Closed)
Patch Set: Created 4 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 UI_CHROMEOS_TOUCH_EXPLORATION_CONTROLLER_H_ 5 #ifndef UI_CHROMEOS_TOUCH_EXPLORATION_CONTROLLER_H_
6 #define UI_CHROMEOS_TOUCH_EXPLORATION_CONTROLLER_H_ 6 #define UI_CHROMEOS_TOUCH_EXPLORATION_CONTROLLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/timer/timer.h" 9 #include "base/timer/timer.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 explicit TouchExplorationController( 182 explicit TouchExplorationController(
183 aura::Window* root_window, 183 aura::Window* root_window,
184 ui::TouchExplorationControllerDelegate* delegate); 184 ui::TouchExplorationControllerDelegate* delegate);
185 ~TouchExplorationController() override; 185 ~TouchExplorationController() override;
186 186
187 // Make synthesized touch events are anchored at this point. This is 187 // Make synthesized touch events are anchored at this point. This is
188 // called when the object with accessibility focus is updated via something 188 // called when the object with accessibility focus is updated via something
189 // other than touch exploration. 189 // other than touch exploration.
190 void SetTouchAccessibilityAnchorPoint(const gfx::Point& anchor_point); 190 void SetTouchAccessibilityAnchorPoint(const gfx::Point& anchor_point);
191 191
192 void SetExcludeBounds(const gfx::Rect& bounds);
193
192 private: 194 private:
193 friend class TouchExplorationControllerTestApi; 195 friend class TouchExplorationControllerTestApi;
194 196
195 // Overridden from ui::EventRewriter 197 // Overridden from ui::EventRewriter
196 ui::EventRewriteStatus RewriteEvent( 198 ui::EventRewriteStatus RewriteEvent(
197 const ui::Event& event, 199 const ui::Event& event,
198 std::unique_ptr<ui::Event>* rewritten_event) override; 200 std::unique_ptr<ui::Event>* rewritten_event) override;
199 ui::EventRewriteStatus NextDispatchEvent( 201 ui::EventRewriteStatus NextDispatchEvent(
200 const ui::Event& last_event, 202 const ui::Event& last_event,
201 std::unique_ptr<ui::Event>* new_event) override; 203 std::unique_ptr<ui::Event>* new_event) override;
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 495
494 // The previous state entered. 496 // The previous state entered.
495 State prev_state_; 497 State prev_state_;
496 498
497 // A copy of the previous event passed. 499 // A copy of the previous event passed.
498 std::unique_ptr<ui::TouchEvent> prev_event_; 500 std::unique_ptr<ui::TouchEvent> prev_event_;
499 501
500 // This toggles whether VLOGS are turned on or not. 502 // This toggles whether VLOGS are turned on or not.
501 bool VLOG_on_; 503 bool VLOG_on_;
502 504
505 // LocatedEvents within this area should be left alone.
506 gfx::Rect exclude_bounds_;
507
503 DISALLOW_COPY_AND_ASSIGN(TouchExplorationController); 508 DISALLOW_COPY_AND_ASSIGN(TouchExplorationController);
504 }; 509 };
505 510
506 } // namespace ui 511 } // namespace ui
507 512
508 #endif // UI_CHROMEOS_TOUCH_EXPLORATION_CONTROLLER_H_ 513 #endif // UI_CHROMEOS_TOUCH_EXPLORATION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698