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

Side by Side Diff: content/browser/web_contents/aura/shadow_layer_delegate.h

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
OLDNEW
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>
9
8 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
9 #include "base/macros.h" 11 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "ui/compositor/layer_delegate.h" 12 #include "ui/compositor/layer_delegate.h"
12 13
13 namespace aura { 14 namespace aura {
14 class Window; 15 class Window;
15 } 16 }
16 17
17 namespace ui { 18 namespace ui {
18 class Layer; 19 class Layer;
19 } 20 }
20 21
(...skipping 10 matching lines...) Expand all
31 // the layer, and the layer is destroyed when the delegate is destroyed. 32 // the layer, and the layer is destroyed when the delegate is destroyed.
32 ui::Layer* layer() { return layer_.get(); } 33 ui::Layer* layer() { return layer_.get(); }
33 34
34 private: 35 private:
35 // Overridden from ui::LayerDelegate: 36 // Overridden from ui::LayerDelegate:
36 void OnPaintLayer(const ui::PaintContext& context) override; 37 void OnPaintLayer(const ui::PaintContext& context) override;
37 void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip) override; 38 void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip) override;
38 void OnDeviceScaleFactorChanged(float device_scale_factor) override; 39 void OnDeviceScaleFactorChanged(float device_scale_factor) override;
39 base::Closure PrepareForLayerBoundsChange() override; 40 base::Closure PrepareForLayerBoundsChange() override;
40 41
41 scoped_ptr<ui::Layer> layer_; 42 std::unique_ptr<ui::Layer> layer_;
42 43
43 DISALLOW_COPY_AND_ASSIGN(ShadowLayerDelegate); 44 DISALLOW_COPY_AND_ASSIGN(ShadowLayerDelegate);
44 }; 45 };
45 46
46 } // namespace content 47 } // namespace content
47 48
48 #endif // CONTENT_BROWSER_WEB_CONTENTS_AURA_SHADOW_LAYER_DELEGATE_H_ 49 #endif // CONTENT_BROWSER_WEB_CONTENTS_AURA_SHADOW_LAYER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698