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

Unified Diff: ui/aura/root_window.cc

Issue 10536033: aura: Remove --aura-disable-hold-mouse-moves flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "" Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/root_window.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window.cc
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index 0538c6f3831a87dc43e11a3a373412b013725d9a..b941669107d9bae895c880a39a4278f60f1e3fa1 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -130,13 +130,10 @@ RootWindow::RootWindow(const gfx::Rect& initial_bounds)
draw_on_compositing_end_(false),
defer_draw_scheduling_(false),
mouse_move_hold_count_(0),
- should_hold_mouse_moves_(false),
compositor_lock_(NULL),
draw_on_compositor_unlock_(false),
draw_trace_count_(0) {
SetName("RootWindow");
- should_hold_mouse_moves_ = !CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kAuraDisableHoldMouseMoves);
compositor_.reset(new ui::Compositor(this, host_->GetAcceleratedWidget()));
DCHECK(compositor_.get());
@@ -520,17 +517,14 @@ void RootWindow::ToggleFullScreen() {
#endif
void RootWindow::HoldMouseMoves() {
- if (should_hold_mouse_moves_)
- ++mouse_move_hold_count_;
+ ++mouse_move_hold_count_;
}
void RootWindow::ReleaseMouseMoves() {
- if (should_hold_mouse_moves_) {
- --mouse_move_hold_count_;
- DCHECK_GE(mouse_move_hold_count_, 0);
- if (!mouse_move_hold_count_)
- DispatchHeldMouseMove();
- }
+ --mouse_move_hold_count_;
+ DCHECK_GE(mouse_move_hold_count_, 0);
+ if (!mouse_move_hold_count_)
+ DispatchHeldMouseMove();
}
scoped_refptr<CompositorLock> RootWindow::GetCompositorLock() {
« no previous file with comments | « ui/aura/root_window.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698