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

Unified Diff: chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc

Issue 2629643002: chromeos: Renames WmWindowAura to WmWindow (Closed)
Patch Set: feedback Created 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc
diff --git a/chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc b/chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc
index 190e92ef23647b86c07bcdea20f39444a636a63d..d4397994bbdcfadeac6a7ef68bc635d0591d2ad7 100644
--- a/chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc
+++ b/chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc
@@ -5,7 +5,6 @@
#include "chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.h"
#include "apps/ui/views/app_window_frame_view.h"
-#include "ash/aura/wm_window_aura.h"
#include "ash/common/ash_constants.h"
#include "ash/common/frame/custom_frame_view_ash.h"
#include "ash/common/shelf/shelf_item_types.h"
@@ -13,6 +12,7 @@
#include "ash/common/wm/window_state.h"
#include "ash/common/wm/window_state_delegate.h"
#include "ash/common/wm/window_state_observer.h"
+#include "ash/common/wm_window.h"
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/screen_util.h"
#include "ash/shared/app_types.h"
@@ -58,13 +58,12 @@ class NativeAppWindowStateDelegate : public ash::wm::WindowStateDelegate,
// control.
// TODO(pkotwicz): This is a hack. Remove ASAP. http://crbug.com/319048
window_state_->AddObserver(this);
- ash::WmWindowAura::GetAuraWindow(window_state_->window())
- ->AddObserver(this);
+ ash::WmWindow::GetAuraWindow(window_state_->window())->AddObserver(this);
}
~NativeAppWindowStateDelegate() override {
if (window_state_) {
window_state_->RemoveObserver(this);
- ash::WmWindowAura::GetAuraWindow(window_state_->window())
+ ash::WmWindow::GetAuraWindow(window_state_->window())
->RemoveObserver(this);
}
}
@@ -107,8 +106,7 @@ class NativeAppWindowStateDelegate : public ash::wm::WindowStateDelegate,
// Overridden from aura::WindowObserver:
void OnWindowDestroying(aura::Window* window) override {
window_state_->RemoveObserver(this);
- ash::WmWindowAura::GetAuraWindow(window_state_->window())
- ->RemoveObserver(this);
+ ash::WmWindow::GetAuraWindow(window_state_->window())->RemoveObserver(this);
window_state_ = NULL;
}
« no previous file with comments | « chrome/browser/ui/ash/shelf_browsertest.cc ('k') | chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698