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

Side by Side Diff: ui/aura/root_window.cc

Issue 9837046: Revert r128507 "Revert r128436 "relanding: disabled workspace_window_resizer test. fixed access-aft… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « ui/aura/root_window.h ('k') | ui/aura/root_window_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/aura/root_window.h ('k') | ui/aura/root_window_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698