| Index: ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h
|
| diff --git a/ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h b/ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h
|
| index 05bf5f660f38e9a58ba5d3b324a52e4db437a13e..01a4678945abe2978145998d772c9d3726108553 100644
|
| --- a/ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h
|
| +++ b/ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h
|
| @@ -4,24 +4,20 @@
|
|
|
| #ifndef UI_GFX_SCOPED_NS_GRAPHICS_CONTEXT_SAVE_GSTATE_MAC_H_
|
| #define UI_GFX_SCOPED_NS_GRAPHICS_CONTEXT_SAVE_GSTATE_MAC_H_
|
| +#pragma once
|
|
|
| -#include "ui/ui_api.h"
|
| #include "base/basictypes.h"
|
| -#include "base/memory/scoped_nsobject.h"
|
| -
|
| -@class NSGraphicsContext;
|
| +#include "ui/ui_api.h"
|
|
|
| namespace gfx {
|
|
|
| +// A class to save/restore the state of the current context.
|
| class UI_API ScopedNSGraphicsContextSaveGState {
|
| public:
|
| - // If |context| is nil, it will use the |+currentContext|.
|
| - explicit ScopedNSGraphicsContextSaveGState(NSGraphicsContext* context = nil);
|
| + ScopedNSGraphicsContextSaveGState();
|
| ~ScopedNSGraphicsContextSaveGState();
|
|
|
| private:
|
| - scoped_nsobject<NSGraphicsContext> context_;
|
| -
|
| DISALLOW_COPY_AND_ASSIGN(ScopedNSGraphicsContextSaveGState);
|
| };
|
|
|
|
|