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

Unified Diff: ash/wm/common/window_state.h

Issue 1921353002: Moves handful of files to ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shell_ids
Patch Set: merge to trunk Created 4 years, 8 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/common/window_resizer.cc ('k') | ash/wm/common/window_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/common/window_state.h
diff --git a/ash/wm/window_state.h b/ash/wm/common/window_state.h
similarity index 97%
rename from ash/wm/window_state.h
rename to ash/wm/common/window_state.h
index 4841555f4f500305f1ec7fcf3a02625f5dac0fb7..0d33a7eef65cb21ba13b339de53eba67b5414548 100644
--- a/ash/wm/window_state.h
+++ b/ash/wm/common/window_state.h
@@ -2,14 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ASH_WM_WINDOW_STATE_H_
-#define ASH_WM_WINDOW_STATE_H_
+#ifndef ASH_WM_COMMON_WINDOW_STATE_H_
+#define ASH_WM_COMMON_WINDOW_STATE_H_
#include <memory>
#include "ash/ash_export.h"
+#include "ash/wm/common/drag_details.h"
#include "ash/wm/common/wm_types.h"
-#include "ash/wm/drag_details.h"
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/observer_list.h"
@@ -46,7 +46,6 @@ class WmWindow;
// accessing the window using |window()| is cheap.
class ASH_EXPORT WindowState {
public:
-
// A subclass of State class represents one of the window's states
// that corresponds to WindowStateType in Ash environment, e.g.
// maximized, minimized or side snapped, as subclass.
@@ -203,17 +202,13 @@ class ASH_EXPORT WindowState {
// when shown.
// TODO(oshima): Consolidate this and window_position_managed
// into single parameter to control the window placement.
- bool minimum_visibility() const {
- return minimum_visibility_;
- }
+ bool minimum_visibility() const { return minimum_visibility_; }
void set_minimum_visibility(bool minimum_visibility) {
minimum_visibility_ = minimum_visibility;
}
// Specifies if the window can be dragged by the user via the caption or not.
- bool can_be_dragged() const {
- return can_be_dragged_;
- }
+ bool can_be_dragged() const { return can_be_dragged_; }
void set_can_be_dragged(bool can_be_dragged) {
can_be_dragged_ = can_be_dragged;
}
@@ -245,9 +240,7 @@ class ASH_EXPORT WindowState {
void set_bounds_changed_by_user(bool bounds_changed_by_user);
// True if this window is an attached panel.
- bool panel_attached() const {
- return panel_attached_;
- }
+ bool panel_attached() const { return panel_attached_; }
void set_panel_attached(bool panel_attached) {
panel_attached_ = panel_attached;
}
@@ -280,9 +273,7 @@ class ASH_EXPORT WindowState {
// different from the normal fullscreen mode by allowing the user to reveal
// the top portion of the window through a touch / mouse gesture. It might
// also allow the shelf to be shown in some situations.
- bool in_immersive_fullscreen() const {
- return in_immersive_fullscreen_;
- }
+ bool in_immersive_fullscreen() const { return in_immersive_fullscreen_; }
void set_in_immersive_fullscreen(bool enable) {
in_immersive_fullscreen_ = enable;
}
@@ -393,4 +384,4 @@ class ASH_EXPORT WindowState {
} // namespace wm
} // namespace ash
-#endif // ASH_WM_WINDOW_STATE_H_
+#endif // ASH_WM_COMMON_WINDOW_STATE_H_
« no previous file with comments | « ash/wm/common/window_resizer.cc ('k') | ash/wm/common/window_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698