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

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

Issue 2012343002: Converts overview to use common ash types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback 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/wm/common/wm_user_metrics_action.h ('k') | ash/wm/common/wm_window_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/common/wm_window.h
diff --git a/ash/wm/common/wm_window.h b/ash/wm/common/wm_window.h
index 822a837f8383f5bdbd3583e8ffaad2705f9378bf..55031080c14176de097890f2494a6388d0955049 100644
--- a/ash/wm/common/wm_window.h
+++ b/ash/wm/common/wm_window.h
@@ -9,8 +9,10 @@
#include <vector>
#include "ash/wm/common/ash_wm_common_export.h"
+#include "base/strings/string16.h"
#include "base/time/time.h"
#include "ui/base/ui_base_types.h"
+#include "ui/compositor/layer_animation_element.h"
#include "ui/wm/core/window_animations.h"
#include "ui/wm/public/window_types.h"
@@ -22,6 +24,7 @@ namespace gfx {
class Point;
class Rect;
class Size;
+class Transform;
}
namespace ui {
@@ -40,8 +43,7 @@ enum class WmWindowProperty;
class WindowState;
// This class exists as a porting layer to allow ash/wm to work with
-// aura::Window
-// or mus::Window. See aura::Window for details on the functions.
+// aura::Window or mus::Window. See aura::Window for details on the functions.
class ASH_WM_COMMON_EXPORT WmWindow {
public:
WmWindow* GetRootWindow() {
@@ -54,6 +56,8 @@ class ASH_WM_COMMON_EXPORT WmWindow {
// TODO(sky): fix constness.
virtual WmGlobals* GetGlobals() const = 0;
+ virtual base::string16 GetTitle() const = 0;
+
// See wm_shell_window_ids.h for list of known ids.
virtual void SetShellWindowId(int id) = 0;
virtual int GetShellWindowId() const = 0;
@@ -86,6 +90,12 @@ class ASH_WM_COMMON_EXPORT WmWindow {
virtual bool IsVisible() const = 0;
+ virtual void SetOpacity(float opacity) = 0;
+ virtual float GetTargetOpacity() const = 0;
+
+ virtual void SetTransform(const gfx::Transform& transform) = 0;
+ virtual gfx::Transform GetTargetTransform() const = 0;
+
virtual bool IsSystemModal() const = 0;
virtual bool GetBoolProperty(WmWindowProperty key) = 0;
@@ -120,7 +130,11 @@ class ASH_WM_COMMON_EXPORT WmWindow {
// |type| is WindowVisibilityAnimationType. Has to be an int to match aura.
virtual void SetVisibilityAnimationType(int type) = 0;
virtual void SetVisibilityAnimationDuration(base::TimeDelta delta) = 0;
+ virtual void SetVisibilityAnimationTransition(
+ ::wm::WindowVisibilityAnimationTransition transition) = 0;
virtual void Animate(::wm::WindowAnimationType type) = 0;
+ virtual void StopAnimatingProperty(
+ ui::LayerAnimationElement::AnimatableProperty property) = 0;
virtual void SetBounds(const gfx::Rect& bounds) = 0;
virtual void SetBoundsWithTransitionDelay(const gfx::Rect& bounds,
@@ -162,6 +176,10 @@ class ASH_WM_COMMON_EXPORT WmWindow {
virtual void Hide() = 0;
virtual void Show() = 0;
+ // Requests the window to close and destroy itself. This is intended to
+ // forward to an associated widget.
+ virtual void CloseWidget() = 0;
+
virtual bool IsFocused() const = 0;
virtual bool IsActive() const = 0;
« no previous file with comments | « ash/wm/common/wm_user_metrics_action.h ('k') | ash/wm/common/wm_window_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698