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

Unified Diff: ash/devtools/ash_devtools_css_agent.cc

Issue 2821213002: chromeos: converts ash devtools to aura::Window (Closed)
Patch Set: fix cast Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: ash/devtools/ash_devtools_css_agent.cc
diff --git a/ash/devtools/ash_devtools_css_agent.cc b/ash/devtools/ash_devtools_css_agent.cc
index 45ac0735d45f6407a8e8f49bc44a18c0cb50f8d1..84c65d7d1e0c1a31cab815248c286cc98878964e 100644
--- a/ash/devtools/ash_devtools_css_agent.cc
+++ b/ash/devtools/ash_devtools_css_agent.cc
@@ -4,9 +4,9 @@
#include "ash/devtools/ash_devtools_css_agent.h"
-#include "ash/wm_window.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
+#include "ui/aura/window.h"
namespace ash {
namespace devtools {
@@ -163,7 +163,7 @@ ui::devtools::protocol::Response AshDevToolsCSSAgent::setStyleTexts(
return ui::devtools::protocol::Response::OK();
}
-void AshDevToolsCSSAgent::OnWindowBoundsChanged(WmWindow* window) {
+void AshDevToolsCSSAgent::OnWindowBoundsChanged(aura::Window* window) {
InvalidateStyleSheet(dom_agent_->GetNodeIdFromWindow(window));
}
@@ -192,9 +192,9 @@ void AshDevToolsCSSAgent::InvalidateStyleSheet(int node_id) {
bool AshDevToolsCSSAgent::GetPropertiesForNodeId(int node_id,
gfx::Rect* bounds,
bool* visible) {
- WmWindow* window = dom_agent_->GetWindowFromNodeId(node_id);
+ aura::Window* window = dom_agent_->GetWindowFromNodeId(node_id);
if (window) {
- *bounds = window->GetBounds();
+ *bounds = window->bounds();
*visible = window->IsVisible();
return true;
}
@@ -216,7 +216,7 @@ bool AshDevToolsCSSAgent::GetPropertiesForNodeId(int node_id,
bool AshDevToolsCSSAgent::SetPropertiesForNodeId(int node_id,
const gfx::Rect& bounds,
bool visible) {
- WmWindow* window = dom_agent_->GetWindowFromNodeId(node_id);
+ aura::Window* window = dom_agent_->GetWindowFromNodeId(node_id);
if (window) {
window->SetBounds(bounds);
if (visible != window->IsVisible()) {

Powered by Google App Engine
This is Rietveld 408576698