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

Unified Diff: ash/shell/window_watcher.cc

Issue 115153002: wm: public window_types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ozone deps Created 7 years 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
« no previous file with comments | « ash/shelf/shelf_layout_manager_unittest.cc ('k') | ash/shell/window_watcher_shelf_item_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell/window_watcher.cc
diff --git a/ash/shell/window_watcher.cc b/ash/shell/window_watcher.cc
index 988985a5e46d1dc63022a1ff3841ccc010c2644e..f63eeec8fce79145219b8e138652a606cd2cd1f3 100644
--- a/ash/shell/window_watcher.cc
+++ b/ash/shell/window_watcher.cc
@@ -93,15 +93,16 @@ aura::Window* WindowWatcher::GetWindowByID(ash::LauncherID id) {
// aura::WindowObserver overrides:
void WindowWatcher::OnWindowAdded(aura::Window* new_window) {
- if (new_window->type() != aura::client::WINDOW_TYPE_NORMAL &&
- new_window->type() != aura::client::WINDOW_TYPE_PANEL)
+ if (new_window->type() != ui::wm::WINDOW_TYPE_NORMAL &&
+ new_window->type() != ui::wm::WINDOW_TYPE_PANEL)
return;
static int image_count = 0;
ShelfModel* model = Shell::GetInstance()->shelf_model();
LauncherItem item;
- item.type = new_window->type() == aura::client::WINDOW_TYPE_PANEL ?
- ash::TYPE_APP_PANEL : ash::TYPE_PLATFORM_APP;
+ item.type = new_window->type() == ui::wm::WINDOW_TYPE_PANEL
+ ? ash::TYPE_APP_PANEL
+ : ash::TYPE_PLATFORM_APP;
ash::LauncherID id = model->next_id();
id_to_window_[id] = new_window;
« no previous file with comments | « ash/shelf/shelf_layout_manager_unittest.cc ('k') | ash/shell/window_watcher_shelf_item_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698