| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_AURA_SHADOW_LAYER_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_AURA_SHADOW_LAYER_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_AURA_SHADOW_LAYER_DELEGATE_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_AURA_SHADOW_LAYER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "ui/compositor/layer_delegate.h" | 12 #include "ui/compositor/layer_delegate.h" |
| 13 | 13 |
| 14 namespace aura { | |
| 15 class Window; | |
| 16 } | |
| 17 | |
| 18 namespace ui { | 14 namespace ui { |
| 19 class Layer; | 15 class Layer; |
| 20 } | 16 } |
| 21 | 17 |
| 22 namespace content { | 18 namespace content { |
| 23 | 19 |
| 24 // ShadowLayerDelegate takes care of drawing a shadow on the left edge of | 20 // ShadowLayerDelegate takes care of drawing a shadow on the left edge of |
| 25 // another layer. | 21 // another layer. |
| 26 class ShadowLayerDelegate : public ui::LayerDelegate { | 22 class ShadowLayerDelegate : public ui::LayerDelegate { |
| 27 public: | 23 public: |
| (...skipping 11 matching lines...) Expand all Loading... |
| 39 void OnDeviceScaleFactorChanged(float device_scale_factor) override; | 35 void OnDeviceScaleFactorChanged(float device_scale_factor) override; |
| 40 | 36 |
| 41 std::unique_ptr<ui::Layer> layer_; | 37 std::unique_ptr<ui::Layer> layer_; |
| 42 | 38 |
| 43 DISALLOW_COPY_AND_ASSIGN(ShadowLayerDelegate); | 39 DISALLOW_COPY_AND_ASSIGN(ShadowLayerDelegate); |
| 44 }; | 40 }; |
| 45 | 41 |
| 46 } // namespace content | 42 } // namespace content |
| 47 | 43 |
| 48 #endif // CONTENT_BROWSER_WEB_CONTENTS_AURA_SHADOW_LAYER_DELEGATE_H_ | 44 #endif // CONTENT_BROWSER_WEB_CONTENTS_AURA_SHADOW_LAYER_DELEGATE_H_ |
| OLD | NEW |