| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "services/ui/ws/server_window.h" | 5 #include "services/ui/ws/server_window.h" |
| 6 | 6 |
| 7 #include <inttypes.h> | 7 #include <inttypes.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 } | 378 } |
| 379 | 379 |
| 380 void ServerWindow::SetUnderlayOffset(const gfx::Vector2d& offset) { | 380 void ServerWindow::SetUnderlayOffset(const gfx::Vector2d& offset) { |
| 381 if (offset == underlay_offset_) | 381 if (offset == underlay_offset_) |
| 382 return; | 382 return; |
| 383 | 383 |
| 384 underlay_offset_ = offset; | 384 underlay_offset_ = offset; |
| 385 delegate_->OnScheduleWindowPaint(this); | 385 delegate_->OnScheduleWindowPaint(this); |
| 386 } | 386 } |
| 387 | 387 |
| 388 void ServerWindow::OnEmbeddedAppDisconnected() { |
| 389 FOR_EACH_OBSERVER(ServerWindowObserver, observers_, |
| 390 OnWindowEmbeddedAppDisconnected(this)); |
| 391 } |
| 392 |
| 388 #if !defined(NDEBUG) || defined(DCHECK_ALWAYS_ON) | 393 #if !defined(NDEBUG) || defined(DCHECK_ALWAYS_ON) |
| 389 std::string ServerWindow::GetDebugWindowHierarchy() const { | 394 std::string ServerWindow::GetDebugWindowHierarchy() const { |
| 390 std::string result; | 395 std::string result; |
| 391 BuildDebugInfo(std::string(), &result); | 396 BuildDebugInfo(std::string(), &result); |
| 392 return result; | 397 return result; |
| 393 } | 398 } |
| 394 | 399 |
| 395 std::string ServerWindow::GetDebugWindowInfo() const { | 400 std::string ServerWindow::GetDebugWindowInfo() const { |
| 396 std::string name = GetName(); | 401 std::string name = GetName(); |
| 397 return base::StringPrintf( | 402 return base::StringPrintf( |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 } | 462 } |
| 458 | 463 |
| 459 // static | 464 // static |
| 460 ServerWindow** ServerWindow::GetStackingTarget(ServerWindow* window) { | 465 ServerWindow** ServerWindow::GetStackingTarget(ServerWindow* window) { |
| 461 return &window->stacking_target_; | 466 return &window->stacking_target_; |
| 462 } | 467 } |
| 463 | 468 |
| 464 } // namespace ws | 469 } // namespace ws |
| 465 | 470 |
| 466 } // namespace ui | 471 } // namespace ui |
| OLD | NEW |