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

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

Issue 9181012: Don't activate a window if screen is locked. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 11 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/window.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 MessageLoop::current()->PostTask( 444 MessageLoop::current()->PostTask(
445 FROM_HERE, 445 FROM_HERE,
446 base::Bind(&RootWindow::Draw, schedule_paint_factory_.GetWeakPtr())); 446 base::Bind(&RootWindow::Draw, schedule_paint_factory_.GetWeakPtr()));
447 } 447 }
448 } 448 }
449 449
450 bool RootWindow::CanFocus() const { 450 bool RootWindow::CanFocus() const {
451 return IsVisible(); 451 return IsVisible();
452 } 452 }
453 453
454 bool RootWindow::CanReceiveEvents() const {
455 return IsVisible();
456 }
457
454 internal::FocusManager* RootWindow::GetFocusManager() { 458 internal::FocusManager* RootWindow::GetFocusManager() {
455 return this; 459 return this;
456 } 460 }
457 461
458 RootWindow* RootWindow::GetRootWindow() { 462 RootWindow* RootWindow::GetRootWindow() {
459 return this; 463 return this;
460 } 464 }
461 465
462 void RootWindow::WindowDetachedFromRootWindow(Window* detached) { 466 void RootWindow::WindowDetachedFromRootWindow(Window* detached) {
463 DCHECK(capture_window_ != this); 467 DCHECK(capture_window_ != this);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 base::StringToInt(parts[1], &parsed_height) && parsed_height > 0) { 552 base::StringToInt(parts[1], &parsed_height) && parsed_height > 0) {
549 bounds.set_size(gfx::Size(parsed_width, parsed_height)); 553 bounds.set_size(gfx::Size(parsed_width, parsed_height));
550 } else if (use_fullscreen_host_window_) { 554 } else if (use_fullscreen_host_window_) {
551 bounds = gfx::Rect(RootWindowHost::GetNativeScreenSize()); 555 bounds = gfx::Rect(RootWindowHost::GetNativeScreenSize());
552 } 556 }
553 557
554 return bounds; 558 return bounds;
555 } 559 }
556 560
557 } // namespace aura 561 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/root_window.h ('k') | ui/aura/window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698