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

Unified Diff: ash/aura/wm_window_aura.h

Issue 2613793002: Removes/promotes functions from WmWindowMus to WmWindowAura (Closed)
Patch Set: move WmWindowAuraTestApi to ash/test Created 3 years, 11 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 | « no previous file | ash/aura/wm_window_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/wm_window_aura.h
diff --git a/ash/aura/wm_window_aura.h b/ash/aura/wm_window_aura.h
index 953170977f42041ef741fb5f0501d6f28bc545de..62ab8fe5bf1704cf85c4b297cf51872f1c411961 100644
--- a/ash/aura/wm_window_aura.h
+++ b/ash/aura/wm_window_aura.h
@@ -14,6 +14,8 @@
namespace ash {
+class WmWindowAuraTestApi;
+
// WmWindowAura is tied to the life of the underlying aura::Window. Use the
// static Get() function to obtain a WmWindowAura from an aura::Window.
class ASH_EXPORT WmWindowAura : public WmWindow,
@@ -45,6 +47,9 @@ class ASH_EXPORT WmWindowAura : public WmWindow,
aura::Window* aura_window() { return window_; }
const aura::Window* aura_window() const { return window_; }
+ // See description of |children_use_extended_hit_region_|.
+ bool ShouldUseExtendedHitRegion() const;
+
// WmWindow:
void Destroy() override;
const WmWindow* GetRootWindow() const override;
@@ -60,7 +65,6 @@ class ASH_EXPORT WmWindowAura : public WmWindow,
ui::wm::WindowType GetType() const override;
int GetAppType() const override;
void SetAppType(int app_type) const override;
- bool IsBubble() override;
ui::Layer* GetLayer() override;
bool GetLayerTargetVisibility() override;
bool GetLayerVisible() override;
@@ -219,6 +223,8 @@ class ASH_EXPORT WmWindowAura : public WmWindow,
aura::Window* transient) override;
private:
+ friend class WmWindowAuraTestApi;
+
aura::Window* window_;
base::ObserverList<WmWindowObserver> observers_;
@@ -226,6 +232,16 @@ class ASH_EXPORT WmWindowAura : public WmWindow,
bool added_transient_observer_ = false;
base::ObserverList<WmTransientWindowObserver> transient_observers_;
+ // If true child windows should get a slightly larger hit region to make
+ // resizing easier.
+ bool children_use_extended_hit_region_ = false;
+
+ // Default value for |use_empty_minimum_size_for_testing_|.
+ static bool default_use_empty_minimum_size_for_testing_;
+
+ // If true the minimum size is 0x0, default is minimum size comes from widget.
+ bool use_empty_minimum_size_for_testing_;
+
DISALLOW_COPY_AND_ASSIGN(WmWindowAura);
};
« no previous file with comments | « no previous file | ash/aura/wm_window_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698