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

Unified Diff: ash/mus/bridge/wm_root_window_controller_mus.cc

Issue 2029883002: Moves mash/wm into ash/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_static_assert
Patch Set: move comment 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
« no previous file with comments | « ash/mus/bridge/wm_root_window_controller_mus.h ('k') | ash/mus/bridge/wm_shelf_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/bridge/wm_root_window_controller_mus.cc
diff --git a/mash/wm/bridge/wm_root_window_controller_mus.cc b/ash/mus/bridge/wm_root_window_controller_mus.cc
similarity index 73%
rename from mash/wm/bridge/wm_root_window_controller_mus.cc
rename to ash/mus/bridge/wm_root_window_controller_mus.cc
index 06ff9abc02766f3495785271ec82f137c1c99689..181af12918141cf2abc7c52ec7a263ef0983563d 100644
--- a/mash/wm/bridge/wm_root_window_controller_mus.cc
+++ b/ash/mus/bridge/wm_root_window_controller_mus.cc
@@ -2,30 +2,34 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "mash/wm/bridge/wm_root_window_controller_mus.h"
+#include "ash/mus/bridge/wm_root_window_controller_mus.h"
#include "ash/common/wm/wm_root_window_controller_observer.h"
+#include "ash/mus/bridge/wm_globals_mus.h"
+#include "ash/mus/bridge/wm_shelf_mus.h"
+#include "ash/mus/bridge/wm_window_mus.h"
+#include "ash/mus/container_ids.h"
+#include "ash/mus/root_window_controller.h"
#include "components/mus/public/cpp/window.h"
#include "components/mus/public/cpp/window_property.h"
#include "components/mus/public/cpp/window_tree_client.h"
-#include "mash/wm/bridge/wm_globals_mus.h"
-#include "mash/wm/bridge/wm_shelf_mus.h"
-#include "mash/wm/bridge/wm_window_mus.h"
-#include "mash/wm/container_ids.h"
-#include "mash/wm/root_window_controller.h"
#include "ui/display/display.h"
#include "ui/views/mus/native_widget_mus.h"
#include "ui/views/widget/widget.h"
-MUS_DECLARE_WINDOW_PROPERTY_TYPE(mash::wm::WmRootWindowControllerMus*);
+MUS_DECLARE_WINDOW_PROPERTY_TYPE(ash::mus::WmRootWindowControllerMus*);
-namespace mash {
-namespace wm {
+namespace {
-MUS_DEFINE_LOCAL_WINDOW_PROPERTY_KEY(mash::wm::WmRootWindowControllerMus*,
+MUS_DEFINE_LOCAL_WINDOW_PROPERTY_KEY(ash::mus::WmRootWindowControllerMus*,
kWmRootWindowControllerKey,
nullptr);
+} // namespace
+
+namespace ash {
+namespace mus {
+
WmRootWindowControllerMus::WmRootWindowControllerMus(
WmGlobalsMus* globals,
RootWindowController* root_window_controller)
@@ -41,7 +45,7 @@ WmRootWindowControllerMus::~WmRootWindowControllerMus() {
// static
const WmRootWindowControllerMus* WmRootWindowControllerMus::Get(
- const mus::Window* window) {
+ const ::mus::Window* window) {
if (!window)
return nullptr;
@@ -50,7 +54,7 @@ const WmRootWindowControllerMus* WmRootWindowControllerMus::Get(
void WmRootWindowControllerMus::NotifyFullscreenStateChange(
bool is_fullscreen) {
- FOR_EACH_OBSERVER(ash::wm::WmRootWindowControllerObserver, observers_,
+ FOR_EACH_OBSERVER(wm::WmRootWindowControllerObserver, observers_,
OnFullscreenStateChanged(is_fullscreen));
}
@@ -79,26 +83,24 @@ bool WmRootWindowControllerMus::HasShelf() {
return GetShelf() != nullptr;
}
-ash::wm::WmGlobals* WmRootWindowControllerMus::GetGlobals() {
+wm::WmGlobals* WmRootWindowControllerMus::GetGlobals() {
return globals_;
}
-ash::wm::WorkspaceWindowState
-WmRootWindowControllerMus::GetWorkspaceWindowState() {
+wm::WorkspaceWindowState WmRootWindowControllerMus::GetWorkspaceWindowState() {
NOTIMPLEMENTED();
- return ash::wm::WORKSPACE_WINDOW_STATE_DEFAULT;
+ return wm::WORKSPACE_WINDOW_STATE_DEFAULT;
}
-ash::AlwaysOnTopController*
-WmRootWindowControllerMus::GetAlwaysOnTopController() {
+AlwaysOnTopController* WmRootWindowControllerMus::GetAlwaysOnTopController() {
return root_window_controller_->always_on_top_controller();
}
-ash::wm::WmShelf* WmRootWindowControllerMus::GetShelf() {
+wm::WmShelf* WmRootWindowControllerMus::GetShelf() {
return root_window_controller_->wm_shelf();
}
-ash::wm::WmWindow* WmRootWindowControllerMus::GetWindow() {
+wm::WmWindow* WmRootWindowControllerMus::GetWindow() {
return WmWindowMus::Get(root_window_controller_->root());
}
@@ -110,30 +112,30 @@ void WmRootWindowControllerMus::ConfigureWidgetInitParamsForContainer(
WmWindowMus::Get(root_window_controller_->root())
->GetChildByShellWindowId(shell_container_id));
DCHECK(init_params->parent_mus);
- mus::Window* new_window =
+ ::mus::Window* new_window =
root_window_controller_->root()->window_tree()->NewWindow();
WmWindowMus::Get(new_window)
->set_widget(widget, WmWindowMus::WidgetCreationType::INTERNAL);
init_params->native_widget = new views::NativeWidgetMus(
widget, root_window_controller_->GetConnector(), new_window,
- mus::mojom::SurfaceType::DEFAULT);
+ ::mus::mojom::SurfaceType::DEFAULT);
}
-ash::wm::WmWindow* WmRootWindowControllerMus::FindEventTarget(
+wm::WmWindow* WmRootWindowControllerMus::FindEventTarget(
const gfx::Point& location_in_screen) {
NOTIMPLEMENTED();
return nullptr;
}
void WmRootWindowControllerMus::AddObserver(
- ash::wm::WmRootWindowControllerObserver* observer) {
+ wm::WmRootWindowControllerObserver* observer) {
observers_.AddObserver(observer);
}
void WmRootWindowControllerMus::RemoveObserver(
- ash::wm::WmRootWindowControllerObserver* observer) {
+ wm::WmRootWindowControllerObserver* observer) {
observers_.RemoveObserver(observer);
}
-} // namespace wm
-} // namespace mash
+} // namespace mus
+} // namespace ash
« no previous file with comments | « ash/mus/bridge/wm_root_window_controller_mus.h ('k') | ash/mus/bridge/wm_shelf_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698