| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |