Lines Matching defs:Shadow
5 #include "ui/wm/core/shadow.h"
15 // Shadow opacity for different styles.
20 // Shadow aperture for different styles.
35 float GetOpacityForStyle(wm::Shadow::Style style) {
37 case wm::Shadow::STYLE_ACTIVE:
39 case wm::Shadow::STYLE_INACTIVE:
41 case wm::Shadow::STYLE_SMALL:
47 int GetShadowApertureForStyle(wm::Shadow::Style style) {
49 case wm::Shadow::STYLE_ACTIVE:
51 case wm::Shadow::STYLE_INACTIVE:
53 case wm::Shadow::STYLE_SMALL:
59 int GetInteriorInsetForStyle(wm::Shadow::Style style) {
61 case wm::Shadow::STYLE_ACTIVE:
63 case wm::Shadow::STYLE_INACTIVE:
65 case wm::Shadow::STYLE_SMALL:
75 Shadow::Shadow() : style_(STYLE_ACTIVE), interior_inset_(0) {
78 Shadow::~Shadow() {
81 void Shadow::Init(Style style) {
89 shadow_layer_->set_name("Shadow");
95 void Shadow::SetContentBounds(const gfx::Rect& content_bounds) {
100 void Shadow::SetStyle(Style style) {
120 // allows us to use only a single set of shadow images at a time.
147 void Shadow::OnImplicitAnimationsCompleted() {
157 void Shadow::UpdateImagesForStyle() {
183 void Shadow::UpdateLayerBounds() {
190 // Update the shadow aperture and border for style. Note that border is in