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

Unified Diff: components/exo/shell_surface.h

Issue 2189073003: Add configuration_changed event and set_background_opacity request. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatting Created 4 years, 5 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 | components/exo/shell_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/shell_surface.h
diff --git a/components/exo/shell_surface.h b/components/exo/shell_surface.h
index 525e7c2fee40b82ce8d15fece2762262df08470b..c98c2ff2450caeef1877b88e3a416c009e65dc89 100644
--- a/components/exo/shell_surface.h
+++ b/components/exo/shell_surface.h
@@ -147,6 +147,9 @@ class ShellSurface : public SurfaceDelegate,
// the shadow.
void SetRectangularShadow(const gfx::Rect& content_bounds);
+ // Set the pacity of the background for the window that has a shadow.
+ void SetRectangularShadowBackgroundOpacity(float opacity);
+
// Set scale factor for surface. The scale factor will be applied to surface
// and all descendants.
void SetScale(double scale);
@@ -213,6 +216,10 @@ class ShellSurface : public SurfaceDelegate,
// Overridden from ui::AcceleratorTarget:
bool AcceleratorPressed(const ui::Accelerator& accelerator) override;
+ const aura::Window* shadow_underlay_for_test() const {
+ return shadow_underlay_;
+ }
+
private:
class ScopedConfigure;
class ScopedAnimationsDisabled;
@@ -288,6 +295,7 @@ class ShellSurface : public SurfaceDelegate,
std::unique_ptr<ScopedAnimationsDisabled> scoped_animations_disabled_;
int top_inset_height_ = 0;
int pending_top_inset_height_ = 0;
+ float rectangular_shadow_background_opacity_ = 1.0;
DISALLOW_COPY_AND_ASSIGN(ShellSurface);
};
« no previous file with comments | « no previous file | components/exo/shell_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698