| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/aura/root_window.h" | 5 #include "ui/aura/root_window.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 | 387 |
| 388 void RootWindow::ReleaseMouseMoves() { | 388 void RootWindow::ReleaseMouseMoves() { |
| 389 if (should_hold_mouse_moves_) { | 389 if (should_hold_mouse_moves_) { |
| 390 --mouse_move_hold_count_; | 390 --mouse_move_hold_count_; |
| 391 DCHECK_GE(mouse_move_hold_count_, 0); | 391 DCHECK_GE(mouse_move_hold_count_, 0); |
| 392 if (!mouse_move_hold_count_) | 392 if (!mouse_move_hold_count_) |
| 393 DispatchHeldMouseMove(); | 393 DispatchHeldMouseMove(); |
| 394 } | 394 } |
| 395 } | 395 } |
| 396 | 396 |
| 397 void RootWindow::SetFocusWhenShown(bool focused) { |
| 398 host_->SetFocusWhenShown(focused); |
| 399 } |
| 400 |
| 397 //////////////////////////////////////////////////////////////////////////////// | 401 //////////////////////////////////////////////////////////////////////////////// |
| 398 // RootWindow, Window overrides: | 402 // RootWindow, Window overrides: |
| 399 | 403 |
| 400 RootWindow* RootWindow::GetRootWindow() { | 404 RootWindow* RootWindow::GetRootWindow() { |
| 401 return this; | 405 return this; |
| 402 } | 406 } |
| 403 | 407 |
| 404 const RootWindow* RootWindow::GetRootWindow() const { | 408 const RootWindow* RootWindow::GetRootWindow() const { |
| 405 return this; | 409 return this; |
| 406 } | 410 } |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 809 // is currently broken. See/ crbug.com/107931. | 813 // is currently broken. See/ crbug.com/107931. |
| 810 MouseEvent event(ui::ET_MOUSE_MOVED, | 814 MouseEvent event(ui::ET_MOUSE_MOVED, |
| 811 orig_mouse_location, | 815 orig_mouse_location, |
| 812 orig_mouse_location, | 816 orig_mouse_location, |
| 813 ui::EF_IS_SYNTHESIZED); | 817 ui::EF_IS_SYNTHESIZED); |
| 814 DispatchMouseEvent(&event); | 818 DispatchMouseEvent(&event); |
| 815 #endif | 819 #endif |
| 816 } | 820 } |
| 817 | 821 |
| 818 } // namespace aura | 822 } // namespace aura |
| OLD | NEW |