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

Unified Diff: ash/wm/base_layout_manager.h

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/ash_focus_rules.cc ('k') | ash/wm/base_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/base_layout_manager.h
diff --git a/ash/wm/base_layout_manager.h b/ash/wm/base_layout_manager.h
index 3156f14bd07eed3faa941188db8168baccbf81f8..f0deec6835f42eb556071fb39705cf0b01522224 100644
--- a/ash/wm/base_layout_manager.h
+++ b/ash/wm/base_layout_manager.h
@@ -9,7 +9,7 @@
#include "ash/ash_export.h"
#include "ash/shell_observer.h"
-#include "ash/wm/window_settings.h"
+#include "ash/wm/window_state.h"
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "ui/aura/client/activation_change_observer.h"
@@ -24,6 +24,10 @@ class Window;
}
namespace ash {
+namespace wm {
+class WindowState;
+}
+
namespace internal {
// BaseLayoutManager is the simplest possible implementation for a window
@@ -36,7 +40,7 @@ class ASH_EXPORT BaseLayoutManager
public aura::WindowObserver,
public aura::client::ActivationChangeObserver,
public ShellObserver,
- public wm::WindowSettings::Observer {
+ public wm::WindowState::Observer {
public:
typedef std::set<aura::Window*> WindowSet;
@@ -84,7 +88,7 @@ class ASH_EXPORT BaseLayoutManager
};
// Invoked from OnWindowPropertyChanged() if |kShowStateKey| changes.
- virtual void ShowStateChanged(aura::Window* window,
+ virtual void ShowStateChanged(wm::WindowState* window_state,
ui::WindowShowState last_show_state);
// Adjusts the window's bounds when the display area changes for given
@@ -100,14 +104,15 @@ class ASH_EXPORT BaseLayoutManager
// Adjusts the sizes of the specific window in respond to a screen change or
// display-area size change.
- virtual void AdjustWindowBoundsForWorkAreaChange(aura::Window* window,
- AdjustWindowReason reason);
+ virtual void AdjustWindowBoundsForWorkAreaChange(
+ wm::WindowState* window_state,
+ AdjustWindowReason reason);
aura::RootWindow* root_window() { return root_window_; }
private:
// Update window bounds based on a change in show state.
- void UpdateBoundsFromShowState(aura::Window* window);
+ void UpdateBoundsFromShowState(wm::WindowState* controller);
// Set of windows we're listening to.
WindowSet windows_;
« no previous file with comments | « ash/wm/ash_focus_rules.cc ('k') | ash/wm/base_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698