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

Unified Diff: ash/wm/property_util.cc

Issue 24108003: [Cleanup] Rename WindowSettings to WindowState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase fix Created 7 years, 3 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/wm/property_util.h ('k') | ash/wm/stacking_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/property_util.cc
diff --git a/ash/wm/property_util.cc b/ash/wm/property_util.cc
deleted file mode 100644
index f78eebd5bb030f7ed5e3f3a276a57628ae8f01b6..0000000000000000000000000000000000000000
--- a/ash/wm/property_util.cc
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ash/wm/property_util.h"
-
-#include "ash/screen_ash.h"
-#include "ash/wm/window_properties.h"
-#include "ui/aura/client/aura_constants.h"
-#include "ui/aura/window.h"
-#include "ui/base/ui_base_types.h"
-#include "ui/gfx/rect.h"
-
-namespace ash {
-
-void SetRestoreBoundsInScreen(aura::Window* window, const gfx::Rect& bounds) {
- window->SetProperty(aura::client::kRestoreBoundsKey, new gfx::Rect(bounds));
-}
-
-void SetRestoreBoundsInParent(aura::Window* window, const gfx::Rect& bounds) {
- SetRestoreBoundsInScreen(window,
- ScreenAsh::ConvertRectToScreen(window->parent(), bounds));
-}
-
-const gfx::Rect* GetRestoreBoundsInScreen(aura::Window* window) {
- return window->GetProperty(aura::client::kRestoreBoundsKey);
-}
-
-gfx::Rect GetRestoreBoundsInParent(aura::Window* window) {
- const gfx::Rect* rect = GetRestoreBoundsInScreen(window);
- if (!rect)
- return gfx::Rect();
- return ScreenAsh::ConvertRectFromScreen(window->parent(), *rect);
-}
-
-void ClearRestoreBounds(aura::Window* window) {
- window->ClearProperty(aura::client::kRestoreBoundsKey);
-}
-
-void SetWindowAlwaysRestoresToRestoreBounds(aura::Window* window, bool value) {
- window->SetProperty(internal::kWindowRestoresToRestoreBounds, value);
-}
-
-bool GetWindowAlwaysRestoresToRestoreBounds(const aura::Window* window) {
- return window->GetProperty(internal::kWindowRestoresToRestoreBounds);
-}
-
-} // namespace ash
« no previous file with comments | « ash/wm/property_util.h ('k') | ash/wm/stacking_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698