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

Unified Diff: ash/system/status_area_widget.cc

Issue 2015043002: mash: Convert shelf to wm::WmWindow types, part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unused include Created 4 years, 7 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
« ash/shelf/shelf_widget.cc ('K') | « ash/system/status_area_widget.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/status_area_widget.cc
diff --git a/ash/system/status_area_widget.cc b/ash/system/status_area_widget.cc
index 054a2bfb03f917a8b4cbdd615fb3fde442925032..ff9c36b077e93962c10456342debd1d18b02d38b 100644
--- a/ash/system/status_area_widget.cc
+++ b/ash/system/status_area_widget.cc
@@ -4,7 +4,6 @@
#include "ash/system/status_area_widget.h"
-#include "ash/root_window_controller.h"
#include "ash/shelf/shelf_layout_manager.h"
#include "ash/shelf/shelf_widget.h"
#include "ash/shell.h"
@@ -15,9 +14,10 @@
#include "ash/system/tray/system_tray.h"
#include "ash/system/tray/system_tray_delegate.h"
#include "ash/system/web_notification/web_notification_tray.h"
+#include "ash/wm/common/wm_root_window_controller.h"
+#include "ash/wm/common/wm_window.h"
#include "ash/wm/window_properties.h"
#include "base/i18n/time_formatting.h"
-#include "ui/aura/window.h"
#if defined(OS_CHROMEOS)
#include "ash/system/chromeos/session/logout_button_tray.h"
@@ -26,7 +26,7 @@
namespace ash {
-StatusAreaWidget::StatusAreaWidget(aura::Window* status_container,
+StatusAreaWidget::StatusAreaWidget(wm::WmWindow* status_container,
ShelfWidget* shelf_widget)
: status_area_widget_delegate_(new StatusAreaWidgetDelegate),
overview_button_tray_(NULL),
@@ -42,8 +42,10 @@ StatusAreaWidget::StatusAreaWidget(aura::Window* status_container,
views::Widget::InitParams::TYPE_WINDOW_FRAMELESS);
params.delegate = status_area_widget_delegate_;
params.name = "StatusAreaWidget";
- params.parent = status_container;
params.opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW;
+ status_container->GetRootWindowController()
+ ->ConfigureWidgetInitParamsForContainer(
+ this, status_container->GetShellWindowId(), &params);
Init(params);
set_focus_on_creation(false);
SetContentsView(status_area_widget_delegate_);
« ash/shelf/shelf_widget.cc ('K') | « ash/system/status_area_widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698